The display mpls l2vpn connection command displays information about L2VPN connections of the Kompella mode.
display mpls l2vpn connection vpn-name [ remote-ce ce-id | down | up | verbose ]
display mpls l2vpn connection [ summary | interface interface-type interface-number ]
Parameter | Description | Value |
---|---|---|
vpn-name | Displays information about the specified L2VPN. | The value is an existing VPN name. If you do not specify a VPN name, information about all the L2VPNs is displayed. |
remote-ce ce-id | Displays information about the remote connections of the specified CE. | The value is a decimal integer ranging from 0 to 249. |
down | Displays the information of the connections that are Down. If you do not specify this parameter, the detailed information about connections in both Up and Down state is displayed. | - |
up | Displays the information of the connections that are Up. If you do not specify this parameter, the detailed information about connections in both Up and Down state is displayed. | - |
verbose | Shows detailed information of connections. It is valid only when information about all the connections is displayed. | - |
summary | Displays the summary information of connections. | - |
interface interface-type interface-number | Displays information about the connections on the interface
of the specified type and number.
|
- |
After configuring an L2VPN connection of the Kompella mode, you can use the display mpls l2vpn connection vpn-name command to check the status of the connection.
The display mpls l2vpn connection command displays information about all the L2VPN connections of the Kompella mode on the local device.
# Display information about all the L2VPN Kompella connections.
<HUAWEI> display mpls l2vpn connection
1 total connections,
connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown
VPN name: komcon1,
1 total connections,
connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown
CE name: 116-119, id: 2,
Rid type status peer-id route-distinguisher interface
primary or not
----------------------------------------------------------------------------
1 rmt up 6.6.6.6 1:1 Vlanif222
primary
Item |
Description |
---|---|
1 total connections,connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown |
The first two lines indicate information about all the Kompella connections on the local device, including:
|
VPN name |
Name of the created VPN instance. |
1 total connections,connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown |
Information about the VPN connections, including:
|
CE name: |
Name of the CE. |
id: |
CE ID of the CE connection, which uniquely identifies a CE in a VPN. |
Rid |
ID of the remote CE that establishes the connection with the local CE. |
type |
Type of the CE connection:
|
status |
Status of the CE connection:
|
peer-id |
IP address of the peer that sets up the session with the local end. |
route-distinguisher |
RD of the VPN to which the CE belongs. |
interface |
Interface (an AC interface) connected to the CE. |
primary or not |
Whether the VC is a primary VC or a secondary VC. |
# Display the Kompella L2VPN remote connection on GE0/0/1
<HUAWEI> display mpls l2vpn connection interface gigabitethernet 0/0/1 conn-type: remote local vc state: up remote vc state: up local ce-id: 1 local ce name: ce1 remote ce-id: 2 intf (state,encap): GigabitEthernet0/0/1(up,ethernet) peer id: 2.2.2.2 route-distinguisher: 100:2 local vc label: 31745 remote vc label: 35842 tunnel policy: default CKey: 2 NKey: 1 primary or secondary: primary forward entry exist or not: true forward entry active or not:true manual fault set or not: not set AC OAM state: up BFD for PW session index: -- BFD for PW state: invalid BFD for LSP state: true Local C bit is not set Remote C bit is not set tunnel type: lsp tunnel id: 0x1000c Slave tunnel type: lsp Slave tunnel id: 0x0
Item |
Description |
---|---|
conn-type |
Type of the L2VPN connection:
|
local vc state |
Status of the local VC:
|
remote vc state |
Status of the destination VC:
|
local ce-id |
ID of the local CE. |
local ce name |
Name of the local CE. |
remote ce-id |
ID of the destination CE that sets up the connection with the local CE. |
intf (state,encap) |
Status and encapsulation type of the local interface. |
peer id |
IP address of the peer setting up a session with the CE. |
route-distinguisher |
RD of the VPN to which the CE interface belongs. |
local vc label |
Label generated by the local system. |
remote vc label |
Remote label that is assigned to the local end by the remote LDP. |
tunnel policy |
Tunnel policy applied to the CE connection. |
CKey | Index of the public tunnel (for VPN QoS). |
NKey | Index of the public tunnel. |
primary or secondary |
Whether the VC is a primary VC or a secondary VC. |
forward entry exist or not |
Whether forwarding entries exist. |
forward entry active or not |
Whether forwarding entries are in the active state. (If so, user packets can be forwarded.) |
manual fault set or not |
Whether the PW fault is configured manually. |
AC OAM state |
OAM status of the local AC. |
BFD for PW session index |
Index of the BFD for PW. |
BFD for PW state |
Status of BFD for PW. |
BFD for LSP state |
Status of BFD for LSP. |
Local C bit is not set |
L2VPN disabled with the control word. If the control word is enabled, the information is not displayed. |
Remote C bit is not set |
The remote site disabled with the control word. If the control word is enabled, the information is not displayed. |
tunnel type |
Tunnel type. The tunnel transmits data of the CE in the public network. |
tunnel id |
ID of the tunnel. The tunnel transmits data of the CE in the public network. |
Slave tunnel type |
Type of the backup tunnel when PW over LDP FRR is applied. |
Slave tunnel id |
ID of the backup tunnel when PW over LDP FRR is applied. |
# Display the summary of the Kompella L2VPN connections.
<HUAWEI> display mpls l2vpn connection summary
1 total connections,
connections: 1 up, 0 down , 0 local, 1 remote, 0 unknown
No. vpn-name local-num remote-num unknown-num up-num total-num
1 vpn1 0 1 0 1 1
Item |
Description |
---|---|
total connections |
Number of all L2VPN connections on the device. |
connections: |
Number of L2VPN connections of the following status:
|
No. |
Sequence number of the connection. |
vpn-name |
VPN instance name. Various types of connections are displayed in the order of L2VPN instances. |
local-num |
Number of local connections of the L2VPN instance. |
remote-num |
Number of all remote connections of the L2VPN instance. |
unknown-num |
Number of all unknown connections of the L2VPN instance. |
up-num |
Total number of successful connections of the L2VPN instance. |
total-num |
Total number of connections of the L2VPN instance. |