Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

how to swap primary and secondary ip address?

we need to change the IP address of our VLAN, and I configured the new IP address as secondary IP address,now I want to improve the secondary address as the primary and delete the old ones,how to do that ?

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Silver

Re: how to swap primary and secondary ip address?

Try these commands:

no ip address secondary

ip address

ip address secondary

3 REPLIES
Silver

Re: how to swap primary and secondary ip address?

Try these commands:

no ip address secondary

ip address

ip address secondary

New Member

Re: how to swap primary and secondary ip address?

Tahnk you very much for your help!

no ip address <ip address1,

This is just a further cosmetic explanation of earlier provided correct answer.

 

no ip address <ip address1, subnet mask1> secondary

ip address <ip address1, subnet mask1>

      !  it ll overwrite the existing primary ip address.

ip address <ip address2, subnet mask2> secondary

 

 

End Reslt

-------------

IP Address 1 became primary and 2 became secondary

CCIE 37523
2484
Views
0
Helpful
3
Replies