cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2689
Views
12
Helpful
8
Replies

howto add another IP/Subnet on an interface

axis0
Level 1
Level 1

Im trying to add a third ip/subnet on my cisco 2600 router, I didnt actually

add the second one, Im just curious can i add 1 more to make it three?

here's the current config on the router

-------

interface FastEthernet0/0

ip address 201.100.32.99 255.255.255.248 secondary

ip address 201.100.37.157 255.255.255.240

-------

8 Replies 8

Prashanth Krishnappa
Cisco Employee
Cisco Employee

You sure can add. Make sure you have the secondary keyword on the third ip address as well

Great!! can i know what keyword is it? thnx! just new on routing..

secondary :)

hm, im confused even as a third subnet/ip ?

Yes, you can have multiple secondary addresses on a single interface. I have had as many as 4. I am not sure what the max is, but I would think it dpends on how much traffic you are trying to push through...

yes even with the third ip subet you use the word secondary. there is only the concept of primary ip addresss and the rest of the them are just secondary

like

int e0

ip address 172.18.118.1 255.255.255.0

ip address 10.1.1.1 255.255.255.0 secondary

ip address 10.1.2.1 255.255.255.0 secondary

hope this clears the confusion

deadCenter
Level 1
Level 1

You could also use subinterfaces to add more subnets to the same interface. This would be easier to understand because the keyword secondary wouldn't have to be used. You could do something like the following:

interface e0.0

ip address 192.168.1.1 255.255.255.0

no shut

interface e0.1

ip address 192.168.2.1 255.255.255.0

no shut

inteface e0.2

ip address 192.168.3.1 255.255.255.0

no shut

interface e0.4

ip address 192.168.4.1 255.255.255.0

no shut

255.255.255.0 is the default subnet mask for class C networks because in this example I have used a class C network address which is also a private address which imho is what you should use for intranets. You should use the appropriate subnet mask on your network.

vbuhk
Level 1
Level 1

Always keep in mind thata bunch of secondary addresses shows a bad IP design ! Usually this is not TCP/IP standard and a goodie for migration purposes. You force a router to process switching with secondary addresses which means high CPU load ! Also ICMP messages got send by the primary address only and this can cause other problems in certain scenarios !

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco