A SERVICE OF

logo

Configuring the Switch
3-192
3
CLI
– This example creates HSRP group 1, sets the virtual router’s address, adds a
secondary IP address to the group, specifies an interface for tracking, sets all the
other HSRP parameters, and then displays the configured settings.
Console(config)#interface vlan 1 4-191
Console(config-if)#standby 1 ip 192.168.1.7 4-321
Console(config-if)#standby 1 ip 192.168.2.6 secondary
Console(config-if)#standby 1 track vlan 3 100 4-326
Console(config-if)#standby 1 timers 2 5 4-325
Console(config-if)#standby 1 preempt delay 10 4-323
Console(config-if)#standby 1 priority 10 4-322
Console(config-if)#standby 1 authentication bluebird 4-324
Console#show standby 4-327
Vlan 1 - Group 1
Local State is Active, priority 5 (confgd 10), may preempt
Preemption delayed for 10 secs
Hellotime 6 sec, holdtime 18 sec
Next hello sent in 0: 0: 5
Host standby IP address is 192.168.1.7 configured
Active router is local
Standby router is unknown
Standby virtual mac address is 0- 0- C- 7-AC- 1
Authentication text "bluebird"
Tracking interface states for 1 interfaces, 0 up
Down Vlan2 5
Console#