Usage Scenario
To check BGP VPWS connection information after configuring BGP VPWS, run the display mpls l2vpn connection command.
Prerequisites
BGP VPWS has been configured.
Precautions
If a device has large numbers of VPWS connections, filter undesired information by specifying related parameters when running the
display mpls l2vpn connection command. Otherwise, excessive output information may cause the following problems:The actual command output varies according to the device. The command output here is only an example.
<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
<HUAWEI> display mpls l2vpn connection interface virtual-ethernet 0/1/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): Virtual-Ethernet0/1/0.1(up,ethernet) peer id: 4.4.4.9 route-distinguisher: 100:1 local vc label: 294930 remote vc label: 294929 tunnel policy: default CKey: 129 NKey: 3841982621 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: bgp tunnel id: 0x00000000020104000
<HUAWEI> display mpls l2vpn connection 1 total connections, connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown VPN name: vpn1, 1 total connections, connections: 1 up, 0 down , 0 local, 1 remote, 0 unknown CE name: ce1, id: 1, Rid type status peer-id route-distinguisher interface primary or not ---------------------------------------------------------------------------- 2 rmt up 3.3.3.9 100:1 GigabitEthernet0/1/0 primary
Item | Description |
---|---|
total connections | Information about all BGP VPWS connections on the local device, including the total number of connections, number of connections in the up state, number of connections in the down state, number of local connections, number of remote connections, and number of unknown connections. |
No. | Serial number of a connection. |
vpn-name | MPLS L2VPN instance name. |
local-num | Number of local connections of an MPLS L2VPN instance. |
remote-num | Number of remote connections of an MPLS L2VPN instance. |
unknown-num | Number of unknown connections of an MPLS L2VPN instance. |
up-num | Number of Up connections of an MPLS L2VPN instance. |
total-num | Total number of connections of an MPLS L2VPN instance. |
interface | AC interface connecting to a CE. |
remote vc state | Status of the remote VC:
|
remote ce-id | ID of the remote CE that establishes a connection with the local CE. |
remote vc label | VC label assigned to the local end by the remote end through BGP. |
local vc state | Status of the local VC:
|
local ce-id | ID of the local CE. |
local ce name | Name of the local CE. |
local vc label | VC label generated by the local end. |
peer id | Destination IP address of a VC. |
tunnel policy | Tunnel policy applied to the CE connection. |
tunnel type | Type of the tunnel used to transmit service data from the CE over the public network. |
tunnel id | ID of the tunnel used to transmit service data from the CE over the public network. |
primary or not | Whether a VC is a primary or secondary VC:
|
primary or secondary | Whether a VC is a primary or secondary VC. |
forward entry exist or not | Whether forwarding entries exist. |
forward entry active or not | Whether a forwarding entry is active (only an active forwarding entry can be used to forward packets). |
manual fault set or not | Whether a PW fault is manually created. |
AC OAM state | OAM status of the local AC interface. |
BFD for PW session index | Index of the BFD session for tracking the PW status. |
BFD for PW state | Status of the BFD session for tracking the PW status. |
BFD for LSP state | Status of the BFD session for tracking the LSP status. |
Local C bit is not set | The control word function is not enabled on the local end. If the control word function is enabled, no information is displayed. |
Remote C bit is not set | The control word function is not enabled on the remote end. If the control word function is enabled, no information is displayed. |
VPN name | MPLS L2VPN instance name. |
CE name | Name of the local CE. |
Rid | ID of remote CE that establishes a connection with the local CE. |
type | Type of the CE connection:
|
status | CE connection status:
|
peer-id | Peer IP address. |
route-distinguisher | RD of an MPLS L2VPN instance. |
id | ID of the local CE. |
conn-type | CE connection type:
|
intf(state,encap) | Status and encapsulation type of the AC interface on the local CE. |
CKey | Index of the PW. |
NKey | Index of the public tunnel. |