< Home

display mpls l2vc

Function

The display mpls l2vc command displays information about virtual circuits (VCs) in LDP mode.

Format

display mpls l2vc [ vc-id | interface interface-type interface-number | remote-info [ vc-id | verbose ] | state { down | up } ]

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the type and number of the AC interface connected to the CE.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-
remote-info Displays information about the VC on the remote end. -
vc-id Displays static PW information with a specified VC ID. The value is an integer that ranges from 1 to 4294967295.
verbose Displays the detailed information about the VC on the remote end. -
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

The display mpls l2vc command displays information about the VCs in LDP signaling mode, including the Martini VC and PWE3 VC.

  • If the interface is specified, information about VCs on the specified AC interface is displayed.

  • If remote-info is specified but vc-id is not specified, information about all VCs set up by the remote and local peers is displayed.

Example

# Display information about all the LDP VCs configured on the switch.

<HUAWEI> display mpls l2vc
 Total LDP VC : 1     1 up       0 down 

 *client interface       : Vlanif1111 is up
  Administrator PW       : no
  session state          : up
  AC status              : up
  Ignore AC state        : disable
  VC state               : up
  Label state            : 0
  Token state            : 0
  VC ID                  : 101
  VC type                : VLAN
  destination            : 10.3.3.9
  local VC label         : 1026         remote VC label      : 1026
  control word           : disable
  remote control word    : disable
  forwarding entry       : exist
  local group ID         : 0
  remote group ID        : 0
  local AC OAM State     : up
  local PSN OAM State    : up
  local forwarding state : forwarding
  local status code      : 0x0
  remote AC OAM state    : up
  remote PSN OAM state   : up
  remote forwarding state: forwarding
  remote status code     : 0x0
  ignore standby state   : no             
  BFD for PW             : unavailable
  VCCV State             : up
  manual fault           : not set
  active state           : active
  link state             : up
  local VC MTU           : 1500         remote VC MTU        : 1500
  local VCCV             : alert ttl lsp-ping bfd 
  remote VCCV            : alert ttl lsp-ping bfd 
  tunnel policy name     : --
  PW template name       : --
  primary or secondary   : primary
  load balance type      : flow
  Access-port            : false
  Switchover Flag        : false
  VC tunnel/token info   : 1 tunnels/tokens
    NO.0  TNL type       : lsp   , TNL ID : 0x48000020
    Backup TNL type      : lsp   , TNL ID : 0x0
  create time            : 0 days, 0 hours, 6 minutes, 50 seconds
  up time                : 0 days, 0 hours, 6 minutes, 34 seconds
  last change time       : 0 days, 0 hours, 6 minutes, 34 seconds
  VC last up time        : 2013/09/24 18:23:35
  VC total up time       : 0 days, 0 hours, 6 minutes, 34 seconds
  CKey                   : 16
  NKey                   : 15
  PW redundancy mode     : frr
  AdminPw interface      : --
  AdminPw link state     : --
  Diffserv Mode          : uniform
  Service Class          : be
  Color                  : --
  DomainId               : --
  Domain Name            : --
Table 1 Description of the display mpls l2vc command output

Item

Description

Total LDP VC

Total number of established LDP VCs, including the number of LDP VCs in Up and Down state.

client interface

AC interface and its status.

Administrator PW Whether the PW is an mPW. The PW can be an mPW only when the AC interface is a loopback interface. This field can be displayed as yes or no.

session state

Status of the LDP session established between both ends of the VC:

  • up: The LDP session has been established.
  • down: The LDP session is not established.

AC status

Status of the AC:

  • up: An AC has been established.
  • down: An AC is not established.

Ignore AC state

Whether the AC status change affects the status of services on the active or standby PWE3.

  • enable: The impact of the AC status change on the status of services on the active or standby PWE3 is ignored.
  • disable: The AC status change affects the status of services on the active or standby PWE3.

VC state

Status of the VC:

  • up: A VC has been established.
  • down: A VC is not established.

Label state

Label status:
  • 0: The label can be used.
  • 1: Wait for the SMB to confirm the label status.
  • 2: The label is released.
  • 3: SMB confirmation failed.

Token state

Token status:
  • 0: The token can be used.
  • 1: Wait for the SMB to confirm the token status.
  • 2: The token is released.
  • 3: SMB confirmation failed.

VC ID

ID of the VC, which uniquely identifies a VC.

NOTE:

If the VC IDs on both ends are different, run the mpls l2vc command in the interface view to change the VC ID on one end to be the same as that on the other end.

VC type

Encapsulation type of the VC:

  • VLAN
  • Ethernet

The PW can go Up only when the local and remote encapsulation types are the same.

destination

LSR ID of the VC peer device.

local VC label

Local VC label.

remote VC label

Remote VC label.

control word

Whether the control word is enabled:

  • enable: The control word is enabled.
  • disable: The control word is disabled.

forwarding entry

Whether forwarding entries exist.

local group ID

Local group ID.

remote group ID

Remote group ID.

manual fault

Whether a PW fault is simulated.

active state

Whether the PW is in active state. A PW in active state can forward packets.

link state

Integrative PW status:

  • up
  • down

If any of the following status is Down, the PW link state is Down:

  • Service PW status
  • Status of the mPW associated with service PWs
  • Status of the BFD session associated with service PWs
  • PW state code
  • PW status detected by VCCV
  • OAM status

local VC MTU

MTU of the local VC.

remote VC MTU

MTU of the remote VC.

tunnel policy name

Name of the tunnel policy.

PW template name

Name of the PW template.

primary or secondary

Whether the VC is a primary VC or a secondary VC.

load balance type

Load balancing mode of Martini VLL:
  • flow: indicates flow-based load balancing.
  • packet: indicates packet-based load balancing.

Access-port

Whether the interface supports the access-port attribute:
  • true: indicates that the interface supports the access-port attribute.
  • false: indicates that the interface does not support the access-port attribute.

Switchover Flag

Whether a switchover has occurred.

create time

How long the VC has been created.

up time

How long the VC keeps the Up state. If the current PW status is Down, the value is 0.

last change time

How long the VC status remains unchanged.

VC last up time

Last time when the VC became Up.

VC total up time

Total duration of the VC in Up state.

CKey

Index of the public tunnel for VPN QoS.

NKey

Index of the public tunnel.

AdminPw interface

AC interface on which the mPW is bound to the PW. The AC interface must be a loopback interface. This field is displayed only when the PW is not an mPW:

  • Name of the loopback interface.
  • --: indicates that the PW is not bound to an mPW.

AdminPw link state Status of the mPW bound to the PW. This field is displayed only when the PW is not an mPW. This field can be displayed as:
  • Up
  • Down
  • --: indicates that the PW is not bound to an mPW.

Diffserv Mode

QoS DiffServ mode.

Service Class

QoS service class.

Color

QoS color.

DomainId

ID of a domain.

Domain Name

Name of a domain.

# Display LDP VC information about the AC interface VLANIF 100.

<HUAWEI> display mpls l2vc interface vlanif 100
 *client interface       : Vlanif100  is up
  Administrator PW       : no
  session state          : up
  AC status              : up
  Ignore AC state        : disable
  VC state               : up
  Label state            : 0
  Token state            : 0
  VC ID                  : 1
  VC type                : VLAN
  destination            : 10.2.2.2
  local group ID         : 0            remote group ID      : 0
  local VC label         : 16400        remote VC label      : 16400
  local AC OAM State     : up
  local PSN OAM State    : up
  local forwarding state : forwarding
  local status code      : 0x0
  remote AC OAM state    : up
  remote PSN OAM state   : up
  remote forwarding state: forwarding
  remote status code     : 0x20
  ignore standby state   : no
  BFD for PW             : unavailable
  VCCV State             : up
  manual fault           : not set
  active state           : active
  forwarding entry       : exist
  link state             : up
  local VC MTU           : 1500         remote VC MTU        : 1500
  local VCCV             : cw alert ttl lsp-ping bfd
  remote VCCV            : cw alert ttl lsp-ping bfd
  local control word     : enable       remote control word  : enable
  tunnel policy name     : --
  PW template name       : --
  primary or secondary   : primary
  load balance type      : flow
  Access-port            : false
  Switchover Flag        : false
  VC tunnel/token info   : 1 tunnels/tokens
    NO.0  TNL type       : lsp   , TNL ID : 0x800802
    Backup TNL type      : lsp   , TNL ID : 0x0
  create time            : 0 days, 0 hours, 0 minutes, 29 seconds
  up time                : 0 days, 0 hours, 0 minutes, 6 seconds
  last change time       : 0 days, 0 hours, 0 minutes, 6 seconds
  VC last up time        : 2011/07/04 20:25:50
  VC total up time       : 0 days, 0 hours, 0 minutes, 6 seconds
  CKey                   : 2
  NKey                   : 1
  PW redundancy mode     : frr
  AdminPw interface      : --
  AdminPw link state     : --
  Diffserv Mode          : uniform
  Service Class          : --
  Color                  : --
  DomainId               : --
  Domain Name            : --
Table 2 Description of the display mpls l2vc interface command output

Item

Description

local AC OAM State

OAM status of the local AC.

  • up
  • down

local PSN OAM State

Status of the local device on the Packet Switch Network (PSN) side.

  • up
  • down

local forwarding state

Status of the local forwarding table.

  • forwarding
  • down
local status code

Status code of the local PW:

  • 0x0: indicates that the local PW functions as the master PW and is in Up state.
  • 0x20: indicates that the local PW functions as the backup PW and is in Up state.
  • 0x1: indicates that the local PW functions as the master PW and is in Down state.
  • 0x21: indicates that the local PW functions as the backup PW and is in Down state.

remote AC OAM state

OAM status of the remote AC.

  • up
  • down

remote PSN OAM state

Status of the remote device on the PSN side.

  • up
  • down

remote forwarding state

Status of the remote forwarding table.

  • forwarding
  • down
remote status code

Status code of the remote PW:

  • 0x0: indicates that the remote PW functions as the master PW and is in Up state.
  • 0x20: indicates that the remote PW functions as the backup PW and is in Up state.
  • 0x1: indicates that the remote PW function as the master PW and is in Down state.
  • 0x21: indicates that the remote PW function as the backup PW and is in Down state.

BFD for PW

Whether BFD for PW is enabled:

  • available
  • unavailable

VCCV State

Whether Virtual Circuit Connectivity Verification (VCCV) is enabled.

local VCCV

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.

remote VCCV

Type of VCCV supported on the remote 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.

local control word

Whether the control word is enabled on the local device:

  • Disable

  • Enable

remote control word

Whether the control word is enabled on the remote device:

  • Disable

  • Enable

ignore standby state

Whether the status of the secondary PW is ignored.

VC Tunnel/token info: 1 tunnels/tokens

Information about the tunnel or token used by the VC. The value 1 tunnels/tokens indicates that the PW uses one tunnel or token.

TNL type

Type of the tunnel used by the PW.

TNL ID

ID of the tunnel used by the PW.

Backup TNL Type

Type of the backup tunnel when PW over LDP FRR is used.

PW redundancy mode PW redundancy mode. By default, the mode is FRR.
  • Independent: indicates that the PW is in negotiation mode.
  • frr: indicates that the PW is in FRR mode.
  • --: indicates that the PW is in master/slave mode.

# Display the LDP VC information received from the remote peer.

<HUAWEI> display mpls l2vc remote-info
Total remote ldp vc : 1                                                         
                                                                                
Transport  Group      Peer            Remote         Remote     C   MTU/  N   S 
VC ID      ID         Addr            Encap          VC Label   Bit CELLS Bit Bit
                                                                               
101        0          10.3.3.9        ethernet       1024       0   1500  0   0 

# Display the detailed LDP VC information received from the remote peer.

<HUAWEI> display mpls l2vc remote-info verbose
Total remote LDP VC : 1 
  
VC ID              : 1
VC Type            : vlan
VC Label           : 1025
Peer Address       : 10.5.5.5
Group ID           : 0
MTU                : 1500
Control Word       : 0
Notification       : 1
Status Code        : 0
Match Local VC     : MATCH
Max ATM CELLS      : --
TDM RTP Header     : --
TDM Encap Num      : --
TDM Bit Rate       : --
Table 3 Description of the display mpls l2vc remote-info command output

Item

Description

Total remote ldp vc

Total number of created remote LDP VCs.

Transport VC ID

VC ID, which uniquely identifies a VC.

Group ID

ID of the group to which the L2VPN belongs. The default value is 0.

Peer Addr and Peer Address

IP address of the remote peer.

Remote Encap

Encapsulation type of the remote VC.

  • vlan
  • ethernet

Remote VC Label

Remote VC label.

C Bit

Whether the control word is enabled:

  • 1: indicates that the control word is enabled.
  • 0: indicates that the control word is disabled.

MTU/CELLS

MTU of the L2VPN.

N Bit and Notification

Whether the Notification message is supported:

  • 1: indicates the message is supported.

  • 0: indicates the message is not supported.

S Bit and Status Code

Status code:

  • 0: indicates the forwarding state.
  • 1: indicates the non-forwarding state.
  • 32: indicates the backup state.

Match Local VC

Whether the local VC ID matches the remote VC ID:

  • MATCH
  • NOT-MATCH

Max ATM CELLS

Maximum number of ATM cells that can be transmitted.

If ATM encapsulation is used, the value ranges from 1 to 28, and the default value is 28. If non-ATM encapsulation is used, double hyphens (--) are displayed.

TDM RTP Header

Whether the RTP-header option is enabled:
  • enable: The RTP header is added to TDM packets to be transparently transmitted.
  • disable: The RTP header is not added to TDM packets to be transparently transmitted. This is the default value.
  • --: Non-TDM encapsulation is used.

TDM Encap Num

Number of frames in a TDM packet.

If TDM encapsulation is used, the value is 8, 16, 24, 32 or 40, and the default value is 32. If non-TDM encapsulation is used, double hyphens (--) are displayed.

TDM Bit Rate

Number of timeslots in a TDM packet.

Number of timeslots in a TDM packet = Number of bytes in a TDM packet/Number of frames in a TDM packet

# Display information about the VCs in Up state.

<HUAWEI> display mpls l2vc state up
 Total LDP VC : 1     1 up       0 down                      
                                                                      
 *client interface       : Vlanif1111 is up                       
  Administrator PW       : no                                        
  session state          : up                                        
  AC status              : up                                        
  Ignore AC state        : disable
  VC state               : up                                        
  Label state            : 0                                         
  Token state            : 0                                         
  VC ID                  : 100                                       
  VC type                : VLAN                                 
  destination            : 10.2.2.9                                  
  local VC label         : 1024         remote VC label      : 1024 
  control word           : disable                                 
  remote control word    : disable                                  
  forwarding entry       : exist                                    
  local group ID         : 0                                       
  remote group ID        : 0                                       
  local AC OAM State     : up                                      
  local PSN OAM State    : up                                      
  local forwarding state : forwarding                              
  local status code      : 0x0                                    
  remote AC OAM state    : up                                      
  remote PSN OAM state   : up                                      
  remote forwarding state: forwarding                                    
  remote status code     : 0x0                                           
  ignore standby state   : no                                            
  BFD for PW             : unavailable                                    
  VCCV State             : up                                             
  manual fault           : not set                                         
  active state           : active                                         
  link state             : up                                            
  local VC MTU           : 1500         remote VC MTU        : 1500      
  local VCCV             : alert ttl lsp-ping bfd                         
  remote VCCV            : alert ttl lsp-ping bfd                       
  tunnel policy name     : --                                            
  PW template name       : --                                              
  primary or secondary   : primary                                        
  load balance type      : flow                                           
  Access-port            : false                                          
  Switchover Flag        : false                                          
  VC tunnel/token info   : 1 tunnels/tokens                              
    NO.0  TNL type       : lsp   , TNL ID : 0x12                          
    Backup TNL type      : lsp   , TNL ID : 0x0                           
  create time            : 0 days, 1 hours, 0 minutes, 17 seconds         
  up time                : 0 days, 0 hours, 24 minutes, 56 seconds        
  last change time       : 0 days, 0 hours, 24 minutes, 56 seconds        
  VC last up time        : 2013/10/10 14:29:39                            
  VC total up time       : 0 days, 0 hours, 24 minutes, 56 seconds        
  CKey                   : 10                                             
  NKey                   : 9                                              
  PW redundancy mode     : frr                                            
  AdminPw interface      : --                                            
  AdminPw link state     : --                                                   
  Diffserv Mode          : uniform                                                
  Service Class          : --                                                        
  Color                  : --                                                       
  DomainId               : --                                                        
  Domain Name            : --  
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >