Configure Secondary IP Addresses on Cisco Routers
In a perfect world, every subnet would have its own interface or vlan, but this is far from a perfect world. Most routers start out that way, but networks change or get merged and things get a little messier.
Secondary IP addresses are a great way to extend the network without readdressing every workstation and printer. At the very least, secondary IP addresses on Cisco routers can make things smoother during an IP
migration.
For example, configuring an IP address on a Cisco interface is simple.
router(config)# int vlan 1
router(config-if)# ip address 10.1.1.1 255.255.255.0
This will configure the vlan 1 interface with the IP address of 10.1.1.1.
By adding the following statement, we can place two addresses on the same interface.
router(config)#int vlan 1
router(config-if)# ip address 10.1.1.1 255.255.255.0
router(config-if)# ip address 10.1.2.1 255.255.255.0 secondary
Be sure not to miss the word secondary or the primary IP address will be overwritten and traffic to that address will stop working. This is bad for users that are connected to that the primary interface of 10.1.1.1 for their network gateway and especially bad if you are connected via telnet to the router because you will lose access and have to console directly into the router to recover.
Now, the router will respond to the addresses of 10.1.1.1 and 10.1.2.1.
Users on each of the two subnets will never know that they are using the same interface.
The router will use the primary IP address to ping and traceroute unless you specify an address with an extended ping or traceroute command.
Secondary IP addresses are a great way to extend the network without readdressing every workstation and printer. At the very least, secondary IP addresses on Cisco routers can make things smoother during an IP
For example, configuring an IP address on a Cisco interface is simple.
router(config)# int vlan 1
router(config-if)# ip address 10.1.1.1 255.255.255.0
This will configure the vlan 1 interface with the IP address of 10.1.1.1.
By adding the following statement, we can place two addresses on the same interface.
router(config)#int vlan 1
router(config-if)# ip address 10.1.1.1 255.255.255.0
router(config-if)# ip address 10.1.2.1 255.255.255.0 secondary
Be sure not to miss the word secondary or the primary IP address will be overwritten and traffic to that address will stop working. This is bad for users that are connected to that the primary interface of 10.1.1.1 for their network gateway and especially bad if you are connected via telnet to the router because you will lose access and have to console directly into the router to recover.
Now, the router will respond to the addresses of 10.1.1.1 and 10.1.2.1.
Users on each of the two subnets will never know that they are using the same interface.
The router will use the primary IP address to ping and traceroute unless you specify an address with an extended ping or traceroute command.
Related information
Most Comments Today
- Death at Disney World in Orlando, Florida Monorails collide one driver has died at the Disney World Theme Park in Orlan... 29 Comments
- A Little Good News Today Here is...a little good news today. 25 Comments
- Why Would a Web Writer Drop DayLife.Com? Before I share my story with you, dear readers, I want to point out that Dayl... 24 Comments
- Give a Damn Another new song, this one describes the feelings of us who save the world ev... 17 Comments
- Hair and Make-Up Tips from Nancy Looking good is as easy. Looking stunningly beautiful is an art. 16 Comments
- Bachelorette 5 Spoiler: Wes Hayden Spills the Beans About... This week July 6, 2009 episode 8 of the Bachelorette Jillian will finally d... 16 Comments







