12-20-2023 12:24 PM
Hi Team,
I just want to know its just a normal behavaiour - Does it 10 seconds to become active?
12-20-2023 12:32 PM
Hmm,
it can but I think it slow.
can I see config of HSRP
MHM
12-20-2023 12:54 PM
Hello @ankitohc
In HSRP , the default timers include a 10-second delay before the router with the highest priority becomes the active router. This delay is known as the "Hello Timer" or "Hold Time."
Hello Timer (Hold Time) -- This is the interval at which routers participating in HSRP send hello messages to each other. The default hello time is 3 seconds. If a router does not receive a hello message from the active router within the hold time, it assumes that the active router is no longer available.
Hold Time --The hold time is how long a router considers the HSRP router that sent the last hello message to be the active router. The default hold time is 10 seconds.
So, during the normal operation of HSRP, when a router becomes the active router, it will send hello messages every 3 seconds. If a standby router does not receive a hello message within 10 seconds, it may transition to the active state, assuming that the previously active router is no longer reachable.
If you observe a 10-second delay before a router becomes active in your lab, it aligns with the default HSRP timers. If needed, these timers can be adjusted using the `standby` command on the routers participating in HSRP.
12-20-2023 03:48 PM
Ditto.
I recall (?) HSRPv2 supports subsecond hellos, so usually possible to get a failure switch over in under 2 seconds. To get subsecond failure switch over I recall you'll usually will want BFD support.
12-20-2023 04:39 PM
Lots of good HSRP details in https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipapp_fhrp/configuration/xe-3s/fhp-xe-3s-book/fhp-hsrp.html
For example:
You can lower these timer settings to speed up the failover or preemption, but, to avoid increased CPU usage and unnecessary standby state flapping, do not set the hello timer below one second or the hold timer below four seconds.
If the above catches your attention, as it might, when you get into HSRP v1 versus V2, and BFD usage, you'll better understand HSRP, very useful if you want to reduce its default failure switch over time.
12-20-2023 12:57 PM - edited 12-20-2023 01:01 PM
also, getting duplicate error
SW1-
SW1#show run
SW1#show running-config
Building configuration...
Current configuration : 1017 bytes
!
! Last configuration change at 20:20:56 UTC Wed Dec 20 2023
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname SW1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
ip dhcp pool 1
network 10.10.1.0 255.255.255.0
dns-server 8.8.8.8
default-router 10.10.1.3
!
!
ip cef
no ipv6 cef
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Vlan1
ip address 10.10.1.1 255.255.255.0
standby version 2
standby 0 ip 10.10.1.3
standby 10 priority 70
standby 11 priority 80
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
*Dec 20 20:54:08.942: %IP-4-DUPADDR: Duplicate address 10.10.1.3 on Vlan1, sourced by 0000.0c9f.f00a
12-20-2023 01:03 PM
interface Vlan1
ip address 10.10.1.1 255.255.255.0
standby version 2
standby 0 ip 10.10.1.3
standby 10 priority 70 <- no need
standby 11 priority 80 <- no need
You config priority to group not use' you need
Standby 0 priority (make it different to elect the active hsrp)
Config root primary in active hsrp l3sw
Config root secondary in standby l3sw hsrp
Config hsrp preempt in both l3sw
Wr config
Turn off then turn on
After that check recover time
MHM
12-20-2023 03:56 PM
Hello
The defaults are hello/hld timers are 3/10 seconds respectively so what you see is valid, if you wish to decrease thses timer then you can do so:
Example
standby 10 timers msec 250 msec 800
sh standby | be Group 10
12-20-2023 01:01 PM
SW2>EN
SW2#SHOW RUN
SW2#SHOW RUNning-config
Building configuration...
Current configuration : 835 bytes
!
! Last configuration change at 20:22:35 UTC Wed Dec 20 2023
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname SW2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface Ethernet0/0
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Vlan1
ip address 10.10.1.2 255.255.255.0
standby version 2
standby 10 ip 10.10.1.3
standby 10 priority 99
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
SW2#
SW2#
*Dec 20 20:56:37.626: %IP-4-DUPADDR: Duplicate address 10.10.1.3 on Vlan1, sourced by 0000.0c9f.f000
SW2#
SW2#
SW2#
*Dec 20 20:57:08.626: %IP-4-DUPADDR: Duplicate address 10.10.1.3 on Vlan1, sourced by 0000.0c9f.f000
12-20-2023 01:05 PM
In l3sw two the hsrp group is wrong you need to use same hsrp group in both l3sw hsrp
MHM
12-20-2023 01:43 PM
12-20-2023 01:50 PM
Reduce and there is no duplicate?
If Yes we are in right way
Now can you share last config let me make double check.
Thanks
MHM
12-20-2023 01:59 PM - edited 12-20-2023 02:01 PM
Duplicate error is gone.. let me share your latest config
SW1#wr
Building configuration...
Compressed configuration from 969 bytes to 658 bytes[OK]
SW1#
*Dec 20 21:58:05.038: %SYS-5-CONFIG_I: Configured from console by console
SW1#
SW1#show run
SW1#show running-config
Building configuration...
Current configuration : 969 bytes
!
! Last configuration change at 21:58:05 UTC Wed Dec 20 2023
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname SW1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
ip dhcp pool 1
network 10.10.1.0 255.255.255.0
dns-server 8.8.8.8
default-router 10.10.1.3
!
!
ip cef
no ipv6 cef
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Vlan1
ip address 10.10.1.1 255.255.255.0
standby version 2
standby 0 ip 10.10.1.3
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
12-20-2023 01:59 PM
SW2#show run
SW2#show running-config
Building configuration...
Current configuration : 810 bytes
!
! Last configuration change at 21:56:10 UTC Wed Dec 20 2023
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname SW2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Vlan1
ip address 10.10.1.2 255.255.255.0
standby version 2
standby 0 ip 10.10.1.3
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
12-20-2023 02:04 PM - edited 12-20-2023 02:05 PM
You dont config spanning root primary in active
And spanning root secondary in standby
Do this make sure stp root is active l3sw hsrp.
MHM
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