- Skip to content
- Skip to search
- Skip to footer

Cisco 4000 Series ISRs Software Configuration Guide, Cisco IOS XE Fuji 16.7.x
Bias-free language.
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
- Read Me First
- Using Cisco IOS XE Software
- Smart Licensing
- Managing the Device Using Web User Interface
- Console Port, Telnet, and SSH Handling
- Installing the Software
Basic Router Configuration
- Slot and Subslot Configuration
- Process Health Monitoring
- System Messages
- Trace Management
- Environmental Monitoring and PoE Management
- Configuring High Availability
- Configuring Call Home
- Managing Cisco Enhanced Services and Network Interface Modules
- SFP Auto-Detect and Auto-Failover
- Cellular IPv6 Address
- Configuring Voice Functionality
- Dying Gasp Through SNMP, Syslog and Ethernet OAM
- Support for Software Media Termination Point
- Configuration Examples
- Unsupported Commands

Chapter: Basic Router Configuration
Default configuration, configuring global parameters, configuring gigabit ethernet interfaces, configuring a loopback interface, mac filter distribution, configuring module interfaces, enabling cisco discovery protocol, configuring command-line access, configuring static routes, configuring routing information protocol, configuring enhanced interior gateway routing protocol.
This section includes information about some basic router configuration, and contains the following sections:
When you boot up the router, the router looks for a default file name-the PID of the router. For example, the Cisco 4000 Series Integrated Services Routers look for a file named isr 4451.cfg. The Cisco 4000 Series ISR looks for this file before finding the standard files-router-confg or the ciscortr.cfg.
The Cisco 4000 ISR looks for the isr4451.cfg file in the bootflash. If the file is not found in the bootflash, the router then looks for the standard files-router-confg and ciscortr.cfg. If none of the files are found, the router then checks for any inserted USB that may have stored these files in the same particular order.
Use the show running-config command to view the initial configuration, as shown in the following example:
To configure the global parameters for your router, follow these steps.
SUMMARY STEPS
- configure terminal
- hostname name
- enable secret password
- no ip domain-lookup
DETAILED STEPS
To manually define onboard Gigabit Ethernet interfaces, follow these steps, beginning from global configuration mode.
- interface gigabitethernet slot/bay/port
- ip address ip-address mask
- ipv6 address ipv6-address/prefix
- no shutdown
Before you begin
The loopback interface acts as a placeholder for the static IP address and provides default routing information.
To configure a loopback interface, follow these steps.
- interface type number
- (Option 1) ip address ip-address mask
- (Option 2) ipv6 address ipv6-address/prefix
The loopback interface in this sample configuration is used to support Network Address Translation (NAT) on the virtual-template interface. This configuration example shows the loopback interface configured on the Gigabit Ethernet interface with an IP address of 192.0.2.0/24, which acts as a static IP address. The loopback interface points back to virtual-template1, which has a negotiated IP address.
Enter the show interface loopback command. You should see an output similar to the following example:
Alternatively, use the ping command to verify the loopback interface, as shown in the following example:
Hardware Limitations for MAC Filters
This section provides the number and distribution of supported virtual MAC addresses on the Cisco 4000 Series ISRs. The virtual MAC address filters are supported on the following interfaces:
GigabitEthernet Interface MAC Filters
TenGigabitEthernet Interface MAC Filters
GigabitEthernet Interface MAC Address Filters
The device supports a set of 32 MAC address filters. You can be use these filters across the four GE ports. Each 4 GEport reserves one entry for the primary MAC address (BIA). You can use the remaining 28 MAC filters for features such as Hot Standby Router Protocol (HSRP).
TenGigabitEthernet Interface MAC Address Filters
The device supports a set of 32 MAC address filters. You can be use these filters across the two 10GE ports. Each 10GE port reserves one entry for the primary MAC address (BIA). You can use the remaining 30 MAC filters for features such as HSRP.
The following tables provide the MAC filter distribution for the Cisco 4000 Series ISRs:
For detailed information about configuring service modules, see "Service Modules" in the "Service Module Management" section of the Cisco SM-1T3/E3 Service Module Configuration Guide .
Cisco Discovery Protocol (CDP) is enabled by default on the router.
For more information on using CDP, see Cisco Discovery Protocol Configuration Guide, Cisco IOS XE Release 3S .
To configure parameters to control access to the router, follow these steps.
- line [ aux | console | tty | vty ] line-number
- password password
- exec-timeout minutes [ seconds ]
The following configuration shows the command-line access commands.
You do not have to input the commands marked default . These commands appear automatically in the configuration file that is generated when you use the show running-config command.
Static routes provide fixed routing paths through the network. They are manually configured on the router. If the network topology changes, the static route must be updated with a new route. Static routes are private routes unless they are redistributed by a routing protocol.
To configure static routes, follow these steps.
- (Option 1) ip route prefix mask { ip-address | interface-type interface-number [ ip-address ]}
- (Option 2) ipv6 route prefix/mask { ipv6-address | interface-type interface-number [ ipv6-address ]}
In the following configuration example, the static route sends out all IP packets with a destination IP address of 192.168.1.0 and a subnet mask of 255.255.255.0 on the Gigabit Ethernet interface to another device with an IP address of 10.10.10.2. Specifically, the packets are sent to the configured PVC.
You do not have to enter the command marked default . This command appears automatically in the configuration file generated when you use the running-config command.
To verify that you have configured static routing correctly, enter the show ip route command (or show ipv6 route command) and look for static routes marked with the letter S.
When you use an IPv4 address, you should see verification output similar to the following:
When you use an IPv6 address, you should see verification output similar to the following:
Configuring Dynamic Routes
In dynamic routing, the network protocol adjusts the path automatically, based on network traffic or topology. Changes in dynamic routes are shared with other routers in the network.
A router can use IP routing protocols, such as Routing Information Protocol (RIP) or Enhanced Interior Gateway Routing Protocol (EIGRP), to learn about routes dynamically.
To configure the RIP on a router, follow these steps.
- version { 1 | 2 }
- network ip-address
- no auto-summary
The following configuration example shows RIP Version 2 enabled in IP networks 10.0.0.0 and 192.168.1.0. To see this configuration, use the show running-config command from privileged EXEC mode.
To verify that you have configured RIP correctly, enter the show ip route command and look for RIP routes marked with the letter R. You should see an output similar to the one shown in the following example:
To configure Enhanced Interior Gateway Routing Protocol (EIGRP), follow these steps.
- router eigrp as-number
The following configuration example shows the EIGRP routing protocol enabled in IP networks 192.168.1.0 and 10.10.12.115. The EIGRP autonomous system number is 109. To see this configuration, use the show running-config command.
To verify that you have configured IP EIGRP correctly, enter the show ip route command, and look for EIGRP routes marked by the letter D. You should see verification output similar to the following:
Was this Document Helpful?

Contact Cisco

- (Requires a Cisco Service Contract )
How to Configure IP Addresses on a Cisco Router

Configuring routers is a routine operation for network administrators. Enterprise-grade routers are very different from consumer-grade routers, though. Consumer-grade routers come mostly configured out of the box. Likewise, consumer-grade ISP services typically configure home ‘routers’ with a dynamic IP address.
In contrast, business-grade ISP services assign static IP addresses. Before an enterprise-grade router can be installed in a network, it needs to have an IP address assigned to it first. So, we will walk through how to configure an IP address on a Cisco router today.
Configuring a Cisco router with an IP address is not a complicated process. There are typically four steps involved:
Cisco CCNA (200-301)
- Practice Exams
USD / learner / month
Verify the current interface configuration of the router
Choose the interface that you want to assign an IP address to
Assign the IP address
Enable the interface on the Cisco router
We will walk through each of those steps, explain how to complete them, and why they are essential.
An Overview of How to Configure IP Addresses on Cisco Devices [VIDEO]
In this video, Jeremy Cioara covers assigning IP addresses and enabling interfaces on Cisco routers. Unlike switches, which are essentially plug and play, routers require a bit of configuration before they can do what they were designed to. You'll see a straightforward, four-step process to enabling interfaces that will equip you to do this yourself.
How to Display Interfaces on a Cisco Device
Before you assign an IP address to a Cisco router, you need to know the current configuration of that device. Typically, Cisco routers have all their interfaces shut down out of the box. Therefore, we need to verify the state of those interfaces before proceeding, especially if this router is being re-used.
The rest of the instructions through this article will assume that you are connected to the Cisco router.
To show the interfaces in a Cisco router, use the ‘show IP interface brief’ command in the console window. For example, this command will output the following information:
Each interface and interface name
The IP address for that interface
Whether each interface is up or down on the Layer 1 level (status column)
Whether each interface is up or down on the Layer 2 level (protocol column)
The Status and Protocol columns will have one of three messages:
Administratively Down
Each message has a clear indication of the status of its associated interface. The ‘Up’ message is self-explanatory. That means that the associated interface is working correctly. The ‘Administratively Down’ message indicates that the interface is disabled by configuration. Otherwise, the network admin purposefully disabled that interface for some reason. Finally, the ‘Down’ message means the associated interface isn’t working for other reasons (like unplugging the network cable from the network port).
Out of the box, Cisco routers have the ‘Administratively Down’ configuration for each interface. This is different from Cisco Switches. Cisco Switches come pre-configured out of the box. They can be safe to implement into an existing network almost right away. On the other hand, an unconfigured router can make a network inoperable.
That’s because an improperly configured router can send data from the network into a black hole. Routers are the pieces of equipment that push data to and from networks or network segments. If a router isn’t correctly configured, it won’t know where to send that information to. Hence, that data is sent to purgatory. It is simply dropped from the network.
So, you need to verify the status of the interfaces on a Cisco router before you configure an IP address for it. We need to configure as much of the router as possible before connecting it to a network, so this is an excellent first step.
What is the Difference Between Status and Protocol on a Cisco Router?
When you use the ‘show IP interface brief’ command in the console when connected to a Cisco router, the router will dump information about each interface on the router to the console display. That information will include the link-state labeled as ‘Status’ and ‘Protocol.’
Many new network admins may not understand the difference between both states. After all, aren’t they both the same?
The ‘Status’ and ‘Protocol’ states represent different layers of the OSI networking model , though. The ‘Status’ column represents Layer one, or the physical connection layer. The ‘Protocol’ column represents Layer 2 of the OSI model. The physical layer explains whether a cable is physically connected or if the physical hardware for that interface is working correctly. The protocol layer explains whether that interface is receiving signals that it can understand and recognize.
Understanding the difference between Layer 1 and Layer 2 and their operational status is essential for configuring Cisco routers and diagnosing issues with them down the road.
How to Choose an Interface to Assign an IP Address on a Cisco Device
When we configure an IP address for a new Cisco router, we need to verify the current state of the interfaces of that router. After we confirm the state of those interfaces, we need to select an interface in the console before configuring an IP address. This process is easy.
Running the ‘show IP interface brief’ command in the console of a Cisco router will list each interface and the designation for those interfaces. Pay attention to those interfaces. Also, make sure to match the interface in the console with the physical interface on the Cisco router. That way, you don’t plug the ethernet cable into the wrong port.
To select an interface in the console, first enter the global configuration mode in the router. Then, use the ‘configure terminal’ command in the console to enter configuration mode.
After switching to the configuration mode in the router, use the ‘interface’ command followed by the interface itself to select that interface. You can also add a question mark after the ‘interface’ command instead of the interface designation for additional help.
Interface g0/0
In the example above, we used interface g0/0. That means we selected the first interface that is a gigabit ethernet port on our router. The interfaces in your Cisco router may be labeled differently depending on the device you are configuring.
How to Assign an IP Address to a Cisco Router
Before we can assign an IP address to a Cisco router, we need to complete a couple of steps. First, we need to run the ‘show IP interface brief’ command. This will list each interface in the router as well as their status. Then, we need to enter global configuration mode with the ‘configure terminal’ command and select an interface using the ‘interface’ command in the console of that router. The ‘interface’ command must be followed by the interface designation. Once we have our interface selected, we can assign an IP address to it.
Assigning an IP address to an interface in a Cisco router is as simple as using the ‘IP address’ command. That command must be followed by the IP address for that interface port as well as its subnet.

Ip address 192.168.1.1 255.255.255.0
Entering that command will not produce any confirmation messages unless there was an error. In this case, no news is good news.
After assigning the IP address to an interface in a Cisco router, run the ‘show IP interface brief’ command again. When that command displays information about each interface in the router, you should see the IP address assigned to your chosen interface under the IP address column. If you do not, try repeating the process.
That’s it! It’s that simple to assign an IP address to a Cisco router.
How to Find the IP Address to Assign to a Cisco Router
Many new network admins may not understand where to find the IP address to assign to a new Cisco router. Those admins may have received that information from a senior network administrator or through documentation, but if those resources aren’t available, where would you find the IP address to assign to a Cisco router?
Often, that information comes from the ISP (Internet Service Provider). Businesses will typically choose to have a static IP address assigned to them from their ISP.
This is done for stability reasons. In a dynamic environment, the external IP address of a network can be changed by the ISP. If your business hosts something like a VPN , though, that could be an issue. Static IP addresses keep network configurations static for things like VPNs or DNS entries.
This is in stark contrast to the typical consumer-grade ISP connection. In these cases, the ISP will always use DHCP to assign a network address to consumer customers. But, of course, a business can use DHCP addresses, too. This is more common with small and medium-sized companies that may not need to host services that depend on a static IP address.
Cisco routers can be configured to use DHCP instead of being assigned a static IP address, too. To do that, add ‘dhcp’ instead of the IP address and subnet mask to the ‘IP address’ command in the console in a Cisco router.
Ip address DHCP
How to enable an interface on a cisco router.
After configuring an IP address for a Cisco router, you will most likely need to enable the interface to be active. Cisco routers come with all the interfaces on them shut down out of the box. This is for important network safety reasons. So, the interface you just configured needs to be enabled.
First, we can verify a Cisco router’s status and configuration using the ‘show run’ command from the configuration console for a Cisco device. That command will display all the current information for that device and its interfaces. More than likely, the information displayed from that command will be too much to fit on your screen. Use the space button to jump through the configuration information.
Look for the configuration information for the interface you need to enable. This should show that the interface is currently administratively down.
Once the status of that interface has been verified, we need to enable it. First, we need to select that interface. Use the ‘interface’ command in the console followed by the interface name.
E.g., interface GigabitEthernet0/0
In our example, the name of the interface we are working with is GigabitEthernet0/0. Of course, the name of the interface you are working with may be different.
Now that the interface is selected, use the ‘no shutdown’ command to enable that interface. If all goes well, you should see three messages. The first message shows that the interface is down. The next two messages should state that the ‘Status’ and ‘Protocol’ are now up. You should also see lights blinking next to the physical interface port that you just configured on the router.
Remember that the status and protocol states in a Cisco router represent different layers of the OSI network model. The status state represents layer 1, while the protocol state represents layer 2. This is why the console shows two different status prompts after running the ‘no shutdown’ command.
Wrapping Up
We covered a lot of information in this article! Consider this guide a rough tutorial on assigning an IP address to a Cisco router. Still, we did not cover other important topics like what a subnet is or how to secure a router. If you would like to learn more, consider our CCNA training .
Though assigning an IP address to a Cisco router is easy, it is also very routine. Furthermore, this is a function that you will perform a lot as a network admin. So, let’s go over how to assign an IP address to a Cisco router with a short and sweet tl;dr instruction set.
Verify the interface status with the ‘show IP interface brief’ command.
After verifying all interfaces are down, enter global configuration mode with the ‘configure terminal’ command.’
Select the interface you want to configure with the ‘interface’ command followed by the interface name.
Assign an IP address to that interface with the ‘ip address’ command followed by the IP address and the subnet mask for that interface.
Run the ‘show IP interface brief’ command again to verify the IP address has been assigned to the network interface.
Run the ‘no shutdown’ command to enable that interface.
That’s it! Keep these instructions handy until they become second nature. Businesses use static IP addresses for all sorts of things, but above all else, they use static IP addresses to keep networks from breaking or requiring additional maintenance. Understanding how to assign an IP address to a Cisco router is vital for any network admin.
Recommended Articles
Discover the impact of training with cbt nuggets.
Get CBT Nuggets IT training news and resources
I have read and understood the privacy policy and am able to consent to it.
- Product Product
- Browse training
- All courses
- Certification training
- New training
- Solutions Solutions
- Resources Resources
- Learner stories
- Why e-learning?
- Customer reviews
- Ultimate Cert Guides
- Company Company
- Become a Trainer
- Transparency in Coverage
- Support Support
- Help Center
Let's chat!
Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Cisco Router GigabitEthernet interface can not add ip address?
who can tell me where is the issue?
my device is CGR1240 .

- There can be a few possibilities. Typically on a router, only the routed port (WAN) can have an IP address. Sometimes the port is by default a switchport, so that it needs no switchport before you can actually add an IP address. You could try to post the full configuration and show version . – user36472 Oct 31, 2018 at 8:57
2 Answers 2
From Cisco documentation:
Port Configuration The Cisco CGR 1120 has 8 Ethernet ports: 6 FE ports, and 2 GE switch ports. The Cisco CGR 1240 has 6 Ethernet ports: 4 FE ports and 2 GE switch ports. On both of the CGRs, you can configure the 2 GE ports to operate in Layer 2 mode or the default Layer 3 mode. You can convert the switch to Layer 2 mode by using the switchport command. Note: Layer 2 switching is hardware switched. Layer 3 switching is software forwarding. The FE ports are 100BaseT Layer 2. Traffic between different VLANs on a switch is routed through the router platform using the switched virtual interface (SVI). You can configure FE switch ports as Layer 3 (routed) ports by configuring the no switchport command on interface fastethernet x/y . By default, FE switch ports are Layer 2.
The GE ports are 1000BaseT Layer 2. Traffic between different VLANs on a switch is routed through the router platform using the switched virtual interface (SVI). You can configure GE switch ports as Layer 2 ports by configuring the switchport command on interface gigabit ethernet x/y . By default, GE ports are Layer 3 (routed ports). Any switch port can be configured as a trunking port to connect to other Cisco Ethernet switches.
Source: https://www.cisco.com/c/en/us/td/docs/routers/connectedgrid/cgr1000/ios/software/15_4_1_cg/FEvlan_switchconf.html
The CG-Mech product you should pay attention, from the document :
all the port, no matter FastEthernet or GigabitEthernet if you want to configure ip address, you should set no switchport firstly.

Your Answer
Sign up or log in, post as a guest.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service , privacy policy and cookie policy
Not the answer you're looking for? Browse other questions tagged cisco cisco-ios or ask your own question .
- The Overflow Blog
- How to position yourself to land the job you want
- Building an API is half the battle: Q&A with Marco Palladino from Kong
- Featured on Meta
- We've added a "Necessary cookies only" option to the cookie consent popup
- The Stack Exchange reputation system: What's working? What's not?
Hot Network Questions
- In Acts 8:32–33 was the Ethiopian eunuch reading a Septuagint scroll or a Hebrew scroll?
- In a civil trial, can a party “call” its opponent’s witnesses in making its case?
- Is there a RAW or optional rule for how a player could discover what type of skill check needs to be made?
- Finding a career as a researcher without any PhD, work experience, and/or relevant academic degree
- Most polyominoes in an 8x8 grid
- Blind people take revenge against evil asylum manager
- When does a character get temporary HP from the Shepherd druid's Bear Spirit Totem?
- Can we explain why using `Nothing` twice on a list does not operate twice?
- In what sense the laser radiation is monochromatic?
- How can I protect /dev/sdX against accidental formatting?
- What if a student doesn't understand a question because of differences in dialect?
- Can a 13-year-old in the UK accept freelance work?
- Dupin cyclide as the stereographic projection of a Hopf torus
- Why are most US news programs silent about Iran-Saudi deal announced at Beijing on March 10th?
- Is the cabin pressure "worse" at the back of the cabin than in front?
- Best way to highlight the main result in a mathematical paper
- Preserve layout while using figures in columns in overlay
- How useful is a caliper for a home-based bike workshop?
- Under what circumstance is it a crime if a car owner allows someone other than themself to drive their car?
- A melody is built from both notes and chords
- Can you counterspell a cantrip by casting a cantrip?
- How to weight a list of ranks by a numeric value by individual in R
- Anamolous colour properties of Nickel complexes
- Filtering which points to display using expressions?
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .
Static IP address assignment configuration example
Network requirements.
As shown in Figure 20 , Router A (DHCP server) assigns a static IP address, a DNS server address, and a gateway address to Router B (DHCP client) and Router C (BOOTP client).
The client ID of the interface GigabitEthernet 1/0/1 on Router B is:
0030-3030-662e-6532-3030-2e30-3030-322d-4574-6865-726e-6574.
The MAC address of the interface GigabitEthernet 1/0/1 on Router C is 000f-e200-01c0.
Figure 20: Network diagram

Configuration procedure
Specify an IP address for GigabitEthernet 1/0/1 on Router A:
Configure the DHCP server:
# Enable DHCP.
# Enable the DHCP server on GigabitEthernet 1/0/1.
# Create DHCP address pool 0.
# Configure a static binding for Router B.
# Configure a static binding for Router C.
# Specify the DNS server and gateway.
Verifying the configuration
# Verify that Router B can obtain IP address 10.1.1.5 and all other network parameters from Router A. (Details not shown.)
# Verify that Router C can obtain IP address 10.1.1.6 and all other network parameters from Router A. (Details not shown.)
# On the DHCP server, display the IP addresses assigned to the clients.
© Copyright 2017 Hewlett Packard Enterprise Development LP
Cisco CLI Error: % X.X.X.X overlaps with GigabitEthernet0/1
When does this error appear.
- When using the ip address command; or,
- When issuing the no shutdown command
Why does this error appear?
Let's look at an example:.
- Interface gi0/1 is enabled, connected to Switch1, and assigned the IP Address 172.20.100.1 255.255.254.0
- Interface gi0/0 is enabled and connected to Switch2. There is no IP Address assigned to gi0/0.
IPv4 Configuration Commands
- ARP Configuration Commands
- DHCP Configuration Commands
- DNS Configuration Commands
- NAT Configuration Commands
- UDP Helper Configuration Commands
- IP Performance Configuration Commands
- Basic IPv6 Configuration Commands
- DHCPv6 Configuration Commands
- IPv6 DNS Configuration Commands
- IPv6 over IPv4 Tunnel Configuration Commands
- IPv4 over IPv6 Tunnel Configuration Commands
- Static Route Configuration Commands
- RIP Configuration Commands
- RIPng Configuration Commands
- OSPF Configuration Commands
- OSPFv3 Configuration Commands
- IPv4 IS-IS Configuration Commands
- IPv6 IS-IS Configuration Commands
- BGP Configuration Commands
- Routing Policy Configuration Commands
- IP Routing Basic Configuration Commands
- PBR Configuration Commands
- IGMP Configuration Commands
- MLD Configuration Commands
- PIM (IPv4) Configuration Commands
- PIM (IPv6) Configuration Commands
- MSDP Configuration Commands
- Multicast Route Management (IPv4) Commands
- Multicast Route Management (IPv6) Commands
- IGMP Snooping Configuration Commands
- MLD Snooping Configuration Commands
- Multicast Network Management Commands
- Basic MPLS Configuration Commands
- MPLS TE Configuration Commands
- L2TP Configuration Commands
- L2TPv3 Configuration Commands
- GRE Configuration Commands
- SVPN Configuration Commands
- DSVPN Configuration Commands
- IPSec Configuration Commands
- A2A VPN Configuration Commands
- SSL VPN Configuration Commands
- BGP/MPLS IP VPN Configuration Commands
- EVPN Configuration Commands
- VLL Configuration Commands
- PWE3 Configuration Commands
- VPLS Configuration Commands
- VXLAN Configuration Commands
- WLAN Service Configuration Commands
- WLAN QoS Configuration Commands
- WLAN Security Configuration Commands
- WLAN Radio Resource Management Configuration Commands
- WLAN Roaming Commands
- WLAN WDS Configuration Commands
- WLAN Reliability Commands
- authentication mode
- authentication passwd
- authentication zigbee link-key
- display channel-type zigbee status
- display m2m-gateway configuration
- display m2m-gateway long-latitude
- display m2m-gateway statistics
- display m2m-gateway status
- display m2m-gateway task
- display m2m-gateway task list group-task
- display m2m-gateway task list optimal-task
- display m2m-gateway task list statistics
- display m2m-gateway task schedule
- display m2m-gateway tsvr-server status
- display m2m-gateway timer-join-network
- display m2m-gateway upgrade current
- display m2m-gateway upstream communication style
- display m2m-gateway upstream statistics
- display m2m-gateway whitelist
- display firmware process
- display zigbee link-key-using
- encrypt mode disable
- encrypt type
- firmware upgrade channel-type zigbee remote
- firmware upgrade channel-type zigbee local
- firmware upgrade channel-type zigbee erase flash
- firmware upgrade stop
- hes-bakserver
- longitude-latitude
- m2m-gateway
- reset m2m-gateway offline-device
- reset m2m-gateway statistics
- restore factory configuration
- task delete
- task update task-name
- tsvr-server
- upstream-cache cache-size wait-time
- upstream-cache mode
- upstream statistics threshold
- zigbee-network dismiss
- zigbee-network get-rssi
- zigbee-network permit-join
- zigbee-network permit-join whitelist
- zigbee-network status refresh
- zigbee-network timer-join-network
- zigbee-network timer-join-network enable
- Basic Voice Configuration Commands
- Clip Configuration Commands
- Ring Configuration Commands
- Upward-bandwidth Configuration Commands
- Sip Stack Configuration Commands
- Dsp Configuration Commands
- Voice Diagnose Commands
- Voice interface Configuration Commands
- PBX Basic Configuration Commands
- SIP Server Configuration Commands
- CDR Server Configuration Commands
- PBX User Configuration Commands
- SBC Proxy configuration commands
- Trunk Group configuration commands
- Call Route configuration command
- PBX Service Configuration Commands
- Local Survival Configuration Commands
- Conference Configuration Commands
- Self Service Http Server Commands
- Group Registrar Configuration Commands
- SIP AG Parameter Configuration Commands
- SIP AG User Configuration Commands
- H.248 AG Parameter Setting Commands
- H.248 AG User Configuration Commands
- H.248 AG Common Commands
- attach disk
- blank-disk name
- delete package
- display blank-disk name
- display download-ratio package
- display ovs bridge information
- display ovs mac-address bridge
- display ovs traffic-statistics bridge
- display package information
- display resource-usage
- display veth information
- display virtual-environment link
- display virtual-environment reserve cpu-thread statistic
- display virtual-environment resource
- display vnc-server information
- download package
- exception-action
- memory size
- port (vSwitch view)
- port default vlan (vSwitch view)
- port trunk allow-pass vlan (vSwitch view)
- reset cdrom file
- reset ovs traffic-statistics bridge
- set cdrom file
- uninstall vm
- virtual-environment
- virtual-environment reserve cpu-thread number
- virtual-network-card number
- vm activate
- vm deactivate
- vnc-server port
- Interface Backup Configuration Commands
- Interface Monitoring Group Configuration Commands
- NSR Configuration Commands
- HSB Configuration Commands
- BFD Configuration Commands
- VRRP Configuration Commands
- EFM Configuration Commands
- CFM Configuration Commands
- Y.1731 Configuration Commands
- AAA Configuration Commands
- RADIUS Configuration Commands
- HWTACACS Configuration Commands
- HACA Configuration Commands
- DAA Configuration Commands
- NAC Configuration Commands
- ACL Configuration Commands
- Firewall Configuration Commands
- Deep Security Configuration Commands
- Local Attack Defense Configuration Commands
- Attack Defense Configuration Commands
- Traffic Suppression Configuration Commands
- ARP Security Configuration Commands
- DHCP Snooping Configuration Commands
- IP Source Guard Configuration Commands
- URPF Configuration Commands
- PKI Configuration Commands
- SSL Configuration Commands
- HTTPS Configuration Commands
- Keychain Configuration Commands
- MQC Configuration Commands
- Priority Mapping Commands
- Traffic Policing and Traffic Shaping Commands
- Congestion Avoidance and Congestion Management Commands
- Filtering Configuration Commands
- Statistics Configuration Commands
- ACL-based Simplified Traffic Policy Commands
- Bandwidth Management Configuration Commands
- Application Control Management Commands
- SAC Configuration Commands
- SNMP Configuration Commands
- RMON and RMON2 Configuration Commands
- TCP FPM Configuration Commands
- IP FPM Configuration Commands
- CWMP Configuration Commands
- LLDP Configuration Commands
- NQA Configuration Commands
- LSDP Configuration Commands
- Service Diagnosis Configuration Commands
- Mirroring Configuration Commands
- Packet Capture Configuration Command
- NetStream Configuration Commands
- IP Accounting Configuration Commands
- TWAMP Light Configuration Commands
- Ping and Tracert Configuration Commands
The ip address command configures an IP address for an interface.
The undo ip address command deletes an IP address from an interface.
By default, no IP address is configured for an interface.
ip address ip-address { mask | mask-length } [ sub ]
undo ip address [ ip-address { mask | mask-length } [ sub ] ]
Interface view
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
The ip address command configures IP addresses for interfaces on the router so that the router can communicate with different network segments. To connect an interface to multiple network segments, configure multiple IP addresses for the interface. Among these IP addresses, one is the primary IP address and the others are secondary IP addresses. If you configure a new primary IP address for the interface, the new IP address overrides the original one.
- The undo ip address command deletes all IP addresses from an interface.
- The undo ip address ip-address { mask | mask-length } command deletes the primary IP address of an interface.
- The undo ip address ip-address { mask | mask-length } sub command deletes a secondary IP address.
Precautions
- The IP addresses are the same.
- The broadcast addresses (with the host number field containing all 1s in the binary mode) corresponding to the IP addresses are the same. For example, if the IP address of interface A is 10.1.1.1/16 and its corresponding broadcast address is 10.1.255.255 and the IP address of interface B is 10.1.1.2/24 and its corresponding broadcast address is 10.1.1.255, the configuration is successful. However, if the IP address of interface B is also 10.1.1.2/16 and its corresponding broadcast address is also 10.1.255.255, the configuration fails.
- The IP address of an interface is the same as the broadcast address of another interface. For example, if the IP address of interface A is 1.1.1.1/28 and its broadcast address is 1.1.1.15 and the IP address of interface B is 1.1.1.15/26, the configuration fails.
You can configure a secondary IP address only after configuring a primary IP address on the interface. You must delete all secondary IP addresses before deleting the primary IP address.
You can configure multiple IP address for a Layer 3 interface on the device, one as the primary IP address, and the others as secondary IP addresses. Each Layer 3 interface can have a maximum of 31 secondary IP addresses.
IP addresses of different interfaces on the router cannot be located on the same network segment.
# Configure a primary IP address 10.1.0.1 and a secondary IP address 10.2.0.1 for GE 1/0/0 , with subnet mask 255.255.255.0.
- ip address unnumbered
The ip address unnumbered command configures IP unnumbered on an interface so that the interface can borrow the IP address from another interface.
The undo ip address unnumbered command cancels the IP unnumbered configuration on an interface.
By default, an interface does not borrow the IP address from another interface.
ip address unnumbered interface interface-type interface-number
undo ip address unnumbered
You can run the ip address unnumbered command to configure certain interfaces, including the ATM interface, dialer interface, tunnel interface, tunnel-template interface, and interface encapsulated with PPP, HDLC , or frame relay to borrow an IP address from an Ethernet interface, loopback interface, or another type of interface. The Ethernet interfaces and Ethernet sub-interfaces only can borrow the IP address from loopback interface.
Sub-interfaces using FR as the link layer protocol can borrow IP addresses from other interfaces.
An IP unnumbered interface cannot run dynamic routing protocols because it does not have an IP address itself. To enable the interface to communicate with a peer network segment, configure a static route to the network segment.
- In automatic dialup mode, after a dialer interface borrows the IP address from a loopback interface, a link is automatically established. No static route needs to be configured.
In traffic-triggered dialup mode, if a dialer number used to call the remote end is configured using the dialer number dial-number command, a route to the loopback interface is generated after the dialer interface borrows the IP address of the loopback interface. To enable packets to reach the dialer interface and trigger dialup, configure a static route and specify the dialer interface as the outbound interface.
For example, the local dialer interface (dialer1) borrows IP address 1.1.1.1/32 from a loopback interface, the remote IP address is 1.1.1.16, and the destination IP address of dialup packets is 2.1.1.1. To enable traffic to reach dialer1 and trigger dialup, run the ip route-static 2.1.1.1 255.255.255.255 Dialer1 command to configure a static route and specify dialer1 as the outbound interface.
In traffic-triggered dialup mode, if the next hop of dialup packets is configured using the dialer route next-hop-address command, a route to the loopback interface is generated after the dialer interface borrows the IP address of the loopback interface. To trigger dialup, configure a static route, specify the dialer interface as the outbound interface, and specify the next hop.
For example, the local dialer interface (dialer1) borrows IP address 1.1.1.1/32 from a loopback interface, the remote IP address is 1.1.1.16, and the destination IP address of dialup packets is 2.1.1.1. To enable traffic to reach dialer1 and trigger dialup, run the ip route-static 2.1.1.1 255.255.255.255 Dialer1 1.1.1.16 command to configure a static route, specify dialer1 as the outbound interface, and specify the next hop.
The numbered interface cannot borrow the interface from another interface. Other interfaces cannot borrow the IP address from the unnumbered interface.
The ip address unnumbered command can be used only on Layer 3 interfaces.
# Configure Tunnel0/0/1 to borrow the IP address from LoopBack0.
- display ip interface
The display ip interface command displays the IP configuration and statistics on interfaces. The statistics include the number of packets and bytes received and sent by interfaces, number of multicast packets sent and received by interfaces, and number of broadcast packets received, sent, forwarded, and discarded by interfaces.
The display ip interface brief command displays brief information about interface IP addresses, including the IP address, subnet mask, physical status, link-layer protocol status, and number of interfaces in different states.
display ip interface [ interface-type interface-number ]
display ip interface brief [ interface-type [ interface-number ] | slot slot-id [ card card-number ] ]
display ip interface brief [ interface-type ] &<1-8>
1: Monitoring level
- IP configurations of all interfaces
- IP configurations of interfaces of the specified type and a specified interface
- IP configurations of interfaces that have IP addresses
You can run the display interface description command to view the interface description.
You can run the display interface command to view detailed information about the running status and statistics on the interface.
- display interface
The display interface command displays the interface running status and statistics.
display interface [ interface-type [ interface-number [. subinterface-number ] | main ] | main ]
display interface slot slot-id [ main ]
The running status and statistics of an interface includes the physical status, basic configuration, and packet forwarding of the interface. You can use the display interface command to collect traffic statistics or locate faults on an interface.
If no interface type is specified, the running status and statistics of all the interfaces is displayed. If the interface type is specified but no interface number is specified, the running status of all the interfaces of this type is displayed.
# Display the running status, basic configuration, and packet forwarding on Layer 2 Ethernet interface Ethernet 2/0/0 .
# Display the running status, basic configuration, and packet forwarding on Layer 3 Ethernet interface Ethernet2/0/0.
Document ID: EDOC1000174046
Views: 745052
Downloads: 2954
Related Version
Related documents.
- About Huawei Enterprise
- Get Pricing
- Find a Reseller
- Become Partner
- Find a Partner
- Case Studies
- Resource Center
- Video Library
- ICT Insights
Quick Links
- Huawei Digital Power
Copyright © 2023 Huawei Technologies Co., Ltd. All rights reserved.
- Terms of use

IMAGES
VIDEO
COMMENTS
Enters the IPv4 address (10.1.1.100) and subnet mask (255.255.255.0) for the Gigabit Ethernet interface. Step 4. switch(config-if)#
Router(config)# interface gigabitethernet 0/0/1 ... interface loopback 0 ip address 192.0.2.0 255.255.255.0 (static IP address) ip nat
IpAddressToGigaBitEthernetFastEthernetSerial #networkNajibullah Zirak (Najib Zirak Zazai) you can learn many things here in the field of
However, configuring and assigning IP addresses on routers can be a ... the name of the interface we are working with is GigabitEthernet0/0.
From Cisco documentation: Port Configuration. The Cisco CGR 1120 has 8 Ethernet ports: 6 FE ports, and 2 GE switch ports.
R1#conf t. Enter configuration commands, one per line. End with CNTL/Z. R1(config)#. R1(config)#interface gigabitethernet 0/0. R1(config-if)#ip address
The MAC address of the interface GigabitEthernet 1/0/1 on Router C is 000f-e200-01c0. Figure 20: Network diagram. Configuration procedure. Specify an IP address
Step 1. – Configure the IP address 10.234.51.254 on interface FastEthernet0/0. In order to to this configuration you'll need to place yourself into
Cisco CLI Error - X.X.X.X overlaps with GigabitEthernet0/1. An explanation of IP ... Suppose we now try to configure an IP Address on interface gi0/0.
Configure Tunnel0/0/1 to borrow the IP address from LoopBack0. <Huawei> system-view [Huawei] ... <Huawei> display ip interface gigabitethernet 0/0/0