10-31-2012 10:32 AM - edited 03-07-2019 09:47 AM
Hi Everyone,
Need to know how the use of secondary ip address under vlan interface is for extension of subnets.
If someone can please explain this with example?
thanks
Mahesh
Solved! Go to Solution.
10-31-2012 01:12 PM
Well, there are some benefits of secondary address (pls note that these benefits are for a temp fix)...Say you have a network on an interface with 192.168.1.0/24 and you run out of IPs and you need to put more servers there and not impact anything else. You can use sec IP on that interface and bring up another range like 192.168.2.0/24. Another practical use of secondary address is during IP address space migrations
.
10-31-2012 11:58 AM
Thats a very broad question. :-). Secondary address on VLAN SVI works....and you can even have a separate HSRP group for sec address....e.g.
interface gig0/1 no switchport ip address 192.168.1.1 255.255.255.0 secondary ip address 172.168.1.1 255.255.255.0 standby 10 ip 172.168.1.2 standby 10 priority 105 standby 20 ip 192.168.1.2 standby 20 priority 95
Note: As you may know there are routing protocol limitations whenusing secondary addresses.
10-31-2012 12:36 PM
Hi Srereddy,
I am not using HSRP in network.
Only vlan interface with secondary IP addresses
say int vlan 2
ip address 10.x.x.x.
ip address 192.x.x.x. secondary
thanks
Mahesh
10-31-2012 12:44 PM
Yeah, as i stated before, there is no issue.
10-31-2012 12:50 PM
Hi srereddy,
So there is no issue on using secondary IP under vlan interface but i need to know purpose of it for extension of subnets
if you can please explain this?
Thanks
Mahesh
10-31-2012 01:12 PM
Well, there are some benefits of secondary address (pls note that these benefits are for a temp fix)...Say you have a network on an interface with 192.168.1.0/24 and you run out of IPs and you need to put more servers there and not impact anything else. You can use sec IP on that interface and bring up another range like 192.168.2.0/24. Another practical use of secondary address is during IP address space migrations
.
11-16-2015 11:07 AM
if you use a secondary ip, the default gateway still should be the primary ip, correct?
thanks,
11-16-2015 11:10 AM
Do you mean the default gateway of clients ?
If so no it would be whichever subnet the clients were in ie. if they were in the secondary IP subnet then the default gateway is the secondary IP.
Otherwise why use secondary IPs.
Jon
11-16-2015 11:16 AM
if they are all in the same network, which ip should be the default gateway? If I use .1 as default gateway, could it cause any issue? see below:
interface vlan 100
ip address 10.10.10.2 255.255.255.224
ip address 10.10.10.1 255.255.255.224 secondary
someone configured the above, there is an issue. that's why I suspected that we should use .2 as a default.
Alison
11-16-2015 11:23 AM
Alison
I'm not sure what the purpose of that configuration is.
Secondary IPs are used to have multiple subnets in the same vlan but those IPs are from the same IP subnet.
Surprised it even let you configure it but what is the point of it ?
Jon
10-26-2017 08:29 AM
10-26-2017 03:19 PM
I am not sure what you are really trying to ask when you ask if primary IP and secondary IP are equal. In what respects are you measuring equal? Both primary IP and secondary IP can be configured on an interface (vlan interface or physical interface) and both primary IP and secondary IP can be the default gateway for clients in their respective subnets. In those senses they are equal. But if you do a ping or a traceroute from the interface it will always use the primary IP and not the secondary IP as the source address. If you run a routing protocol like EIGRP or OSPF on the interface it will use the primary address to form neighbor relationship and not use the secondary IP. In those senses they are not equal.
HTH
Rick
02-01-2023 04:39 AM
Hi
This is very helpful, request to you share configuration of cisco Nexus7000 C7010 switch,
Thanks!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide