The display mpls switch-l2vc command displays information about PW switching, including static, dynamic, and mix PW switching.
display mpls switch-l2vc [ ip-address vc-id encapsulation encapsulation-type | state { down | up } ]
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the LSR ID of the peer PE. | - |
vc-id | Specifies the VC ID. | The value is an integer that ranges from 1 to 4294967295. |
encapsulation encapsulation-type | Specifies the PW encapsulation type. | Currently, the device supports the following types encapsulation types: ethernet, vlan, and ip-interworking. |
state { down | up } | Displays VC information based on the VC status.
|
- |
If parameters in the display mpls switch-l2vc command are not specified, information about all PW switching is displayed.
# Display information about the specified PW switching.
<HUAWEI> display mpls switch-l2vc 1.1.1.9 100 encapsulation ethernet
*Switch-l2vc type : SVC<---->SVC
Peer IP Address : 3.3.3.9, 1.1.1.9
VC ID : 100, 100
VC Type : Ethernet
VC State : up
In/Out Label : 200/200, 100/100
InLabel Status : 0 , 0
Control Word : Disable, Disable
VCCV Capability : alert ttl lsp-ping bfd, alert ttl lsp-ping bfd
Switch-l2vc tunnel info :
1 tunnels for peer 5.5.5.9
NO.0 TNL Type : lsp , TNL ID : 0x11
1 tunnels for peer 1.1.1.9
NO.0 TNL Type : lsp , TNL ID : 0xb
CKey : 44, 1
NKey : 43, 3
Tunnel policy : --,--
Control-Word transparent : YES
Create time : 0 days, 0 hours, 7 minutes, 2 seconds
UP time : 0 days, 0 hours, 7 minutes, 2 seconds
Last change time : 0 days, 0 hours, 7 minutes, 2 seconds
VC last up time : 2008/07/24 12:31:31
VC total up time : 0 days, 2 hours, 12 minutes, 51 seconds
Item |
Description |
---|---|
Switch-l2vc Type |
Switching type:
When primary/secondary PWs and PW switching are configured, the value of this field must be LDP-LDP.
|
Peer ip address |
IP addresses of the peers at two ends of a switching PW, which are displayed in left and right columns respectively. |
VC ID |
ID of the VC, which uniquely identifies a VC. Here, the field indicates the two switched VC IDs. |
VC Type |
Encapsulation type of the VC. |
VC State |
Status of the VC:
|
In/Out Label |
Incoming or outgoing label. |
InLabel Status |
Status of the inner label. |
Control Word |
Whether the control word function is enabled on both ends:
|
VCCV Capability |
Type of VCCV supported on the local device.
|
Switch-l2vc tunnel info: 1 tunnels for peer 3.3.3.9 NO.0 TNL Type : lsp , TNL ID : 0x11 |
Information about the tunnels on both ends:
|
CKey | Index of the public tunnel for VPN QoS. |
NKey | Index of the public tunnel. |
Tunnel policy | Name of the tunnel policy. |
Control-Word transparent | Whether transparent transmission of the control word is enabled:
|
Create Time |
How long the VC has been created. |
Up Time |
How long the VC keeps the Up state. |
Last Change Time |
How long the VC status remains unchanged. |
VC last up time : |
Last time when the AC became Up. |
VC total up time: |
Total duration when the AC interface is Up. |
# Display information about the switched L2VCs in Up state between peers.
<HUAWEI> display mpls switch-l2vc state up
Total Switch VC : 1, 1 up, 0 down
*Switch-l2vc type : LDP<---->LDP
Peer IP Address : 5.5.5.9, 1.1.1.9
VC ID : 200, 100
VC Type : Ethernet
VC State : up
VC StatusCode |PSN |OAM | FW | |PSN |OAM | FW |
-Local VC :| UP | UP | UP | | UP | UP |DOWN|
-Remote VC:| UP | UP |DOWN| | UP | UP | UP |
Session State : up, up
Local/Remote Label : 1025/1024, 1024/1025
InLabel Status : 0 , 0
Local/Remote MTU : 1500/1500, 1500/1500
Local/Remote Control Word : Disable/Disable, Disable/Disable
Local/Remote VCCV Capability : alert ttl lsp-ping bfd /alert ttl lsp-ping bfd, alert ttl lsp-ping bfd/alert ttl lsp-ping bfd
Switch-l2vc tunnel info :
1 tunnels for peer 5.5.5.9
NO.0 TNL Type : lsp , TNL ID : 0x12
1 tunnels for peer 1.1.1.9
NO.0 TNL Type : lsp , TNL ID : 0x15
CKey : 44, 1
NKey : 43, 3
Tunnel policy : --, --
Control-Word transparent : YES
Create time : 0 days, 0 hours, 3 minutes, 54 seconds
UP time : 0 days, 0 hours, 3 minutes, 12 seconds
Last change time : 0 days, 0 hours, 3 minutes, 12 seconds
VC last up time : 2008/07/24 12:31:31
VC total up time : 0 days, 2 hours, 12 minutes, 51 seconds
Item |
Description |
---|---|
VC StatusCode |
VC status code:
-Local VC: indicates the local VC status. -Remote VC: indicates the remote VC status. |
Session State |
Status of the session:
|
Local/Remote Label |
Incoming or outgoing label. |
Local/Remote MTU |
Local and remote MTU values of the PWs on two ends:
|
Local/Remote Control Word |
Whether the control word is enabled on both ends:
|
Local/Remote VCCV Capability |
Whether VCCV is enabled on both ends:
|
Control-Word transparent | Whether transparent transmission of the control word is enabled:
|
# Display information about all the switched L2VCs between peers.
<HUAWEI> display mpls switch-l2vc
Total Switch VC : 1, 1 up, 0 down
*Switch-l2vc type : LDP<---->SVC
Peer IP Address : 1.1.1.9, 5.5.5.9
VC ID : 100, 200
VC Type : Ethernet
VC State : up
Session State : up, None
Local(In)/Remote(Out) Label : 1027/1028, 100/200
InLabel Status : 0 , 0
Local/Remote MTU : 1500/1500, 1500
Local/Remote Control Word : Disable/Disable, Disable
Local/Remote VCCV Capability : alert ttl lsp-ping bfd /alert ttl lsp-ping bfd, alert ttl lsp-ping bfd
Switch-l2vc tunnel info :
1 tunnels for peer 1.1.1.9
NO.0 TNL Type : lsp , TNL ID : 0x9
1 tunnels for peer 5.5.5.9
NO.0 TNL Type : lsp , TNL ID : 0xa
CKey : 44, 1
NKey : 43, 3
Tunnel policy : --, --
Create time : 0 days, 0 hours, 3 minutes, 48 seconds
UP time : 0 days, 0 hours, 3 minutes, 48 seconds
Last change time : 0 days, 0 hours, 3 minutes, 48 seconds
VC last up time : 2008/07/24 12:31:31
VC total up time : 0 days, 2 hours, 12 minutes, 51 seconds