display mpls l2vpn track route

Function

The display mpls l2vpn track route command displays information about VPN routes tracked by VPWS PWs.

Format

display mpls l2vpn track route [ ipv4-address { mask | mask-length } vpn-instance vpn-instance-name ]

display mpls l2vpn track route [ ipv6-address { ipv6-mask | ipv6-mask-length } vpn-instance vpn-instance-name ]

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
l2vpn read

Usage Guidelines

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.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about a specified VPNv4 route tracked by VPWS PWs.
<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
# Display information about all VPN routes tracked by VPWS PWs.
<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
# Display information about a specified VPNv6 route tracked by VPWS PWs.
<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
Table 1 Description of the display mpls l2vpn track route command output
Item Description
VPN instance name

Name of a VPN instance.

Route

Destination IP address of a VPNv4 route.

Route status

VPNv4 route status:

  • reachable.
  • unreachable.
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:

  • Up: The VC is established.
  • Down: The VC is not established.
Peer IP

Peer IP address.

Total route number

Total number of VPNv4 routes tracked by VPWS PWs.

unreachable

Number of unreachable VPNv4 routes.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >