Technology / Networking

How to Configure IP Addresses on a Cisco Router

How to Configure IP Addresses on a Cisco Router picture: A
Follow us
Updated on April 23, 2024

Network administrators routinely configure routers. Enterprise-grade routers are very different from consumer-grade routers, though. Consumer-grade routers are 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 must have an IP address assigned to it first. 

Configuring a Cisco router with an IP address is a simple process. There are typically four steps involved:

  1. Verify the current interface configuration of the router

  2. Choose the interface you want to assign an IP address to

  3. Assign the IP address

  4. Enable the interface on the Cisco router

We'll walk through each of those steps, explain how to complete them, and explore 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. 

Watch the below video for a straightforward, four-step process for enabling interfaces: 

How to Display Interfaces on a Cisco Device

Before you assign an IP address to a Cisco router, you need to know its current configuration. 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 in this article will assume 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:

  • Down

  • Administratively Down

  • Up

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). 

Cisco routers have the ‘Administratively Down’ configuration for each interface out of the box. This differs from Cisco Switches, Which come pre-configured out of the box. They can be safely implemented 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. 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. This is an excellent first step since we need to configure as much of the router as possible before connecting it to a network. 

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 need help understanding 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 1, 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 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 later. 

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 its designation. Pay attention to those interfaces. Also, make sure to match the console interface with the Cisco router's physical interface. 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 router's configuration mode, use the ‘interface’ command followed by the interface name to select it. For additional help, you can also add a question mark after the ‘interface’ command instead of the interface designation. 

Interface g0/0

In the example above, we used interface g0/0. That means we selected the first interface, which 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 assigning an IP address to a Cisco router, we must 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 designation must follow the ‘interface’ command. Once we have selected our interface, we can assign it an IP address. 

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 only produce confirmation messages if there is 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 ISP can change a network's external IP address. If your business hosts a VPN, though, that could be an issue. Static IP addresses keep network configurations static for 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 also be configured to use DHCP instead of being assigned a static IP address. To do that, add ‘DHCP’ instead of the IP address and subnet mask to the ‘IP address’ command in the console in Cisco routes, like this: 

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 shut down out of the box, which is important for 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. For example: 

interface GigabitEthernet0/0

In our example, 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

Assigning an IP address to a function you will perform frequently as a network admin. So, let’s go over how to assign an IP address to a Cisco router with a short and sweet instruction set.

  1. Verify the interface status with the ‘show IP interface brief’ command.

  2. After verifying all interfaces are down, enter global configuration mode with the ‘configure terminal’ command.’

  3. Select the interface you want to configure with the ‘interface’ command followed by the interface name.

  4. Assign an IP address to that interface with the ‘ip address’ command followed by the IP address and the subnet mask for that interface.

  5. Run the ‘show IP interface brief’ command again to verify the IP address has been assigned to the network interface. 

  6. Run the ‘no shutdown’ command to enable that interface. 

Keep these instructions handy until they become second nature.

We covered a lot of information in this article! Consider this guide a rough tutorial on assigning an IP address to a Cisco router.

To learn more, like what a subnet is or how to secure a router, consider our CCNA training.


Ultimate Networking Cert Guide

By submitting this form you agree to receive marketing emails from CBT Nuggets and that you have read, understood and are able to consent to our privacy policy.


Don't miss out!Get great content
delivered to your inbox.

By submitting this form you agree to receive marketing emails from CBT Nuggets and that you have read, understood and are able to consent to our privacy policy.

Recommended Articles

Get CBT Nuggets IT training news and resources

I have read and understood the privacy policy and am able to consent to it.

© 2024 CBT Nuggets. All rights reserved.Terms | Privacy Policy | Accessibility | Sitemap | 2850 Crescent Avenue, Eugene, OR 97408 | 541-284-5522