06-08-2023 11:28 AM - last edited on 06-20-2023 05:44 AM by Translator
I am creating a network on packet tracer, and have load balancing configured on a couple of 2911 routers. But, the router with the lower priority continues to become the
default router
and I am not sure why. Here are my configurations:
I configured the first router with the following commands:
R1(config)# int g0/1
R1(config-if)# standby group 1 ip 172.16.0.254
R1(config-if)# standby 1 priority 1
R1(config-if)# standby 1 preempt
I configured then the second router with the following:
R2(config)# int g0/2
R2(config-if)# standby group 1 ip 172.16.0.254
R2(config-if)# standby 1 priority 100
When I disable
R1's g0/1
interface to test the functionality of the configuration, R2 does indeed go from standby mode to active mode. But, when I once again enable
R1's g0/1
interface, it
(r1's g0/1)
does not become active again, despite having the higher priority,
R2's g0/2
stays active. Preemption is not functioning it seems.
The output of show standby on R1 and R2 when
R1's g0/1
was turned back on are as follows:
R1 output:
GigabitEthernet0/1 - Group 1
State is Standby
19 state changes, last state change 00:49:29
Virtual IP address is 172.16.0.254
Active virtual MAC address is 0000.0C07.AC01
Local virtual MAC address is 0000.0C07.AC01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.623 secs
Preemption enabled
Active router is 172.16.0.2, priority 100 (expires in 7 sec)
MAC address is 0000.0C07.AC01
Standby router is local
Priority 1 (configured 1)
Group name is hsrp-Gig0/1-1 (default)
R2 output:
GigabitEthernet0/2 - Group 1
State is Active
18 state changes, last state change 00:36:16
Virtual IP address is 172.16.0.254
Active virtual MAC address is 0000.0C07.AC01
Local virtual MAC address is 0000.0C07.AC01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.724 secs
Preemption disabled
Active router is local
Standby router is 172.16.0.1, priority 1 (expires in 8 sec)
Priority 100 (default 100)
Group name is hsrp-Gig0/2-1 (default)
Active virtual MAC address is 0000.0C07.AC01
Local virtual MAC address is 0000.0C07.AC01 (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.623 secs
Preemption enabled
Active router is 172.16.0.2, priority 100 (expires in 7 sec)
MAC address is 0000.0C07.AC01
Standby router is local
Priority 1 (configured 1)
Group name is hsrp-Gig0/1-1 (default)
Any tips on why this may be occurring would be helpful, thank you!
@hsrp
Solved! Go to Solution.
06-08-2023 11:33 AM
Change priority of R1 to 110 and see effect .
06-08-2023 11:33 AM
Change priority of R1 to 110 and see effect .
06-08-2023 01:25 PM - edited 06-08-2023 01:26 PM
Hello @michaeleastongodwin,
Please follow @MHM Cisco World advice.
06-08-2023 01:30 PM - last edited on 06-20-2023 05:46 AM by Translator
Add
preempt
command on R2 and test please.
Both routers have the
preempt
command configured under the HSRP interface. It should be present on both
R1's GigabitEthernet0/1 and R2's GigabitEthernet0/2
interfaces.
06-08-2023 01:48 PM - last edited on 06-20-2023 05:48 AM by Translator
It's working correctly.
R2 has the higher priority, i.e. 100, vs. a priority of only 1 for R1. Since R1 has the lower priority, it won't
preempt
Conversely, if R1 is active, even though it has the lower priority, as R2 doesn't have
preempt
it will not
preempt
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