Cisco Systems 312 Switch User Manual


  Open as PDF
of 1216
 
40-11
Cisco Catalyst Switch Module 3110 and 3012 for IBM BladeCenter Software Configuration Guide
OL-12189-01
Chapter 40 Configuring HSRP
Displaying HSRP Configurations
This example shows how to configure word as the authentication string required to allow Hot Standby
routers in group 1 to interoperate:
Switch# configure terminal
Switch(config)# interface gigabitethernet1/0/1
Switch(config-if)# no switchport
Switch(config-if)# standby 1 authentication word
Switch(config-if)# end
This example shows how to set the timers on standby group 1 with the time between hello packets at 5
seconds and the time after which a router is considered down to be 15 seconds:
Switch# configure terminal
Switch(config)# interface gigabitethernet1/0/1
Switch(config-if)# no switchport
Switch(config-if)# standby 1 ip
Switch(config-if)# standby 1 timers 5 15
Switch(config-if)# end
Enabling HSRP Support for ICMP Redirect Messages
ICMP redirect messages are automatically enabled on interfaces configured with HSRP. ICMP is a
network layer Internet protocol that provides message packets to report errors and other information
relevant to IP processing. ICMP provides diagnostic functions, such as sending and directing error packets
to the host. This feature filters outgoing ICMP redirect messages through HSRP, in which the next hop
IP address might be changed to an HSRP virtual IP address. For more information, see the Cisco IOS IP
Configuration Guide, Release 12.2.
Displaying HSRP Configurations
From privileged EXEC mode, use this command to display HSRP settings:
show standby [interface-id [group]] [brief] [detail]
You can display HSRP information for the whole switch, for a specific interface, for an HSRP group, or
for an HSRP group on an interface. You can also specify whether to display a concise overview of HSRP
information or detailed HSRP information. The default display is detail. If there are a large number of
HSRP groups, using the show standby command without qualifiers can result in an unwieldy display.
This is a an example of output from the show standby privileged EXEC command, displaying HSRP
information for two standby groups (group 1 and group 100):
Switch# show standby
VLAN1 - Group 1
Local state is Standby, priority 105, may preempt
Hellotime 3 holdtime 10
Next hello sent in 00:00:02.182
Hot standby IP address is 172.20.128.3 configured
Active router is 172.20.128.1 expires in 00:00:09
Standby router is local
Standby virtual mac address is 0000.0c07.ac01
Name is bbb
VLAN1 - Group 100
Local state is Active, priority 105, may preempt
Hellotime 3 holdtime 10
Next hello sent in 00:00:02.262
Hot standby IP address is 172.20.138.51 configured
Active router is local