03-24-2011 07:14 PM - edited 03-04-2019 11:52 AM
Hi
Hopefully someone can help me here
I have 2x3945 routers i'm trying to get HRSP to work on. The configuration looks fine & i can see the active & standby router. But when i pull the cable the standby router first changes to active as it should, but then the interface shuts & then HSRP goes into the init state?? has anyone ever had this before? I have double checked my config of an old 3745 & worked fine. And i have set up our new 3750 switches with HSRP & they work fine. But no matter what i do on the new 3945's once that interface shuts HSRP stops working, which sort of defeats the object of HSRP.
Thanks in advance
03-24-2011 07:58 PM
Do you have an example of your interface configuration?
Sent from Cisco Technical Support iPhone App
03-24-2011 08:44 PM
Hi
yeah sure
Router#sh int g 0/2
GigabitEthernet0/2 is up, line protocol is up
Hardware is PQ3_TSEC, address is c89c.1dc6.9e82 (bia c89c.1dc6.9e82)
Internet address is 192.168.0.3/24
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1Gbps, media type is RJ45
output flow-control is XON, input flow-control is XON
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 7000 bits/sec, 9 packets/sec
5 minute output rate 7000 bits/sec, 10 packets/sec
85665 packets input, 7628397 bytes, 0 no buffer
Received 85665 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 85553 multicast, 0 pause input
87952 packets output, 7799777 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
3 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
03-25-2011 12:25 AM
hi kelvin,
kindly post your running config both on your 3945s and also the show standby command output for us to check.
03-25-2011 04:15 PM
HI
I will have to do this monday now as it's now the weekend here. But will post everthing first thing monday morning. Thanks in advance
Kelvin
03-27-2011 04:34 PM
Hi
Here is the running config & sh standby for both routers.
R1#sh run
Building configuration...
Current configuration : 1303 bytes
!
! Last configuration change at 23:02:33 UTC Sun Mar 27 2011
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
no ipv6 cef
ip source-route
ip cef
!
!
!
!
!
multilink bundle-name authenticated
!
!
crypto pki token default removal timeout 0
!
!
license udi pid C3900-SPE150/K9 sn
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address 192.168.0.2 255.255.255.0
duplex auto
speed auto
standby version 2
standby 1 ip 192.168.0.1
standby 1 timers msec 100 msec 300
standby 1 priority 105
standby 1 preempt
!
interface FastEthernet0/0/0
!
interface FastEthernet0/0/1
!
interface FastEthernet0/0/2
!
interface FastEthernet0/0/3
!
interface FastEthernet0/1/0
!
interface FastEthernet0/1/1
!
interface FastEthernet0/1/2
!
interface FastEthernet0/1/3
!
interface Vlan1
no ip address
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
end
R1#sh stan
R1#sh standby
GigabitEthernet0/2 - Group 1 (version 2)
State is Active
18 state changes, last state change 00:10:51
Virtual IP address is 192.168.0.1
Active virtual MAC address is 0000.0c9f.f001
Local virtual MAC address is 0000.0c9f.f001 (v2 default)
Hello time 100 msec, hold time 300 msec
Next hello sent in 0.016 secs
Preemption enabled
Active router is local
Standby router is 192.168.0.3, priority 100 (expires in 0.240 sec)
Priority 105 (configured 105)
Group name is "hsrp-Gi0/2-1" (default)
R1#
R2#sh run
Building configuration...
Current configuration : 1289 bytes
!
! Last configuration change at 23:02:42 UTC Sun Mar 27 2011
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
no ipv6 cef
ip source-route
ip cef
!
!
!
!
!
no ip domain lookup
multilink bundle-name authenticated
!
!
crypto pki token default removal timeout 0
!
!
license udi pid C3900-SPE150/K9 sn
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address 192.168.0.3 255.255.255.0
duplex auto
speed auto
standby version 2
standby 1 ip 192.168.0.1
standby 1 timers msec 100 msec 300
standby 1 preempt
!
interface FastEthernet0/0/0
!
interface FastEthernet0/0/1
!
interface FastEthernet0/0/2
!
--More--
interface FastEthernet0/0/3
!
interface FastEthernet0/1/0
!
interface FastEthernet0/1/1
!
interface FastEthernet0/1/2
!
interface FastEthernet0/1/3
!
interface Vlan1
no ip address
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
end
R2#sh stan
R2#sh standby
GigabitEthernet0/2 - Group 1 (version 2)
State is Standby
25 state changes, last state change 00:00:05
Virtual IP address is 192.168.0.1
Active virtual MAC address is 0000.0c9f.f001
Local virtual MAC address is 0000.0c9f.f001 (v2 default)
Hello time 100 msec, hold time 300 msec
Next hello sent in 0.048 secs
Preemption enabled
Active router is 192.168.0.2, priority 105 (expires in 0.320 sec)
MAC address is 6400.f103.cc82
Standby router is local
Priority 100 (default 100)
Group name is "hsrp-Gi0/2-1" (default)
R2#
03-27-2011 08:37 PM
Hi,
Your config looks ok. Could you give us a brief description or a diagram of your HSRP setup? What interface that was shutdown? Is it on the LAN or WAN side? You may want to tweak your timers. The ms timers might be too fast for HSRP to capture the 3rd hello. Also try to add a preempt delay timer and test again.
Sent from Cisco Technical Support iPhone App
03-27-2011 08:55 PM
Hi
At the minute (as this is in the testlab) I just have to 2 routers connected by a single gig port. So G 0/2 on R1 connects to G 0/2 R2. I'll slow the timers down and try again, but this is an emergency call centre so timers will have to be fast.
Here's the out put of what happens.
R1#
*Mar 28 03:47:29.856: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to down
*Mar 28 03:47:30.856: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to down
*Mar 28 03:47:30.856: %HSRP-5-STATECHANGE: GigabitEthernet0/2 Grp 1 state Active -> Init
R1#
R2#
*Mar 28 03:48:54.790: %HSRP-5-STATECHANGE: GigabitEthernet0/2 Grp 1 state Standby -> Active
*Mar 28 03:48:57.182: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to down
*Mar 28 03:48:58.182: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to down
*Mar 28 03:48:58.182: %HSRP-5-STATECHANGE: GigabitEthernet0/2 Grp 1 state Active -> Init
As you can see this happens when G 0/2 goes down (like if R1 went down). And the standby router kicks in for a few seconds, so i think the timers are ok. But i will double check & confirm.
03-27-2011 09:03 PM
Hi
Just reconfigured the hello & hold down timers to 1sec & 3sec. This time the standby didn't even make it to the active state, went standby to Init??
03-27-2011 11:24 PM
Hi,
Make the other router as active and then pull the cable of standby... check whats the result you get. Did you try with HSRP version 1? Also a network diagram could make things easier to understand.. Is it possible for you to send the network diagram and "sh interfaces" of both routers?
On the previous devices on which it was working fine... were they working with version 2 or version 1 of HSRP?
Regards,
Talha
03-27-2011 11:46 PM
Hi
I have had both routers as active & standby with the same result, neither worked. Yep tried Version 1 same result. I have uploaded a diagram but as you'll see at the minute it's just 2 routers connected by gig ports & a cat 5 cable.
Here is the Int out put of the 2 interfaces
R1#sh int g 0/2
GigabitEthernet0/2 is up, line protocol is up
Hardware is PQ3_TSEC, address is 6400.f103.cc82 (bia 6400.f103.cc82)
Internet address is 192.168.0.2/24
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1Gbps, media type is RJ45
output flow-control is XON, input flow-control is XON
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
307837 packets input, 28576817 bytes, 0 no buffer
Received 307837 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 307713 multicast, 0 pause input
311654 packets output, 28830400 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
8 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
R1#
R2#en
R2#sh int g 0/2
GigabitEthernet0/2 is up, line protocol is up
Hardware is PQ3_TSEC, address is c89c.1dc6.9e82 (bia c89c.1dc6.9e82)
Internet address is 192.168.0.3/24
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1Gbps, media type is RJ45
output flow-control is XON, input flow-control is XON
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1000 bits/sec, 1 packets/sec
5 minute output rate 1000 bits/sec, 1 packets/sec
172993 packets input, 16340130 bytes, 0 no buffer
Received 172993 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 172906 multicast, 0 pause input
175118 packets output, 16458914 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
1 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
3 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
R2#
Not sure what else to try??
03-28-2011 02:39 AM
hi kelvin,
looking at your setup, i would suggest to add a LAN switch and a client and do your failover test again.
03-27-2011 11:29 PM
Hope you have the below scenorio testing in your lab environmet, right??
|--------------| Gi0/2 Gi 0/2|-----------------|
| R1 |------------------------| R2 |
|________| |__________|
Now, my questions are
1. Is this the setup you are using in your scenorio??
2. Do you have any other connectivity b/w R1 & R2?
If this is the only connectivity b/w R1 & R2 and when you unplug the connectivity between the two routers then none of the routers will become hsrp active as the the link for hsrp connectivty itself is down.
HTH,
Bava
03-27-2011 11:50 PM
Hi
@bava_ccna
That's correct. Simple setup & HSRP fails when the cable is pulled.
Regards
03-27-2011 11:56 PM
Hello Kelvin,
This is the expected behaviour of HSRP. Simple, you have unplugged the connectivity b/w the routers, then how come the hsrp hello messages reach each other??
HTH,
Bava
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