Enable the HSRP version 2 feature on both Core_R1 and Core_R2 for Ethernet0/1.42 (VLAN 42) and Ethernet0/1.137 (VLAN 137). Assign Ethernet0/1.42 to hot standby group 42 and VLAN 137 to hot standby group 137. Use 192.168.42.100 and 192.168.137.100 as the virtual HSRP IP address for group 42 and group 137, respectively, and enable preemption. On Core_R1, set the priority to 110 for group 137 and monitor the tracking process created previously, and when the link fails to decrease the priority by 20. Do a similar configuration on Core_R2 for group 42
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Step 1
Core_R1#conf t Core_R1#show track
Core_R1(config)#track 1 interface e0/0 line-protocol Track 1
Core_R1(config-track)#end Interface Ethernet0/0 line-protocol
Line protocol is Up
1 change, last change 00:09:17
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Step 2
Full Show Run
interface Ethernet0/1.42
encapsulation dot1Q 42
Core_R1#conf t ip address 192.168.42.3 255.255.255.0
Core_R1(config)#int e0/1.42 standby version 2
Core_R1(config-subif)#standby version 2 standby 42 ip 192.168.42.100
Core_R1(config-subif)#standby 42 ip 192.168.42.100 standby 42 preempt
Core_R1(config-subif)#standby 42 preempt +++++++++++++++++++++++++
Core_R1(config-subif)#int e0/1.137
Core_R1(config-subif)#standby version 2 interface Ethernet0/1.137
Core_R1(config-subif)#standby 137 ip 192.168.137.100 encapsulation dot1Q 137
Core_R1(config-subif)#standby 137 preempt ip address 192.168.137.3 255.255.255.0
Core_R1(config-subif)#standby 137 priority 110 standby 137 ip 192.168.137.100
Core_R1(config-subif)#standby 137 track 1 decrement 20 standby 137 priority 110
Core_R1(config-subif)#end standby 137 preempt
standby 137 track 1 decrement 20
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Step 1
Core_R2#conf t Core_R2#show track
Core_R2(config)#track 1 interface e0/0 line-protocol Track 1
Core_R2(config-track)#end Interface Ethernet0/0 line-protocol
Line protocol is Up
1 change, last change 00:09:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Step 2
Full Show Run
interface Ethernet0/1.42
encapsulation dot1Q 42
ip address 192.168.42.4 255.255.255.0
Core_R2#conf t standby version 2
Core_R2(config)#int e0/1.42 standby 42 ip 192.168.42.100
Core_R2(config-subif)#standby version 2 standby 42 priority 110
Core_R2(config-subif)#standby 42 ip 192.168.42.100 standby 42 preempt
Core_R2(config-subif)#standby 42 preempt standby 42 track 1 decrement 20
Core_R2(config-subif)#standby 42 priority 110 +++++++++++++++++++++++++
Core_R2(config-subif)#standby 42 track 1 decrement 20
Core_R2(config-subif)#int e0/1.137 interface Ethernet0/1.137
Core_R2(config-subif)#standby version 2 encapsulation dot1Q 137
Core_R2(config-subif)#standby 137 ip 192.168.137.100 ip address 192.168.137.4 255.255.255.0
Core_R2(config-subif)#standby 137 preempt standby version 2
Core_R2(config-subif)#end standby 137 ip 192.168.137.100
standby 137 preempt +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Tool
show standby
show standby brief
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Core_R1(config-if)#do sh standby brief
P indicates configured to preempt.
|
Core_R1#sh standby
Ethernet0/1.42 - Group 42 (version 2)
State is Standby
4 state changes, last state change 00:01:11
Virtual IP address is 192.168.42.100
Active virtual MAC address is 0000.0c9f.f02r
Local virtual MAC address is 0000.0c9f.f02q (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.120 secs
Preemption enabled
Active router is 192.168.42.4, priority 110 (expires in 8.352 sec)
MAC address is aabb.cc00.1413
Standby router is local
Priority 100 (default 100)
Group name is "hsrp-Et0/1.42-42" (default)
Ethernet0/1.137 - Group 137 (version 2)
State is Active
2 state changes, last state change 00:06:46
Virtual IP address is 192.168.137.100
Active virtual MAC address is 0000.0c9f.f080
Local virtual MAC address is 0000.0c9f.f084 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.464 secs
Preemption enabled
Active router is local
Standby router is 192.168.137.4, priority 100 (expires in 9.871 sec)
Priority 110 (configured 110)
Track object 1 state Up decrement 20
Group name is "hsrp-Et0/1.137-137" (default)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Core_R2#sh standby brief
P indicates configured to preempt.
|
Core_R2#sh standby
Ethernet0/1.42 - Group 42 (version 2)
State is Active
1 state change, last state change 00:00:55
Virtual IP address is 192.168.42.100
Active virtual MAC address is 0000.0c9f.f02c
Local virtual MAC address is 0000.0c9f.f02d (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.920 secs
Preemption enabled
Active router is local
Standby router is 192.168.42.3, priority 100 (expires in 11.264 sec)
Priority 110 (configured 110)
Track object 1 state Up decrement 20
Group name is "hsrp-Et0/1.42-42" (default)
Ethernet0/1.137 - Group 137 (version 2)
State is Standby
1 state change, last state change 00:00:04
Virtual IP address is 192.168.137.100
Active virtual MAC address is 0000.0c9f.f080
Local virtual MAC address is 0000.0c9f.f082 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.912 secs
Preemption enabled
Active router is 192.168.137.3, priority 110 (expires in 9.024 sec)
MAC address is aabb.cc00.1310
Standby router is local
Priority 100 (default 100)
Group name is "hsrp-Et0/1.137-137" (default)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
No comments:
Post a Comment