HSRP Configuration
By lessaid on Friday, November 17 2006, 18:00 - Cisco - Permalink
Here a configuration of HSRP
:
DSW121#c
Enter configuration commands, one per line. End with CNTL/Z.
DSW121(config)#int vlan 1
DSW121(config-if)#ip address 172.16.10.121 255.255.255.0
DSW121(config-if)#no ip redirects
DSW121(config-if)#standby 47 ip 172.16.10.10
*Mar 1 00:08:49.111: %HSRP-6-STATECHANGE: Vlan1 Grp 47 state Speak ->
Standby
DSW121(config-if)#standby 47
priority 151
DSW121(config-if)#standby 47 preempt
*Mar 1 00:10:33.991: %HSRP-6-STATECHANGE: Vlan1 Grp 47 state Standby
-> Active
*Mar 1 00:11:13.095: %HSRP-6-STATECHANGE: Vlan1 Grp 47 state Active ->
Speak
DSW121(config-if)#standby 47 priority 153
*Mar 1 00:11:21.891: %HSRP-6-STATECHANGE: Vlan1 Grp 47 state Speak ->
Active
DSW121(config-if)#exit
DSW121(config)#^Z
DSW121#debug standby ?
errors HSRP errors
events HSRP events
packets HSRP packets
terse Display limited range of HSRP errors, events and
packets
<cr>
DSW121#debug standby events
HSRP Events debugging is on
DSW121#
*Mar 1 00:12:04.071: HSRP: Vl1 Grp 47 Active: j/Coup rcvd from higher pri
router (155/172.16.10.122
)
*Mar 1 00:12:04.075: HSRP: Vl1 Grp 47 Active router is 172.16.10.122, was
local
*Mar 1 00:12:04.079: HSRP: Vl1 Grp 47 Standby router is unknown, was
172.16.10.122
*Mar 1 00:12:04.079: HSRP: Vl1 Grp 47 Active -> Speak
*Mar 1 00:12:04.083: %HSRP-6-STATECHANGE: Vlan1 Grp 47 state Active ->
Speak
DSW121#
*Mar 1 00:12:04.083: HSRP: Vl1 Grp 47 Redundancy "hsrp-Vl1-47" state
Active -> Speak
*Mar 1 00:12:04.087: HSRP: Vl1 Redundancy server "hsrp-Vl1-47" update,
Active -> Speak
DSW121#
DSW121#sh standby
Vlan1 - Group 47
State is Standby
15 state changes, last state change 00:00:48
Virtual IP address is 172.16.10.10
Active virtual MAC address is 0000.0c07.ac2f
Local virtual MAC address is 0000.0c07.ac2f (v1
default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.596 secs
Preemption enabled
Active router is 172.16.10.122, priority 155 (expires in 9.596
sec)
Standby router is local
Priority 153 (configured 153)
IP redundancy name is "hsrp-Vl1-47" (default)
DSW121#
!<#======Shutdown of DSW122==========#>
*Mar 1 00:54:07.747: HSRP: Vl1 Grp 47 Standby: c/Active timer expired
(172.16.10.122)
*Mar 1 00:54:07.751: HSRP: Vl1 Grp 47 Active router is local, was
172.16.10.122
*Mar 1 00:54:07.755: HSRP: Vl1 Grp 47 Standby router is unknown, was
local
*Mar 1 00:54:07.755: HSRP: Vl1 Grp 47 Standby -> Active
*Mar 1 00:54:07.759: %HSRP-6-STATECHANGE: Vlan1 Grp 47 state Standby
-> Active
DSW121#
*Mar 1 00:54:07.759: HSRP: Vl1 Grp 47 Redundancy "hsrp-Vl1-47" state
Standby -> Active
*Mar 1 00:54:07.763: HSRP: Vl1 Redundancy server "hsrp-Vl1-47" update,
Standby -> Active
DSW121#
*Mar 1 00:54:10.771: HSRP: Vl1 Grp 47 Redundancy group hsrp-Vl1-47 state
Active -> Active
DSW121#
*Mar 1 00:54:13.775: HSRP: Vl1 Grp 47 Redundancy group hsrp-Vl1-47 state
Active -> Active
DSW121#sh standby
Vlan1 - Group 47
State is Active
16 state changes, last state change 00:00:55
Virtual IP address is 172.16.10.10
Active virtual MAC address is 0000.0c07.ac2f
Local virtual MAC address is 0000.0c07.ac2f (v1
default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.436 secs
Preemption enabled
Active router is local
Standby router is unknown
Priority 153 (configured 153)
IP redundancy name is "hsrp-Vl1-47" (default)
DSW121#sh standby bri
P indicates configured to preempt.
|
Interface Grp Pri P State
Active
Standby Virtual IP
Vl1 47 153 P Active
local
unknown 172.16.10.10
DSW121#
!<#======Switch on of DSW122==========#>
*Mar 1 01:20:43.827:
HSRP: Vl1 Grp 47 Active: j/Coup rcvd from higher pri router
(155/172.16.10.122
)
*Mar 1 01:20:43.839: HSRP: Vl1 Grp 47 Active router is 172.16.10.122, was
local
*Mar 1 01:20:43.843: HSRP: Vl1 Grp 47 Active -> Speak
*Mar 1 01:20:43.843: %HSRP-6-STATECHANGE: Vlan1 Grp 47 state Active ->
Speak
DSW121#
*Mar 1 01:20:43.847: HSRP: Vl1 Grp 47 Redundancy "hsrp-Vl1-47" state
Active -> Speak
*Mar 1 01:20:43.851: HSRP: Vl1 Redundancy server "hsrp-Vl1-47" update,
Active -> Speak
DSW121#
*Mar 1 01:20:53.835: HSRP: Vl1 Grp 47 Speak: d/Standby timer expired
(unknown)
*Mar 1 01:20:53.839: HSRP: Vl1 Grp 47 Standby router is local
*Mar 1 01:20:53.839: HSRP: Vl1 Grp 47 Speak -> Standby
*Mar 1 01:20:53.843: %HSRP-6-STATECHANGE: Vlan1 Grp 47 state Speak ->
Standby
DSW121#
*Mar 1 01:20:53.843: HSRP: Vl1 Grp 47 Redundancy "hsrp-Vl1-47" state
Speak -> Standby
*Mar 1 01:20:53.847: HSRP: Vl1 Redundancy server "hsrp-Vl1-47" update,
Speak -> Standby
DSW121#sh standby bri
P indicates configured to preempt.
|
Interface Grp Pri P State
Active
Standby Virtual IP
Vl1 47 153 P Standby
172.16.10.122
local
172.16.10.10
DSW121#
DSW121#sh cdp neigh
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local
Intrfce Holdtme Capability
Platform Port ID
DSW122 Fas
1/2
164 R S
I 3660 Fas 1/2
DSW122 Fas
1/1
163 R S
I 3660 Fas 1/1
DSW121#