HomeCisco networkingCisco routerAssign or Configure IP Addresses on Cisco Routers

Assign or Configure IP Addresses on Cisco Routers

Every active interface on a Cisco router to be used with IP requires an IP address be assigned to it. This short tech-recipe describes how to set an interface’s IP address.


Given an interface fastethernet1, the IP address 192.168.1.5 with the subnet mask 255.255.255.0 can be assigned to it using the following command from privileged mode:

Router(config)#interface fastethernet1
Router(config-if)#ip address 192.168.1.5 255.255.255.0
Router(config-if)#no shut

The last command is important. It is an abbreviated form of “no shutdown.” The default state of an interface is “shutdown” which makes the interface administratively down. If you plumb up an interface and it does not work, check to make sure it is not administratively down first.

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
RELATED ARTICLES

7 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular

Recent Comments

Cleveland Furia on How to Clear Google Activity
Sid Wohlfarth on How to Clear Google Activity
Riley Magsayo on How to Clear Google Activity
สมัครรับเครดิตฟรี ทันที on How to improve Remote Desktop Protocol Performance
Neal Wangstad on How to Clear Google Activity
Slavcho Andov on How to install Ubuntu
Slavcho Andov on How to fix bad sectors
Sheraz Ali on How to Backup Android