11-09-2020 03:46 AM
Hi,
I have created an L2 Switching configuration using L2VPN, Is there a way for me to add VRF and HSRP to this setup? here is my current L2VPN config
======================
11-09-2020 06:00 AM
yes you can, here is an example of the config
vrf TEST address-family ipv4 unicast import route-target 1:1 ! export route-target 1:1 ! interface GigabitEthernet0/0/1/2 cdp ! interface GigabitEthernet0/0/1/2.1 l2transport encapsulation dot1q 1 rewrite ingress tag pop 1 symmetric ! ! ! interface BVI1 vrf TEST ipv4 address 1.1.1.3 255.255.255.0 ! l2vpn bridge group TEST bridge-domain TEST interface GigabitEthernet0/0/1/2.1 ! routed interface BVI1 ! ! ! router hsrp interface BVI1 address-family ipv4 hsrp 1 preempt address 1.1.1.1 ! ! ! !
11-09-2020 03:36 PM
Thanks, its working, however, for HSRP. if I shutdown one BVI interface, the standby router also gets deleted. I was assuming the standby router will take over but it doesnt look like it does
When both BVI's are up
========================================
RP/0/RSP0(config-if)#do sh hsrp detail
Mon Nov 9 16:15:44.100 UTC
BVI100 - IPv4 Group 1 (version 1)
Local state is Active, priority 100, may preempt
Hellotime 3000 msec holdtime 10000 msec
Next hello sent in 1.833
Minimum delay 1 sec, reload delay 5 sec
Hot standby IP address is 10.10.100.50 configured
Active router is local
Standby router is 10.10.100.20 expires in 00:00:09
Standby virtual mac address is 0000.0c07.ac01, state is active
4 state changes, last state change 00:51:43
State change history:
Nov 9 15:23:41.334 UTC Init -> Listen Delay timer expired
Nov 9 15:23:51.335 UTC Listen -> Speak Active timer expired
Nov 9 15:24:01.336 UTC Speak -> Standby Standby timer expired
Nov 9 15:24:01.336 UTC Standby -> Active Active timer expired
Last coup sent: Never
Last coup received: Never
Last resign sent: Never
Last resign received: Never
===================================
When I shut down the primary HSRP BVI
RP/0/RSP0#sh hsrp detail
Mon Nov 9 16:17:40.901 UTC
BVI100 - IPv4 Group 1 (version 1)
Local state is Init, priority 100, may preempt
Hellotime 3000 msec holdtime 10000 msec
Minimum delay 1 sec, reload delay 5 sec
Hot standby IP address is 10.10.100.50 configured
Active router is unknown expired
Standby router is unknown expired
Standby virtual mac address is 0000.0c07.ac01, state is stored
5 state changes, last state change 00:00:25
State change history:
Nov 9 15:23:41.334 UTC Init -> Listen Delay timer expired
Nov 9 15:23:51.335 UTC Listen -> Speak Active timer expired
Nov 9 15:24:01.336 UTC Speak -> Standby Standby timer expired
Nov 9 15:24:01.336 UTC Standby -> Active Active timer expired
Nov 9 16:17:15.511 UTC Active -> Init Interface Down update
Last coup sent: Never
Last coup received: Never
Last resign sent: Nov 9 16:17:15.511 UTC
Last resign received: Never
11-30-2020 02:54 AM
If you shutdown the BVI interface of the HSRP-Active device then you are not going to see the standby transition into the Active state from that same device where you have just shut the interface, because you have disabled the interface over which it "sees" that peer. Are you saying that after shutting down the BVI100 then when you look on the config of the "other" router it has not taken over ownership of the HSRP virtual-address ??
Rgds, Jim.W.
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