cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
565
Views
9
Helpful
4
Replies

use of secondary address in router interface

manojkumarnb
Level 1
Level 1

How can we use the secondary address in a router interface ? How does it work ? What is the command to configure the secondary address in a router interface?

4 Replies 4

mahmoodmkl
Level 7
Level 7

Hi

The usage of secondry address depends upon u r requirement.i.e during IP migration etc.

u can use the below commands to configure it.

int f0/0

ip address 1.1.1.2 255.0.0.0 secondry

Thanks

Mahmood

Hi Manoj,

Any device you are connecting directly below Router or L3 switch you have to add primary address

Attached Image and below config will guide you.

Router

f0/0

ip address 10.0.0.1 255.255.255.252

ip address 192.168.1.1 255.255.255.0 seecondary

ip address 192.168.2.1 255.255.255.0 seecondary

ip address 192.168.3.1 255.255.255.0 seecondary

ip route 172.16.5.0 255.255.255.0 192.168.1.2

ip route 172.16.3.0 255.255.255.0 192.168.3.2

Please rate if your question is answered

Regards

S. Shantharam

scottmac
Level 10
Level 10

The primary use for secondary addressing is for address migration, for example:

Your company wants to re-do their addressing, perhaps to make it more hierarchical for the purpose of proper summarization, or to expand the node count.

Both address blocks can be assigned *** TEMPORARILY *** to one interface, so that the clients can be migrated in phases and still have be be able to access all of the network resources. Once the clients are migrated, the SECONDARY addressing should be removed from the interface.

SECONDARY addressing is considered a security risk, it can screw up some routing protocols, and unnecessarily complicates the operation and administration.

SECONDARY addressing should not be used for anything other than temporary, "band aid" workarounds until the ultimate solution can be implemented.

To use it, just add an additional address command to an existing interface:

ip address 172.16.1.0 255.255.255.0 <---existing

ip address 192.168.1.0 255.255.255.0 SECONDARY <---adds additional address block

ip address 10.1.1.1 255.255.255.0 SECONDARY <-----Adds a third address block

You can have any number of additional SECONDARYs, but remember, it's not meant to be anything but a temporary solution.

Good Luck

Scott

Thanks, this information is very knowledgable and very useful. Thanks once again.

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:

Review Cisco Networking products for a $25 gift card