The mpls l2vpn track route command configures a PW to track VPNv4 route status.
The undo mpls l2vpn track route command configures a PW not to track VPNv4 route status.
By default, a PW does not track VPNv4 route status.
mpls l2vpn track route ipv4-address { mask | mask-length } vpn-instance vpn-instance-name
undo mpls l2vpn track route
Parameter | Description | Value |
---|---|---|
ipv4-address | Specifies the destination IP address of a VPNv4 route. | The value is in dotted decimal notation. |
mask | Specifies a mask in dotted decimal notation. | The value is in dotted decimal notation. |
mask-length | Specifies the mask length. | The value is an integer ranging from 0 to 32. |
vpn-instance vpn-instance-name | Specifies the name of a VPN instance. | The value must be an existing VPN instance name. |
In an L2VPN access to L3VPN scenario, if all L3VPN-side links of an NPE become unavailable, a black-hole route comes into existence. The user-side UPE cannot detect the link failures and still sends traffic to the NPE. As a result, traffic loss occurs. To prevent traffic loss, run the mpls l2vpn track route command to configure the PW to track VPNv4 route status. Then, after the NPE detects that all its L3VPN-side links become unavailable, the NPE instructs the UPE to switch traffic to the secondary PW.
# Configure a PW to track VPNv4 route status.
<HUAWEI> system-view [HUAWEI] interface virtual-ethernet 0/0/1 [HUAWEI-Virtual-Ethernet0/0/1] ve-group 1 l2-terminate [HUAWEI-Virtual-Ethernet0/0/1] quit [HUAWEI] interface virtual-ethernet 0/0/1.1 [HUAWEI-Virtual-Ethernet0/0/1.1] mpls l2vc 10.1.1.2 101 [HUAWEI-Virtual-Ethernet0/0/1.1] mpls l2vpn track route 10.1.1.1 32 vpn-instance vpna