05-27-2010 11:31 AM - edited 03-04-2019 08:37 AM
Hi guys,
I have a question about HSRP command.
The command is as follows:
standby [group-number] ip [ip-address[secondary]]
I undestand that the secondary argument meants that the HSRP will be a secondary group in the same interface. The thing is, what happen when there is a secondary IP address configured in the interface, is it necessary to write that argument to ??? or it is possible to have an HSRP group in an interface using just its secondary IP address.
Thanks for your comments,
05-27-2010 11:58 AM
Hello Douglas,
the secondary option tells the router that the HSRP group will serve users of an IP subnet associated to an ip address ... secondary command
So it is really thought for the case you are describing and not for other uses
see from a real device in a campus:
sh run | inc secondary
ip address 10.85.16.2 255.255.255.128 secondary
standby 100 ip 10.85.16.1 secondary
this group 100 is defined under a Vlan interface on a multilayer switch and has an IP address that matches a secondary statement
Hope to help
Giuseppe
05-27-2010 12:05 PM
If you have something like:
int vlan 1
ip address 192.168.1.1 255.255.255.0
ip address 192.168.2.1 255.255.255.0 sec
ip address 192.168.3.1 255.255.255.0 sec
You're config would look something like:
standby 1 ip 192.168.1.5
standby 1 ip 192.168.2.5 secondary
standby 1 ip 192.168.3.5 secondary
The standby config above would be the gateway for the workstations....
HTH,
John
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