The display mpls l2vpn track route command displays information about VPN routes tracked by VPWS PWs.
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies the destination IP address of a VPNv4 route. |
The value is in dotted decimal notation. |
mask |
Specifies the mask of the destination IP address of a VPNv4 route. |
The value is in dotted decimal notation. |
mask-length |
Specifies a 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 is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
ipv6-address |
Specifies the destination IPv6 address of a VPNv6 route. |
The address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
ipv6-mask |
Specifies the mask of the destination IPv6 address of a VPNv6 route. |
The address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
ipv6-mask-length |
Specifies a mask length of IPv6. |
The value is an integer ranging from 0 to 128. |
Usage Scenario
To check information about VPN routes tracked by VPWS PWs after running the mpls l2vpn track route command, run the display mpls l2vpn track route command.
Precautions
Before running the display mpls l2vpn track route command, run the mpls l2vpn track route command to configure a VPWS PW to track VPN route status. Otherwise, no information is displayed in the display mpls l2vpn track route command output.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display mpls l2vpn track route 10.1.1.1 24 vpn-instance vrf1
VPN instance name : vrf1
Route : 10.1.1.1/24
Route status : reachable
PW number : 1
VC ID VC Type Peer IP VC State
-------------------------------------------------------------
1 VLAN 1.1.1.1 up
<HUAWEI> display mpls l2vpn track route
Total route number:3 reachable :3 unreachable:0
-------------------------------------------------------------
VPN instance name : vrf1
Route : 10.1.1.1/24
Route status : reachable
PW number : 1
VC ID VC Type Peer IP VC State
-------------------------------------------------------------
1 VLAN 1.1.1.1 up
VPN instance name : vrf1
Route : 10.1.1.2/24
Route status : reachable
PW number : 1
VC ID VC Type Peer IP VC State
-------------------------------------------------------------
2 VLAN 1.1.1.1 up
VPN instance name : vrf1
Route : 2001:db8:1::1/64
Route status : reachable
PW number : 1
VC ID VC Type Peer IP VC State
-------------------------------------------------------------
3 VLAN 1.1.1.1 up
<HUAWEI> display mpls l2vpn track route 2001:db8:1::1 64 vpn-instance vrf1
VPN instance name : vrf1
Route : 2001:db8:1::1/64
Route status : reachable
PW number : 1
VC ID VC Type Peer IP VC State
-------------------------------------------------------------
1 VLAN 1.1.1.1 up
Item | Description |
---|---|
VPN instance name | Name of a VPN instance. |
Route | Destination IP address of a VPNv4 route. |
Route status | VPNv4 route status:
|
reachable | Number of reachable VPNv4 routes. |
PW number | Number of PWs. |
VC ID | Identifier of a VC, which uniquely identifies the VC. |
VC Type | Encapsulation type of a VC. |
VC State | VC status:
|
Peer IP | Peer IP address. |
Total route number | Total number of VPNv4 routes tracked by VPWS PWs. |
unreachable | Number of unreachable VPNv4 routes. |