< Home

display mpls switch-l2vc

Function

The display mpls switch-l2vc command displays information about PW switching, including static, dynamic, and mix PW switching.

Format

display mpls switch-l2vc [ ip-address vc-id encapsulation encapsulation-type | state { down | up } ]

Parameters

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.
  • down: Displays information about the VC in Down state.
  • up: Displays information about the VC in Up state.
-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If parameters in the display mpls switch-l2vc command are not specified, information about all PW switching is displayed.

Example

# 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
Table 1 Description of the display mpls switch-l2vc command output (SVC-SVC)

Item

Description

Switch-l2vc Type

Switching type:

  • LDP-LDP
  • LDP-SVC
  • SVC-SVC

When primary/secondary PWs and PW switching are configured, the value of this field must be LDP-LDP.

  • LDP: indicates a dynamic PW.
  • SVC: indicates a static PW.

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:
  • Up: A VC has been established.
  • Down: A VC is not established.

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:
  • Disable
  • Enable

VCCV Capability

Type of VCCV supported on the local device.

  • By default, the VCCV type is alert ttl lsp-ping bfd, indicating that the control word function is disabled and LSP ping and BFD are supported for the alert channel.
  • If the control word function is enabled, the VCCV type is cw alert ttl lsp-ping bfd, indicating that LSP ping and BFD are supported for both the control word channel and the alert channel.

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:
  • TNL Type: indicates the type of the tunnel.
  • TTNL ID: indicates the tunnel ID.
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:
  • yes
  • no

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
Table 2 Description of the display mpls switch-l2vc command output (LDP-LDP)

Item

Description

VC StatusCode

VC status code:

  • PSN: indicates the fault status at the public network side.
  • OAM: indicates the fault status at the AC side.
  • FW: indicates the forwarding status.

-Local VC: indicates the local VC status.

-Remote VC: indicates the remote VC status.

Session State

Status of the session:
  • Up: indicates that the session is successfully set up.
  • Down: indicates that the session is not set up.
  • None: indicates that no session exists.

Local/Remote Label

Incoming or outgoing label.

Local/Remote MTU

Local and remote MTU values of the PWs on two ends:
  • For LDP, both the local and remote MTU values are displayed.
  • For SVC, only the local MTU value is displayed.

Local/Remote Control Word

Whether the control word is enabled on both ends:
  • disable: indicates that the control word is disabled.
  • enable: indicates that the control word is enabled.

Local/Remote VCCV Capability

Whether VCCV is enabled on both ends:

  • CC: specifies the control channel type, which can be CW, alert, or TTL.
  • CV: specifies the connectivity verification mode, which can be LSP ping or BFD.
Control-Word transparent Whether transparent transmission of the control word is enabled:
  • yes
  • no

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >