No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
VLL Configuration Commands

VLL Configuration Commands

Command Support

For details about command support, see the description of each command. If no command support information is provided, all switch models support the command by default.

bfd bind pw

Function

The bfd bind pw command configures a BFD session to detect a PW.

The undo bfd command deletes a specified BFD session.

By default, no BFD session is configured to detect a PW.

Format

bfd cfg-name bind pw interface interface-type interface-number [ secondary ]

undo bfd cfg-name

Parameters

Parameter Description Value
cfg-name Specifies the name of the BFD session. The value is a string of 1 to 15 case-insensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
interface interface-type interface-number Specifies the type and number of the interface where the PW to be detected resides, namely, the AC interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-
secondary Indicates that the BFD session detects the secondary PW. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a transmission device exists on a direct link, BFD detects a link fault faster than a link detection mechanism on an interface. On networks demanding fast fault detection, run the bfd bind pw command to configure a BFD session to detect a PW.

Prerequisites

  • A PW has been configured on an AC interface by running the mpls l2vc command.

  • BFD has been enabled globally by running the bfd command.

  • A single-segment or multi-segment PW has been configured.

Precautions

  • When detecting a PW, BFD sessions must be bound to the source and destination ends of a PW.

  • You need to create a BFD session to detect primary and secondary PWs separately.

NOTE:

When running the bfd bind pw command to detect a multi-segment PW, ensure that the first-segment PW is a VLL PW configured on a non-SPE node.

When running the bfd bind pw command to detect a single-segment PW, ensure that the single-segment PW is configured on a non-SPE node.

Example

# Create a BFD session to detect a PW.

<HUAWEI> system-view
[HUAWEI] bfd pe2 bind pw interface vlanif 10

ccc interface in-label out-label

Function

The ccc interface in-label out-label command creates a remote CCC connection between CEs connected to different PEs. This command must be configured on two PEs.

The undo ccc command deletes the CCC connection.

By default, no remote CCC connection is created.

Format

ccc ccc-connection-name interface interface-type1 interface-number1 [ raw | tagged ] in-label in-label-value out-label out-label-value nexthop nexthop-address [ control-word | no-control-word ]

undo ccc ccc-connection-name

Parameters

Parameter Description Value
ccc-connection-name Specifies the CCC connection name, which uniquely identifies a CCC connection on a PE.

The value is a string of 1 to 20 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

interface interface-type1 interface-number1 Specifies the type and number of the incoming interface of data traffic.
  • interface-type1 specifies the interface type.
  • interface-number1 specifies the interface number.
-
raw Sets the inbound interface to raw mode. When packets arrive at the inbound interface in raw mode, the system deletes the Provider tags (P-Tags) of packets. By default, the tagged mode is used.
tagged Sets the inbound interface to tagged mode. When packets arrive at the inbound interface in tagged mode, the system retains the Provider tags (P-Tags) of packets. By default, the tagged mode is used.
in-label in-label-value Specifies the inbound label. The value is a decimal integer that ranges from 16 to 1023.
out-label out-label-value Specifies the outbound label. The value is a decimal integer that ranges from 0 to 1048575.
nexthop nexthop-address Specifies the IP address of the next hop. The value is in dotted decimal notation.
control-word | no-control-word Enables or disable the control word (CW). By default, the control word is disabled.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When two CEs connected to different PEs, use the ccc interface in-label out-label command to create a remote CCC connection between the CEs. This command must be executed on both PEs.

Precautions

An interface cannot serve as an L2VPN AC (Attachment Circuit) interface and L3VPN AC interface at the same time. After an interface is bound to an L2VPN, the Layer 3 features such as the IP address and routing protocol configured on this interface become invalid.

NOTE:

The device supports only VLANIF interfaces as AC interfaces of CCC connections.

A PE uses connection names to identify different CCC connections. On different PEs, the same CCC connection can adopt different names.

When a P is connected to a PE, the static LSP must be configured between the P and PE. Do not configure the name of a CCC connection as type; otherwise, you cannot view information about the CCC connection by running the display vll ccc ccc-name command.

Note that the outgoing label of the previous device is the inner label of the next device.

By default, link type negotiation is enabled globally on the device. If a VLANIF interface is used as an AC-side interface for L2VPN, the configuration conflicts with link type negotiation. In this case, run the lnp disable command in the system view to disable link type negotiation.

Example

# Create a remote CCC connection between CEs connected to different PE devices.

<HUAWEI> system-view
[HUAWEI] ccc ccc-connection interface vlanif 10 in-label 100 out-label 200 nexthop 10.1.1.2
Related Topics

ccc interface out-interface

Function

The ccc interface out-interface command creates a local CCC connection between two CEs connected to the same PE.

The undo ccc command deletes the CCC connection.

By default, no local CCC connection is created.

Format

ccc ccc-connection-name interface interface-type1 interface-number1 [ raw | tagged ] out-interface interface-type2 interface-number2 [ raw | tagged ]

undo ccc ccc-connection-name

Parameters

Parameter Description Value
ccc-connection-name Specifies a CCC connection name, which uniquely identifies a CCC connection on a PE.

The value is a string of 1 to 20 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

interface interface-type1 interface-number1 Specifies the type and number of the interface connected to the first CE.
  • interface-type1 specifies the interface type.
  • interface-number1 specifies the interface number.
-
out-interface interface-type2 interface-number2 Specifies the type and number of the interface connected to the second CE.
  • interface-type2 specifies the interface type.
  • interface-number2 specifies the interface number.
-
raw Sets the inbound interface to raw mode. When packets arrive at the inbound interface in raw mode, the system deletes the provider tags (P-tags) of packets. By default, the tagged mode is used.
tagged Sets the inbound interface to tagged mode. When packets arrive at the inbound interface in tagged mode, the system retains the sprovider tags (P-tags) of packets. By default, the tagged mode is used.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When two CEs connect to the same PE, use the ccc interface out-interface command to create a local CCC connection between the CEs.

Precautions

An interface cannot serve as an L2VPN AC interface and L3VPN AC interface at the same time. After an interface is bound to an L2VPN, the Layer 3 features such as the IP address and routing protocol configured on this interface become invalid. After the interface is bound to a CCC connection, its sub-interfaces no longer transmit Layer 3 traffic.

NOTE:
  • The device supports only VLANIF interfaces as AC interfaces of CCC connections.

A CCC connection is bidirectional; therefore, only one connection is needed. Do not configure the name of a CCC connection as type; otherwise, you cannot view information about the CCC connection by running the display vll ccc command.

By default, link type negotiation is enabled globally on the device. If a VLANIF interface is used as an AC-side interface for L2VPN, the configuration conflicts with link type negotiation. In this case, run the lnp disable command in the system view to disable link type negotiation.

Example

# Create a local CCC connection between two CEs connected to the same PE device.

<HUAWEI> system-view
[HUAWEI] mpls lsr-id 1.1.1.1
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] ccc ccc-connect-1 interface vlanif 10 out-interface vlanif 11
Related Topics

ce

Function

The ce command creates a CE and displays the MPLS-L2VPN-CE view.

The undo ce command deletes a CE.

By default, no CE is created in a L2VPN instances.

Format

ce ce-name [ id ce-id [ range ce-range ] [ default-offset ce-offset ] ]

undo ce ce-name

Parameters

Parameter Description Value
ce-name Specifies the name of a CE. The value is a string of 1 to 20 case-sensitive characters, spaces not supported.
id ce-id Specifies the ID of the CE. The value is a decimal integer that ranges from 0 to 249. A CE ID uniquely identifies a CE in a L2VPN instances. For convenience, it is recommended to set the CE IDs in the sequence of natural number.
range ce-range Specifies the number of CEs in an L2VPN instance. The value is a decimal integer that ranges from 1 to 250 and the default is 10.
default-offset ce-offset Indicates the default CE offset. The CE offset refers to the ID of the other local CE or the remote CE that establishes the connection with the local CE. It can be either 0 or 1. The default is 0.

Views

MPLS-L2VPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, you can use the ce command to create a CE in a L2VPN instance and enter the MPLS-L2VPN-CE view.

Prerequisites

An RD has been configured for the L2VPN instance.

Precautions

ce-range can be increased but cannot be decreased. If multiple label blocks exist, the ce-range equals the total size of all label blocks. A device allocates labels to the ranges of Kompella L2VPN instances and VPLS VSIs from the same label block. Therefore, the ranges of Kompella L2VPN instances and VPLS VSIs cannot be larger than the size of the label block. Otherwise, the system displays a message indicating that the number of required labels exceeds the permitted maximum labels. As a result, the system fails to create a CE or fails to allocate a site ID to a VSI.

The constraints between default-offset and ce-range in this command and ce-offset in connection are as follows:

  • If default-offset in this command is 0, ce-offset in the connection command must be less than ce-range in this command.

  • If default-offset in this command is 1, ce-offset in the connection command must be not more than ce-range in this command and cannot be 0.

Example

# Create a CE named ce1 inside the vpn1.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1 encapsulation ethernet
[HUAWEI-mpls-l2vpn-vpn1] route-distinguisher 100:1
[HUAWEI-mpls-l2vpn-vpn1] ce ce1 id 1 range 10
[HUAWEI-mpls-l2vpn-ce-vpn1-ce1]
Related Topics

connection

Function

The connection command creates a connection in Kompella mode between CEs.

The undo connection ce-offset command deletes a connection in Kompella mode between CEs.

By default, no connection in Kompella mode is created between CEs.

Format

connection [ ce-offset id ] interface interface-type interface-number [ tunnel-policy policy-name ] [ raw | tagged ] [ secondary ]

undo connection ce-offset id

Parameters

Parameter Description Value
ce-offset id Specifies the ID of the peer CE connected to the L2VPN. The value is a decimal integer that ranges from 0 to 249. id must be not more than ce-range. For the configuration about ce-range, see ce. For a remote connection, ce-offset and the ID of the remote CE must be the same; for a local connection between two CEs, ce-offset of a CE is the ID of the other CE.
interface interface-type interface-number Specifies the type and number of the interface connected to the CE.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-
tunnel-policy policy-name Specifies the name of a tunnel policy applied to a VLL connection. The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
raw Sets the encapsulation mode to raw mode. In raw mode, the device deletes the Provider tag (P-Tag) in the packets. The P-Tag is inserted by an SP device to distinguish traffic from different users. -
tagged Sets the encapsulation mode to tagged mode. In tagged mode, the device retains the P-Tag in the packets. -
secondary Specifies the secondary connection of the CE. If this parameter is not specified, the new connection becomes the primary connection. Specify this parameter only when a primary connection exists locally. -

Views

MPLS-L2VPN-CE view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, you can use the connection command to create a connection.

Precautions

An interface cannot serve as an L2VPN AC interface and L3VPN AC interface at the same time. After an interface is bound to an L2VPN, the Layer 3 features such as the IP address and routing protocol configured on this interface become invalid.

NOTE:
  • When the sub-interface is bound to a VLL, the encapsulation protocol type of the main interface cannot be changed.

  • If a sub-interface is bound to a VLL, the sub-interface can be deleted only after the sub-interface is unbound from the VLL.

  • VLANIF interfaces, XGE interfaces, 40GE interfaces, 100GE interfaces, GE interfaces, Eth-Trunk interfaces, XGE sub-interfaces, 40GE sub-interfaces, 100GE sub-interfaces, GE sub-interfaces, or Eth-Trunk sub-interfaces can be used as AC interfaces connected to CEs. To use an XGE interface, a GE interface, a 40GE interface, a 100GE interface, or an Eth-Trunk interface of the device as the AC interface of the PE, run the undo portswitch command to change a Layer 2 interface to a Layer 3 interface.

  • The the management interface cannot be configured as the AC interface connected to a CE.

When creating a connection in Kompella mode, you need to specify the peer CE ID and the local CE interface.

If you do not specify ce-offset id:

  • For the first connection of the CE, by default, ce-offset id is the same as the default-offset. For the description about default-offset, see ce. If ce-offset equals the current CE ID, ce-offset increases by 1.

  • For other connections, ce-offset id is the last CE ID plus 1. If the CE offset ID of the last connection plus 1 equals the current CE ID, the ce-offset id is the value obtained by CE offset of the last connection plus 2.

It is recommended that you number CE IDs from 1 in ascending order, and to configure connections in the order of CE IDs. To simplify configuration, you can use the default ce-offset directly in most connections.

After the command is configured, the default policy is adopted in the following situations:

  • If you do not specify a policy name

  • If the specified policy is not configured

In the default policy:

  • Only LSP tunnels are selected.

  • No load balancing is performed.

By default, link type negotiation is enabled globally on the device. If a VLANIF interface is used as an AC-side interface for L2VPN, the configuration conflicts with link type negotiation. In this case, run the lnp disable command in the system view to disable link type negotiation.

Example

# Create a connection in Kompella mode.

<HUAWEI1> system-view
[HUAWEI1] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI1-mpls-l2vpn-vpn1] route-distinguisher 100:1
[HUAWEI1-mpls-l2vpn-vpn1] vpn-target 1:1
[HUAWEI1-mpls-l2vpn-vpn1] ce ce1 id 1 range 10
[HUAWEI1-mpls-l2vpn-ce-vpn1-ce1] connection ce-offset 2 interface vlanif 10
<HUAWEI2> system-view
[HUAWEI2] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI2-mpls-l2vpn-vpn1] route-distinguisher 100:1
[HUAWEI2-mpls-l2vpn-vpn1] vpn-target 1:1
[HUAWEI2-mpls-l2vpn-vpn1] ce ce2 id 2 range 10
[HUAWEI2-mpls-l2vpn-ce-vpn1-ce2] connection ce-offset 1 interface vlanif 20

display bgp l2vpn

Function

The display bgp l2vpn command displays information about the Kompella L2VPN label block stored in BGP.

Format

display bgp l2vpn { all | group [ group-name ] | peer [ [ peer-ip-address ] verbose ] | route-distinguisher route-distinguisher [ ce-id ce-id [ label-offset label-offset ] ] }

Parameters

Parameter Description Value
all Displays all information about the local label block of Kompella L2VPN stored in BGP. -
group group-name Displays information about the label block of Kompella L2VPN stored in a specified BGP peer group. The value is an existing BGP peer group.
peer-ip-address Displays information about the Kompella L2VPN label block of the specified peer stored in BGP. The value is in dotted decimal notation.
verbose Displays detailed information about the Kompella L2VPN label block stored in BGP. -
route-distinguisher route-distinguisher Specifies the specific route identification value. The RD format can be any of the following:
  • 2-byte AS number:4-byte user-defined number, for example, 101:3. An AS number ranges from 0 to 65535. A user-defined number ranges from 0 to 4294967295. The AS number and the user-defined number cannot be 0s at the same time. That is, an RD cannot be 0:0.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 0 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0.0:0.

  • IPv4-address:2-byte user-defined number, for example, 192.168.122.15:1. An IP address ranges from 0.0.0.0 to 255.255.255.255. A user-defined number ranges from 0 to 65535.

-
ce-id ce-id Specifies the number of CE of the L2VPN instance. The value ranges from 0 to 65535.
label-offset label-offset Specifies the offset value of the label. It is a decimal integer ranging from 0 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, you can use the display bgp l2vpn command to check information about a label block, including the RD value, CE ID, label offset, start label in the label block, and BGP routing attributes of the label block.

Precautions

If route-distinguisher, ce-id, and label-offset all are specified, you can view the BGP extended community attribute, the value of each label in the label block, the status of the L2VPN connection status using this label as well as the BGP peers to which this label block is advertised.

Example

# View the BGP L2VPN label block with the specified RD, CE ID, and label offset.

<HUAWEI> display bgp l2vpn route-distinguisher 1:1 ce-id 1 label-offset 0
 BGP Local router ID : 10.1.1.2, local AS number : 100
 Origin codes:i - IGP, e - EGP, ? - incomplete
 nexthop:6.6.6.6,  pref :100,     as-path :(null) 
 label base: 35840, label range: 10, layer-2 mtu: 1500, encap type:Ethernet VLAN
 label          state
  35840            down
  35841            down
  35842            up
  35843            down
  35844            down
  35845            down
  35846            down
  35847            down
  35848            down
  35849            down
Table 10-28  Description of the display bgp l2vpn command output

Item

Description

BGP Local router ID

Local router ID of local BGP. Its format is the same as the IPv4 address.

Origin codes

The origin attributes of BGP route:

  • i - IGP: Interior Gateway Protocol (IGP), It is of the highest priority.
  • e - EGP: Exterior Gateway Protocol (EGP): It is of the second highest priority.
  • ? - incomplete: It is of the lowest priority.

local AS number

Local autonomous system (AS) number.

nexthop

Next-hop address of MP-BGP.

pref

Local preference, which is one type of BGP routing attribute.

as-path

AS path attribute, which is one type of BGP routing attribute. It records the numbers of all ASs sequentially that a packet passes through from the local address to the destination address.

label base

Starting value of the label.

label range

Range of the labels.

layer-2 mtu

MTU value of the link layer.

encap type

Encapsulation mode of the link layer.

label

Allocated label.

state

Status of the allocated label.

display l2vpn ccc-interface vc-type

Function

The display l2vpn ccc-interface vc-type command displays information about the interface used by an L2VPN connection.

Format

display l2vpn ccc-interface vc-type { all | vc-type } [ down | up ]

Parameters

Parameter Description Value
all Displays information about all interfaces of L2VPN connections. -
vc-type Specifies the type of the L2VPN connection.
The following types of the L2VPN connection are available:
  • ccc: Cross Circuit Connection

  • ldp-vc: L2VPN connection in the Martini mode

  • static-vc: L2VPN connection in the SVC mode

  • bgp-vc: L2VPN connection in the Kompella mode

  • vpls-vc: VPLS connection

down Displays information about interfaces of L2VPN connection in the Down state. -
up Displays information about interfaces of L2VPN connection in the Up state. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When locating L2VPN faults, you can use the display l2vpn ccc-interface vc-type command to view information about the AC interface of the current L2VPN connection, the total number of AC interfaces of various L2VPN connections, interface status, interface encapsulation type, and L2VPN connection types.

Example

# Display information about all the interfaces of L2VPN.

<HUAWEI> display l2vpn ccc-interface vc-type all
Total ccc-interface of LDP VC: 1                                                
up (1), down (0)                                                                
Interface                     Encap Type               State     VC Type        
Vlanif12                      vlan                     up        ldp-vc         
Table 10-29  Description of the display l2vpn ccc-interface vc-type command output

Item

Description

Total ccc-interface of CCC : 2

up (2), down (0)

Total number of L2VPN connections is 2. Two connections is Up. No connection is Down.

Interface

Interface connected to the L2VPN connection on the switch.

Encap Type

Encapsulation type of the L2VPN connection. The encapsulation type can be VLAN encapsulation or Ethernet encapsulation.

State

Current status of the L2VPN connection. The status can be Up or Down.

VC Type

Type of the L2VPN connection:

  • ccc: Cross Circuit Connection

  • ldp-vc: L2VPN connection in the Martini mode

  • static-vc: L2VPN connection in the SVC mode

  • bgp-vc: L2VPN connection in the Kompella mode

  • vpls-vc: VPLS connection

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 10-30  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 10-31  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
116119     0          10.6.6.6        vlan      23552      0   1500  1   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 10-32  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            : --  

display mpls l2vc brief

Function

The display mpls l2vc brief command displays brief information about LDP Layer 2 virtual circuits (L2VCs) on the device.

Format

display mpls l2vc brief

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display mpls l2vc brief command is recommended when many L2VCs are configured on a device. The command output is more concise than that of the display mpls l2vc command.

Example

# Display brief information about all LDP L2VCs on the device.

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

 *Client Interface     : Vlanif1111
  Administrator PW     : no
  AC status            : up
  Ignore AC state      : disable
  VC state             : up
  Label state          : 0
  Token state          : 0
  VC ID                : 116119
  VC Type              : VLAN
  session state        : up
  Destination          : 10.6.6.6
  link state           : up
Table 10-33  Description of the display mpls l2vc brief command output

Item

Description

Total LDP VC

Total number of 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.

AC status

Status of the AC:
  • up
  • down

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
  • down

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 confirming failed.

Token state

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

VC ID

ID of the VC, which uniquely identifies a VC.

VC Type

Encapsulation type of the VC.

session state

Status of the session between peers:
  • up
  • down

Destination

Peer address.

link state
Status of the VC:
  • up
  • down

display mpls l2vpn

Function

The display mpls l2vpn command displays information about an L2VPN on a PE.

Format

display mpls l2vpn [ l2vpn-name [ local-ce | remote-ce ] ]

Parameters

Parameter Description Value
l2vpn-name Specifies the VPN to be displayed. The value is an existing VPN name.
local-ce Displays information about all the local CEs of a specified L2VPN. -
remote-ce Displays information about remote CEs learned from other PEs of a specified L2VPN. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If you specify parameters, the display mpls l2vpn command displays information related to the parameters. If not, information about all the L2VPNs is displayed.

Example

# Display information about all the VPNs configured on the PE.

<HUAWEI> display mpls l2vpn
VPN number: 1
vpn-name        encap-type   route-distinguisher     mtu   ce(L)  ce(R)
vpn1            ethernet     100:1                   1500   1      1
Table 10-34  Description of the display mpls l2vpn command output

Item

Description

vpn-name

Name of the created VPN instance.

encap-type

Encapsulation type of L2VPN.

route-distinguisher

RD of L2VPN.

mtu

MTU of L2VPN.

ce (L)

The number of local CE connections. "L" indicates "local".

ce (R)

Number of remote CE connections. "R" indicates "remote".

# Display information about the L2VPN named vpn1.

<HUAWEI> display mpls l2vpn vpn1
VPN name: vpn1, encap type: vlan, local ce number(s): 1, remote ce number(s): 1
route distinguisher: 100:1, MTU: 128
import vpn target: 1:1
export vpn target: 1:1
 
remote vpn site(s) :
no.  remote-pe-id    route-distinguisher
1    3.3.3.9         100:1
Table 10-35  Description of the display mpls l2vpn vpn1 command output

Item

Description

VPN name

Name of the created VPN instance.

encap type

Encapsulation type of the L2VPN.

local ce number (s)

Number of local CE connections.

remote ce number (s)

Number of remote CE connections.

route distinguisher

RD of the local L2VPN.

MTU

MTU of the interface associated with the L2VPN.

import vpn target

Route attribute of the received VPN route.

export vpn target

Attributes configured for the target VPN route.

remote vpn site (s)

The following display is about the remote site.

no.

Remote peer number.

remote-pe-id

ID of remote PE peer. Usually, it is MPLS LSR-ID or the session address of the BGP peer.

route-distinguisher

RD of the remote L2VPN. For the related command, see route-distinguisher (MPLS-L2VPN instance view).

# Display information about the local CE on L2VPN named vpn1.

<HUAWEI> display mpls l2vpn vpn1 local-ce
ce-name              ce-id   range   conn-num  CEBase/LBBase/Offset/Range
ce1                  1       10      1           0/21504/0/10
ce2                  2       10      1           0/21514/0/10
Table 10-36  Description of the display mpls l2vpn vpn1 local-ce command output

Item

Description

ce-name

CE name.

ce-id

CE ID that uniquely identifies a CE.

range

Local CE range. Indicates how many CEs are connected to the local CEs.

conn-num

Number of local connections set for local CEs.

CEBase/LBBase/Offset/Range

Label block assigned by the CE with which the local port sets up a connection. 0/21504/0/10 indicates the offset base address of the label block/the initial value of the label block/initial CE offset/the number of remote labels.

# Display information about the remote CE on the L2VPN named vpn1.

<HUAWEI> display mpls l2vpn vpn1 remote-ce
no.  ce-id peer-id         route-distinguisher       LB
1    2     3.3.3.9         100:1                     19456/0/10
Table 10-37  Description of the display mpls l2vpn vpn1 remote-ce command output

Item

Description

no.

Sequence number of the connection.

ce-id

ID of the remote CE.

peer-id

IP address of the remote peer.

route-distinguisher

RD of the remote peer.

LB

Remote Label block. 19456/0/10 indicates the initial value of the label block/remote initial CE offset/the number of remote labels.

Related Topics

display mpls l2vpn (route-target-list)

Function

The display mpls l2vpn command displays the VPN target list for Kompella VLL.

Format

display mpls l2vpn { export-route-target-list | import-route-target-list }

Parameters

Parameter Description Value
export-route-target-list Displays the VPN target list for Kompella VLL in the outbound direction. -
import-route-target-list Displays the VPN target list for Kompella VLL in the inbound direction. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When an L2VPN connection in Kompella mode is Up but packet forwarding between CE devices fails, you can run this command to view the VPN target list of a specified VPN instance and check whether the VPN targets of the two PE devices match each other.

  • The VPN target in the outbound direction of the local PE device must be the same as the VPN target in the inbound direction of the remote PE device.

  • The VPN target in the inbound direction of the local PE device must be the same as the VPN target in the outbound direction of the remote PE device.

Example

# Display the VPN target list for Kompella VLL in the inbound direction.

<HUAWEI> display mpls l2vpn import-route-target-list
import vpn target list:
 744:7  745:7  746:7  888:8

# Display the VPN target list for Kompella VLL in the outbound direction.

<HUAWEI> display mpls l2vpn export-route-target-list
export vpn target list:
 755:7  888:8
Table 10-38  Description of the display mpls l2vpn command output

Item

Description

import vpn target list

VPN target list in the inbound direction.

export vpn target list

VPN target list in the outbound direction.

display mpls l2vpn connection

Function

The display mpls l2vpn connection command displays information about L2VPN connections of the Kompella mode.

Format

display mpls l2vpn connection vpn-name [ remote-ce ce-id | down | up | verbose ]

display mpls l2vpn connection [ summary | interface interface-type interface-number ]

Parameters

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.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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
Table 10-39  Description of the display mpls l2vpn connection command output

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:

  • 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

  • Number of unknown connections

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:

  • 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

  • Number of unknown connections

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:
  • rmt: indicates a remote connection.
  • loc: indicates a local connection.
  • ---: indicates the destination CE does not exist or the signaling connection setup fails when you set up a remote connection.

status

Status of the CE connection:
  • Up: indicates the connection is set up successfully.
  • Down: indicates the connection setup fails because the configuration is incorrect or the associated interface is Down.

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 GE1/0/1

<HUAWEI> display mpls l2vpn connection interface gigabitethernet 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):          GigabitEthernet1/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
Table 10-40  Description of the remote connection in the display mpls l2vpn connection interface command output

Item

Description

conn-type

Type of the L2VPN connection:

  • local: indicates the local L2VPN connection.

  • remote: indicates the remote L2VPN connection.

  • unknown: indicates the unknown L2VPN connection. The reason that the unknown connection appears may be that the destination CE does not exist, or the signaling connection fails to be set up during the configuration of a remote connection.

local vc state

Status of the local VC:

  • Up: indicates that the connection is successfully set up.

  • Down: indicates the setup of the connection fails because the configuration is incorrect or the status of related interfaces is Down.

remote vc state

Status of the destination VC:

  • Up: indicates that the connection is successfully set up.

  • Down: indicates the setup of the connection fails because the configuration is incorrect or the status of related interfaces is Down.

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
Table 10-41  Description of the display mpls l2vpn connection summary command output

Item

Description

total connections

Number of all L2VPN connections on the device.

connections:

Number of L2VPN connections of the following status:
  • Up
  • Down
  • remote
  • local
  • unknown

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.

display mpls l2vpn forwarding-info

Function

The display mpls l2vpn forwarding-info command displays MPLS L2VPN forwarding information.

Format

display mpls l2vpn forwarding-info [ vc-label ] interface interface-type interface-number

Parameters

Parameter Description Value
vc-label Specifies L2VPN VC label. The value is a decimal integer that ranges from 16 to 1048575.
interface interface-type interface-number Specifies the type and number of the interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display mpls l2vpn forwarding-info command displays:

  • Private network data carrying the specified label is forwarded from which tunnel.

  • Whether the data supports the connectivity verification.

  • Whether the data carry the control word.

Example

# Display MPLS L2VPN forwarding information.

<HUAWEI> display mpls l2vpn forwarding-info interface vlanif 10
 The Main PW Forward Information :
VCLABEL TNLTYPE        ENTRYTYPE PWSTATE  BFDSTATE ADMIN CTLWORD CC CV TNLID
------------------------------------------------------------------------------
35841   LSP            SEND      ACTIVE   UP       UP    FALSE   2  a  0x1
   1   Record(s) Found.

 The Second PW Forward Information :
VCLABEL TNLTYPE        ENTRYTYPE PWSTATE  BFDSTATE ADMIN CTLWORD CC CV TNLID
------------------------------------------------------------------------------
   0   Record(s) Found.
Table 10-42  Description of the display mpls l2vpn forwarding-info interface command output

Item

Description

The Main PW Forward Information :

Forwarding information about the primary PW.

VCLABEL

Label of the VC bound to the interface.

TNLTYPE

Types of public network tunnels used by the VC such as LSP and CR-LSP.

ENTRYTYPE

Type of forwarding entries:

  • SEND: forwarding entries of L2VPN except CCC

  • CCC_SEND: forwarding entries of the CCC remote connection

  • LOCAL: forwarding entries of the local connection

  • INVALID: invalid forwarding entries

PWSTATE

PW state used for guiding packet forwarding: active or inactive. The primary PW and the secondary PW are mutually exclusive and both cannot be in the active state simultaneously.

BFDSTATE

BFD state used for guiding packet forwarding. If BFD is not configured, this flag bit is Up by default. If BFD is configured and the BFD session is Down (not Admin Down), this flag bit is Down and packets cannot be forwarded.

ADMIN

Whether the primary or secondary PW fault is configured manually:
  • Up: indicates that the primary or secondary PW fault is not configured manually.
  • Down: indicates that the primary or secondary PW fault is configured manually.

CTLWORD

Whether the control word is enabled on the local end:
  • FALSE: indicates that the control word is disabled.
  • TRUE: indicates that the control word is enabled.

CC

Connection channel of the VCCV: Control word Label alert.

CV

Connectivity verification.

TNLID

ID of the public tunnel used by the VC, which is a hexadecimal integer.

Record (s) Found

Number of VC forwarding entries on the local interface.

The Second PW Forward Information :

Forwarding information about the secondary PW.

# Display MPLS L2VPN forwarding information with VC label as 35842.

<HUAWEI> display mpls l2vpn forwarding-info 35842 interface vlanif 10
 The Main PW Forward Information :
VCLABEL TNLTYPE        ENTRYTYPE PWSTATE  BFDSTATE ADMIN CTLWORD CC CV TNLID
------------------------------------------------------------------------------
35842   LSP            SEND      ACTIVE   UP       UP    FALSE   0  0  0x1
   1   Record(s) Found.

 The Second PW Forward Information :
VCLABEL TNLTYPE        ENTRYTYPE PWSTATE  BFDSTATE ADMIN CTLWORD CC CV TNLID
------------------------------------------------------------------------------
   0   Record(s) Found.
                    

display mpls l2vpn label-space

Function

The display mpls l2vpn label-space command displays information about label space distribution and different types of labels in the label cache.

Format

display mpls l2vpn label-space

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After L2VPN is enabled, run the display mpls l2vpn label-space command and you can view information about label space distribution and different types of labels in the label cache.

Example

# Display information about label space distribution when L2VPN is enabled and the cache contains labels.

<HUAWEI> display mpls l2vpn label-space
 there are 0 labels or label blocks in label-space.                
 ------------------------------------------------------------      
 label(s) released in SVC connection:              0               
 label(s) released in LDP connection:              1               
 label block(s) released in BGP connection:        0              
 label(s) released in VPLS LDP connection:         0                
 label block(s) released in VPLS BGP connection:   0                
 ------------------------------------------------------------     
Table 10-43  Description of the display mpls l2vpn label-space command output

Item

Description

Label

Indicates the value of the label in the label cache.

Label (s) released in SVC connection

Indicates the total number of labels in the label cache for the VLL SVC connections.

Label (s) released in LDP connection

Indicates the total number of labels in the label cache for the VLL LDP connections.

Label block (s) released in BGP connection

Indicates the total number of label blocks in the label cache for the VLL BGP connections.

Label (s) released in VPLS LDP connection

Indicates the total number of labels in the label cache for the VPLS LDP connections.

Label (s) released in VPLS BGP connection

Indicates the total number of labels in the label cache for the VPLS BGP connections.

display mpls l2vpn vpws

Function

The display mpls l2vpn vpws command displays information about the VPWS service.

Format

display mpls l2vpn vpws [ interface interface-type interface-number [ verbose ] ]

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the type and number of an interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-
verbose Displays detailed VPWS service information. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

When configuring or commissioning VPWS, you can run the display mpls l2vpn vpws command to check whether VPWS service configurations are correct.

Note the following points when using the display mpls l2vpn vpws command:

  • If interface interface-type interface-number is specified, only VPWS service information on a specified AC interface is displayed.

  • If verbose is also specified, detailed information about the VPWS service on a specified AC interface is displayed.

Prerequisites

VPLS configurations are complete on the local end.

Example

# Display VPWS service information.
<HUAWEI> display mpls l2vpn vpws
                                                                                
Pri : Primary            Sec : Secondary            Byp : Bypass                
PWb : PW-bypass          ACb : AC-bypass                                        
                                                                                
Access Circuit                Virtual Circuit               States Active   Role
GE2/0/0                       10.3.3.9:200                   Up     Active   Pri 
                              10.2.2.9:201                   Up     Inactive Sec 
Table 10-44  Description of the display mpls l2vpn vpws command output

Item

Description

Access Circuit

Access circuit.

Virtual Circuit

Virtual circuit.

States

VC status, which can be:
  • Up
  • Down

Active

Activation status of a VC, which can be:
  • Active
  • Inactive

Role

Role of a PW, which can be:
  • Pri: Primary PW
  • Sec: Secondary PW
  • PWb: PW-bypass
  • ACb: AC-bypass
  • Byp: Bypass
# Display the detailed information about the VPWS service on a specified AC interface.
<HUAWEI> display mpls l2vpn vpws interface gigabitethernet 2/0/0 verbose
                                                                                
Access circuit     : GigabitEthernet2/0/0                                       
Interface state    : Up                                                         
Protect mode       : FRR                                                        
                                                                                
Members:                                                                        
Virtual Circuit               States Active   Role                              
10.3.3.9:200                   Up     Active   Primary                           
10.2.2.9:201                   Up     Inactive Secondary                         
                                                                                
Primary:                                                                        
 VC type                : LDP VC                                                
 VC state               : up                                                    
 Peer IP                : 10.3.3.9                                               
 VC ID                  : 200                                                   
 Encapsulation type     : Ethernet                                              
 LDP session state      : up                                                    
 VC information (Local / Remote)                                                
  Label                 : 1025 / 1024                                           
  MTU                   : 1500 / 1500                                           
  Control word          : enable / enable                                       
  Status code           : 0x0 / 0x0                                             
  Group ID              : 0 / 0                                                 
  VCCV status           : cw alert ttl lsp-ping bfd / cw alert ttl lsp-ping bfd 
 VC last up time        : 2013/12/21 16:42:51                                   
 VC total up time       : 0 days, 6 hours, 20 minutes, 0 seconds                
                                                                                
Secondary:                                                                      
 VC type                : LDP VC                                                
 VC state               : up                                                    
 Peer IP                : 10.2.2.9                                               
 VC ID                  : 201                                                   
 Encapsulation type     : Ethernet                                              
 LDP session state      : up                                                    
 VC information (Local / Remote)                                                
  Label                 : 1026 / 1025                                           
  MTU                   : 1500 / 1500                                           
  Control word          : enable / enable                                       
  Status code           : 0x0 / 0x0                                             
  Group ID              : 0 / 0                                                 
  VCCV status           : cw alert ttl lsp-ping bfd / cw alert ttl lsp-ping bfd 
 VC last up time        : 2013/12/21 14:57:13                                   
 VC total up time       : 0 days, 20 hours, 44 minutes, 40 seconds                    
Table 10-45  Description of the display mpls l2vpn vpws command output

Item

Description

Access Circuit

Access circuit.

Protect mode

Protection mode, which can be FRR, independent, or master.

Members PW member.
Virtual Circuit Virtual circuit.
States VC status
Active Activation status of a VC, which can be:
Role Role of a PW, which can be:
  • Pri: Primary PW
  • Sec: Secondary PW
  • PWb: PW-bypass
  • ACb: AC-bypass
  • Byp: Bypass
Primary Information about the primary PW.
VC type The type of a VC.
VC state VC status.
Peer IP IP address of a peer.
VC ID ID of a VC. The value is an integer in decimal notation. The default value is 0.
Encapsulation type Encapsulation type of a VC.
LDP session state Status of an LDP session.
VC information (Local / Remote) VC information (local/remote).
Label VC label.
MTU Maximum transmission unit of a VC interface.
Control word Whether the control word is enabled.
Status code Status code, which can be:
  • 0x0: indicates the forwarding state.
  • 0x1: indicates the non-forwarding state.
  • 0x06: indicates the ACOAM fault.
  • 0x18: indicates the public network fault.
  • 0x20: indicates the standby state.
Group ID Group ID.
VCCV status VCCV status.
VC last up time Time when the VC last goes Up.
VC total up time Total Up time of a VC.
Secondary Information about the secondary PW.

display mpls label-stack vll interface

Function

The display mpls label-stack vll interface command displays information about label stacks in VLL networking.

Format

display mpls label-stack vll interface interface-type interface-number

Parameters

Parameter Description Value
interface-type interface-number Specifies the type and number of an interface. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view information about label stacks in VLL networking, run the display mpls label-stack vll interface command.

Example

# Display information about the label stack on VLANIF100 in VLL networking.

<HUAWEI> display mpls label-stack vll interface vlanif 100
Label-stack  : 1  
Level        : 1  
Type         : VLL primary    
Label        : 1027       
Level        : 2         
Type         : LDP      
Label        : --      
OutInterface : Vlanif1024  
Table 10-46  Description of the display mpls label-stack vll interface command output

Item

Description

Label-stack

Number of label stacks

Level

Number of labels

Type

Tunnel type

Label

Value of the outgoing label

OutInterface

Outbound interface

display mpls static-l2vc

Function

The display mpls static-l2vc command displays information about static VCs on the device.

Format

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

Parameters

Parameter Description Value
vc-id Displays information about a static VC with a specified VC ID. The value is an integer that ranges from 1 to 4294967295.
interface interface-type interface-number Displays information about all static PWs on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-
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 you run the display mpls static-l2vc command with the interface name specified, information about static VCs on the interface connected to a CE is displayed. If no interface is specified, information about static VCs on all interfaces is displayed.

Example

# Display information about static VCs on the device.

<HUAWEI> display mpls static-l2vc
 Total svc connections:  1,  1 up,  0 down                                      
                                                                           
 *Client Interface     : Vlanif10 is up                                          
  AC Status            : down                                                   
  VC State             : up                                                     
  VC ID                : 1                                                      
  VC Type              : VLAN                                                   
  Destination          : 2.2.2.2                                                
  Transmit VC Label    : 400                                                    
  Receive VC Label     : 600                                                    
  Label Status         : 0                                                      
  Token Status         : 0                                                      
  Control Word         : Enable                                                 
  VCCV Capability      : cw alert ttl lsp-ping bfd                              
  active state         : active                                                 
  Link State           : down                                                   
  Tunnel Policy Name   : tun                                                    
  PW Template Name     : --                                                     
  Main or Secondary    : Main                                                   
  load balance type    : flow                                                   
  Access-port          : 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, 34 seconds                 
  UP time              : 0 days, 0 hours, 0 minutes, 31 seconds                 
  Last change time     : 0 days, 0 hours, 0 minutes, 31 seconds                 
  VC last up time      : 2011/07/04 20:29:18                                    
  VC total up time     : 0 days, 0 hours, 0 minutes, 33 seconds                 
  CKey                 : 2                                                      
  NKey                 : 1
  BFD for PW           : unavailable                                            
Table 10-47  Description of the display mpls static-l2vc command output

Item

Description

Total svc connections

Number of established SVCs, including the number of SVCs in Up and Down states.

Client Interface

AC interface and its status.

AC Status

Status of the AC:

  • up
  • down

VC State

Status of the VC:

  • up
  • down

VC ID

ID of the VC, which uniquely identifies a VC.

If you run the mpls static-l2vc command without the VC ID specified, the value of this field is displayed as 0.

VC Type

Encapsulation type of the VC:

  • VLAN
  • Ethernet

Destination

LSR ID of the remote end on the VC.

Transmit VC Label

Local VC label.

Receive VC Label

Remote VC label.

Label Status

Whether the label can be used:
  • 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 Status

Whether the token can be used:
  • 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.

Control Word

Whether the control word function is enabled:

  • enable
  • disable

VCCV Capability

Whether VCCV is enabled.

active state

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

  • active
  • inactive

Link State

Integrative PW status:

  • up
  • down

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

  • Service PW status
  • OAM status

Tunnel Policy Name

Name of the tunnel policy.

PW Template Name

Name of the PW template.

Main 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.

VC Tunnel/token info

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

NO.0 TNL Type

Type of the tunnel used by the PW

Backup TNL Type

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

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 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.

BFD for PW

Whether BFD is configured.
  • unavailable: indicates that BFD is not configured.
  • available: indicates that BFD is configured.
  • timeout: timeout period after which a BFD session fails to be established

# Display information about static VCs on VLANIF 10.

<HUAWEI> display mpls static-l2vc interface vlanif 10
 *Client Interface     : Vlanif10 is up
  AC Status            : down
  VC State             : up
  VC ID                : 1
  VC Type              : VLAN
  Destination          : 2.2.2.2
  Transmit VC Label    : 400
  Receive VC Label     : 600
  Label Status         : 0
  Token Status         : 0
  Control Word         : Enable
  VCCV Capabilty       : cw alert ttl lsp-ping bfd
  active state         : active
  Link State           : down
  Tunnel Policy        : tun
  PW Template Name     : --
  Main or Secondary    : Main
  load balance type    : flow
  Access-port          : false
  VC tunnel/token info : 1 tunnels/tokens
  NO.0  TNL Type       : lsp   , TNL ID : 0x56
  Backup TNL Type      : lsp   , TNL ID : 0x0
  Create time          : 0 days, 0 hours, 0 minutes, 34 seconds
  UP time              : 0 days, 0 hours, 0 minutes, 31 seconds
  Last change time     : 0 days, 0 hours, 0 minutes, 31 seconds
  VC last up time      : 2011/07/04 20:29:18
  VC total up time     : 0 days, 0 hours, 0 minutes, 33 seconds
  CKey                 : 2
  NKey                 : 1 
  Diffserv Mode        : uniform
  Service Class        : be
  Color                : --
  DomainId             : --
  Domain Name          : --
  BFD for PW           : unavailable
Table 10-48  Description of the display mpls static-l2vc interface command output

Item

Description

Client Interface

AC interface and its status.

AC Status

Status of the link between the PE and its directly connected CE.

VC State

Status of the VC.

VC ID

ID of the VC, which uniquely identifies a VC.

VC Type

Encapsulation type of the VC.

Destination

LSR ID of the remote end on the VC.

Transmit VC Label

VC label sent by the local device.

Receive VC Label

VC label received by the local device.

Control Word

Whether the control word function is enabled.

VCCV Capabilty

Whether VCCV is enabled.

Tunnel Policy

Name of the tunnel policy. The value -- indicates that no tunnel policy is configured.

PW Template Name

Name of the PW template. The value -- indicates that no PW template is configured.

Main or Secondary

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

VC tunnel/token info

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

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 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.

Diffserv Mode

QoS DiffServ mode for VLL services.

Service Class

QoS service class for VLL services.

Color

QoS color for VLL services.

DomainId

ID of a domain.

Domain Name

Name of a domain.

BFD for PW

Whether BFD is configured.
  • unavailable: indicates that BFD is not configured.
  • available: indicates that BFD is configured.
  • timeout: timeout period after which a BFD session fails to be established

# Display information about SVCs in Up state between peers.

<HUAWEI> display mpls static-l2vc state up
 Total svc connections:  1,  1 up,  0 down
 *Client Interface     : Vlanif10 is up
  AC Status            : up
  VC State             : up
  VC ID                : 0
  VC Type              : Ethernet
  Destination          : 2.2.2.2
  Transmit VC Label    : 100
  Receive VC Label     : 200
  Label Status         : 0
  Token Status         : 0
  Control Word         : Disable
  VCCV Capability       : alert ttl lsp-ping bfd
  active state         : active
  Link State           : up
  Tunnel Policy Name   : --
  PW Template Name     : --
  Main or Secondary    : Main
  load balance type    : flow
  Access-port          : false
  VC tunnel/token info : 1 tunnels/tokens
  NO.0  TNL Type       : lsp   , TNL ID : 0x56
  Backup TNL Type      : lsp   , TNL ID : 0x0
  Create time          : 0 days, 4 hours, 55 minutes, 41 seconds
  UP time              : 0 days, 4 hours, 55 minutes, 40 seconds
  Last change time     : 0 days, 4 hours, 55 minutes, 40 seconds
  VC last up time      : 2011/09/09 10:25:22
  VC total up time     : 0 days, 4 hours, 55 minutes, 40 seconds
  CKey                 : 19
  NKey                 : 1
  BFD for PW           : unavailable  
Table 10-49  Description of the display mpls static-l2vc state command output

Item

Description

Total svc connections

Number of established SVCs, including the number of SVCs in Up and Down states.

Client Interface

AC interface and its status.

AC Status

Status of the AC.

VC State

Status of the VC.

VC ID

ID of the VC, which uniquely identifies a VC.

VC Type

Encapsulation type of the VC.

Destination

LSR ID of the remote end on the VC.

Transmit VC Label

Local VC label.

Receive VC Label

Remote VC label.

Control Word

Whether the control word function is enabled.

VCCV Capability

Whether VCCV is enabled.

Tunnel Policy Name

Name of the tunnel policy.

PW Template Name

Name of the PW template.

Main or Secondary

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

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 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.

BFD for PW

Whether BFD is configured.
  • unavailable: indicates that BFD is not configured.
  • available: indicates that BFD is configured.
  • timeout: timeout period after which a BFD session fails to be established

display mpls static-l2vc brief

Function

The display mpls static-l2vc brief command displays brief information about static VCs on the device.

Format

display mpls static-l2vc brief

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display mpls static-l2vc brief command is recommended when a large number of static VCs are configured on the device.

Example

# Display brief information about static VCs on the device.

<HUAWEI> display mpls static-l2vc brief
Total svc connections:  2,  1 up,  1 down
 
 *Client Interface            : Eth-Trunk2  is up
  AC Status                   : up
  VC State                    : up
  VC ID                       : 0
  VC Type                     : VLAN
  Destination                 : 10.1.1.1
  
 *Client Interface            : Eth-Trunk3  is down
  AC Status                   : down
  VC State                    : down
  VC ID                       : 100
  VC Type                     : Ethernet
  Destination                 : 10.1.1.2
Table 10-50  Description of the display mpls static-l2vc brief command output

Item

Description

Total SVC Connections

Number of established SVCs, including the number of SVCs in Up and Down states.

Client Interface

AC interface and its status.

AC Status

Status of the AC:

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

VC State

Status of the VC:

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

VC ID

ID of the static VC. If you run the mpls static-l2vc command without the VC ID specified, the value of this field is displayed as 0.

VC Type

Encapsulation type of the VC:

  • VLAN
  • Ethernet

Destination

IPv4 address of the peer. Generally, the value is the loopback address of the peer.

display snmp-agent trap feature-name l2vpn all

Function

The display snmp-agent trap feature-name l2vpn all command displays all trap messages about the L2VPN module.

Format

display snmp-agent trap feature-name l2vpn all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that runs network management software to manage network elements. The management agent on the network element automatically reports traps to the network management station. After that, the network administrator immediately takes measures to resolve the problem.

The display snmp-agent trap feature-name l2vpn all command displays whether all trap functions of the L2VPN module are enabled.

Example

# Display all trap messages about the L2VPN module.

<HUAWEI> display snmp-agent trap feature-name l2vpn all
------------------------------------------------------------------------------
Feature name: L2VPN
Trap number : 30
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwCCCVcDown                     off                     off
hwCCCVcUp                       off                     off
hwVplsVcDeleted                 off                     off
hwVplsVcDown                    off                     off
hwVplsVcUp                      off                     off
hwVplsVsiDeleted                off                     off
hwVplsVsiDown                   off                     off
hwVplsVsiUp                     off                     off
hwKompellaVcDown                off                     off
hwKompellaVcUp                  off                     off
hwKompellaSwitchWtoP            off                     off
hwKompellaSwitchPtoW            off                     off
hwPWVcDeleted                   off                     off
hwPWVcDown                      off                     off
hwPWVcUp                        off                     off
hwPWVcSwitchWtoP                off                     off
hwPWVcSwitchPtoW                off                     off
hwSvcDeleted                    off                     off
hwSvcDown                       off                     off
hwSvcUp                         off                     off
hwVplsVcBackup                  off                     off
hwPWVcBackup                    off                     off
hwVplsVcStatusChange            off                     off
hwPWVcStatusChange              off                     off
hwVplsVcNumberThresholdExceed   off                     off
hwVplsVcNumberThresholdClear    off                     off
hwVplsVcNumberMaxExceed         off                     off
hwVplsVcNumberMaxClear          off                     off
hwVpwsPwRedundancyDegraded      off                     off
hwVpwsPwRedundancyDegradedClear
                                off                     off
Table 10-51  Description of the display snmp-agent trap feature-name l2vpn all command output

Item

Description

Feature name

Name of the module to which a trap message belongs.

Trap number

Number of trap messages.

Trap name

Name of a trap message about the L2VPN module:

  • hwCCCVcDown: indicates a Huawei private trap in case the status of the CCC VC changes to Down.

  • hwCCCVcUp: indicates a Huawei private trap in case the status of the CCC VC changes to Up.

  • hwVplsVcDeleted: indicates a Huawei-specific trap in the event that a VPLS VC is deleted.

  • hwVplsVcDown: indicates a Huawei private trap in case the status of the VPLS VC changes to Down.

  • hwVplsVcUp: indicates a Huawei private trap in case the status of the VPLS VC changes to Up.

  • hwVplsVsiDeleted: indicates a Huawei private trap in the event that a VSI is deleted.

  • hwVplsVsiDown: indicates a Huawei private trap in case the status of the VSI changes to Down.

  • hwVplsVsiUp: indicates a Huawei private trap in case the status of the VSI changes to Up.

  • hwKompellaVcDown: indicates a Huawei private trap in case the status of the Kompella VC changes to Down.

  • hwKompellaVcUp: indicates a Huawei private trap in case the status of the Kompella VC changes to Up.

  • hwKompellaSwitchWtoP: indicates a Huawei private trap in case the primary Kompella PW is switched to the secondary PW.

  • hwKompellaSwitchPtoW: indicates a Huawei private trap in case the secondary Kompella PW is switched to the primary PW.

  • hwPWVcDeleted: indicates a Huawei-specific trap in the event that a PWE3 VC is deleted.

  • hwPWVcDown: indicates a Huawei private trap in case the status of the PWE3 VC changes to Down.

  • hwPWVcUp: indicates a Huawei private trap in case the status of the PWE3 VC changes to Up.

  • hwPWVcSwitchWtoP: indicates a Huawei private trap in case the primary PWE3 PW is switched to the secondary PW.

  • hwPWVcSwitchPtoW: indicates a Huawei private trap in case the secondary PWE3 PW is switched to the primary PW.

  • hwSvcDeleted: indicates a Huawei-specific trap in the event that an SVC is deleted.

  • hwSvcDown: indicates a Huawei private trap in case the status of the SVC changes to Down.

  • hwSvcUp: indicates a Huawei private trap in case the status of the SVC changes to Up.

  • hwVplsVcBackup: indicates a Huawei private trap in case the status of the VPLS VC changes to Backup.

  • hwPWVcBackup: indicates a Huawei private trap in case the status of the PWE3 VC changes to Backup.

  • hwVplsVcStatusChange: indicates that the status of the VPLS VC change.

  • hwVplsVcNumberThresholdExceed: indicates that the proportion of VPLS VCs created to the maximum VPLS VCs allowed exceeded the upper alarm threshold.
  • hwVplsVcNumberThresholdClear: indicates that the proportion of VPLS VCs created to the maximum VPLS VCs allowed fell below the lower alarm threshold.
  • hwVplsVcNumberMaxExceed: indicates that the number of VPLS VCs created reached the maximum number of VPLS VCs allowed.
  • hwVplsVcNumberMaxClear: indicates that the number of VPLS VC created fell below 95% of the maximum number of VPLS VCs allowed.
  • hwVpwsPwRedundancyDegraded: indicates that the protection provided by VLL FRR degrades.
  • hwVpwsPwRedundancyDegradedClear: indicates that the protection provided by VLL FRR recovers.
  • hwPWVcStatusChange: indicates that the status of the PWE3 VC change.

Default switch status

Default status of the trap function:

  • on: indicates that the trap default function is enabled.
  • off: indicates that the trap default function is disabled.

Current switch status

Current status of the trap function:

  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

display traffic-statistics l2vpn interface

Function

The display traffic-statistics l2vpn interface command displays VLL traffic statistics on a specified interface.

Format

display traffic-statistics l2vpn interface interface-type interface-number

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays VLL traffic statistics on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After enabling the function of collecting L2VPN traffic statistics by running the mpls l2vpn traffic-statistics enable command, you can run the display traffic-statistics l2vpn interface command to view traffic statistics on the created VLL. The VLL traffic sent and received through the interface are collected from the time when the VLL becomes Up to the time you run the display traffic-statistics l2vpn interface command.

Example

# Display VLL traffic statistics on VLANIF10.

<HUAWEI> display traffic-statistics l2vpn interface vlanif 10
 Input: 1000 bytes, 10 packets
 Output: 2000 bytes, 20 packets

display vll ccc

Function

The display vll ccc command displays information about a CCC connection.

Format

display vll ccc [ ccc-name | type { local | remote } ]

Parameters

Parameter Description Value
ccc-name Specifies the connection name. The value is an existing connection name.
type Specifies the CCC connection type. -
local Displays local CCC connections. -
remote Displays remote CCC connections. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After a CCC connection is configured, you can use the display vll ccc command to see whether the configuration is successful.

If you do not specify a connection name or type, information about all the existing CCC connections is displayed.

Example

# Display a specified CCC connection.

<HUAWEI> display vll ccc CE1-CE2
name: CE1-CE2, type: remote, state: up
intf: Vlanif11 (up ethernet), in-label: 116 ,
out-label: 119 , nexthop: 10.1.1.1
no control word
VC last up time : 2009/10/08 13:38:01
VC total up time: 0 days, 0 hours, 11 minutes, 2 seconds

# Display information about all the CCC connections.

<HUAWEI> display vll ccc
total  ccc vc : 1
local  ccc vc : 0,  0 up
remote ccc vc : 1,  1 up

name: CE1-CE2, type: remote, state: up,
intf: Vlanif11 (up), in-label: 116 , out-label: 119 , nexthop: 10.1.1.1
VC last up time : 2009/10/08 13:38:01
VC total up time: 0 days, 0 hours, 10 minutes, 50 seconds
Table 10-52  Description of the display vll ccc command output

Item

Description

total ccc vc

Total number of CCC local connections and remote connections at the local end.

local ccc vc

The number of CCC local connections at the local end.

remote ccc vc

The number of CCC remote connections at the local end.

name

Name of CCC connection in a character string.

type

Types of CCC connections.

  • local: connection between two CEs that are connected to the same PE.

  • remote: connection between CEs that are connected to two different PEs.

state

Status of a CCC connection:

  • down: indicates that the CCC connection fails because the configuration is incorrect or the associated interface is Down.

  • up: indicates that the CCC connection is set up successfully.

intf

Interface connected to the CCC connection.

The S12700 supports only VLANIF interfaces to be connected to CCC connections. By default, the Ethernet encapsulation type is adopted.

in-label

Incoming label of the CCC connection that is specified manually.It is consistent with the outgoing label of the peer end.

out-label

Outgoing label of the CCC connection which is specified manually.It is consistent with the incoming label of the peer end.

nexthop

Next-hop address of the CCC connection.

VC last up time

Indicates the last time the VC was Up.

VC total up time

Indicates the total duration the VC is Up.

# Display information about all the local CCC connections.

<HUAWEI> display vll ccc type local
total local  ccc vc : 1,  1 up
name: c2, type: local, state: up,
intf1: Vlanif10 (up),  access-port: false

intf2: Vlanif11 (up),  access-port: false
VC last up time : 2009/03/23 11:16:07
VC total up time: 0 days, 0 hours, 14 minutes, 14 seconds
Table 10-53  Description of the display vll ccc type local command output

Item

Description

total local ccc vc

Total number of local CCC connections and the number of local CCC connections whose status is Up.

name

Name of the CCC connection in a character string.

type: local

Information about the local CCC connection. Local indicates the connection between two CEs that are connected to a PE.

state

Status of a CCC connection:
  • down: indicates that the CCC connection fails to be set up. The cause may be that the configuration is incorrect or the associated interface is Down.

  • up: indicates that the CCC connection is successfully set up.

intf1: Vlanif10 (up), intf2: Vlanif11 (up)

Interfaces of the local connection on two CEs. One is Vlanif10(the status is Up), and the other is Vlanif11(the status is Up).

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.

# Display information about all the remote CCC connections.

<HUAWEI> display vll ccc type remote
total remote ccc vc : 1,  1 up
name: CE1-CE2, type: remote, state: up,
intf: Vlanif11 (up), in-label: 116 , out-label: 119 , nexthop: 10.1.1.1
VC last up time : 2007/10/08 13:38:01
VC total up time: 0 days, 0 hours, 18 minutes, 10 seconds 
Table 10-54  Description of the display vll ccc type remote command output

Item

Description

total remote ccc vc

Total number of remote CCC connections and the number of remote CCC connections whose status is Up.

name

Name of CCC connection in a character string.

type: remote

Type of the displayed CCC connection. The word remote indicates that the connection is of the remote type.

state

Status of a CCC connection:
  • down: indicates that the CCC connection fails to be set up. The cause may be that the configuration is incorrect or the associated interface is Down.

  • up: indicates that the CCC connection is successfully set up.

intf: Vlanif11 (up)

Access interface on the CE for setting up CCC connection at the local end. The interface is Vlanif11, and its status is Up.

in-label

Incoming label of the CCC connection. The label is manually specified, and is consistent with the outgoing label of the peer.

out-label

Outgoing label of the CCC connection. The label is manually specified, and is consistent with the incoming label of the peer.

nexthop

Next-hop address of the CCC connection.

interface-parameter-type vccv (interface view)

Function

The interface-parameter-type vccv command configures Mapping packets to carry the VCCV byte.

The undo interface-parameter-type vccv command deletes the VCCV byte (an interface parameter) in the Mapping packet.

By default, a Mapping packet carries the VCCV byte.

Format

interface-parameter-type vccv [ secondary ]

undo interface-parameter-type vccv [ secondary ]

Parameters

Parameter Description Value
secondary Indicates that the configuration applies to the secondary VC. If this keyword is not specified, the command applies to the primary VC. The command can be configured only when a local VC exists. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

The command can be configured only when a local VC exists.

Example

# When configuring the VLL in LDP mode on an interface, delete the VCCV byte in the Mapping packet.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] mpls l2vc 2.2.2.2 100
[HUAWEI-Vlanif10] undo interface-parameter-type vccv

ignore-mtu-match (MPLS-L2VPN instance view)

Function

The ignore-mtu-match command disables the MTU matching check of the L2VPN on both ends.

The undo ignore-mtu-match command enables the check.

By default, the PE checks whether MTUs of the L2VPN instances on both ends are consistent.

Format

ignore-mtu-match

undo ignore-mtu-match

Parameters

None

Views

MPLS-L2VPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, if a Huawei device connects to a non-Huawei device that does not support MTU matching check, run the ignore-mtu-match command to configure the Huawei device to ignore the check.

Prerequisites

vpn-target is not configured for the L2VPN instance.

Precautions

By default, a PE checks whether MTUs of the L2VPN instances at both ends are consistent. If not, the VC cannot be in the Up state.

Example

# Ignore the check of MTU of the L2VPN instance named vpn1.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1
[HUAWEI-mpls-l2vpn-vpn1] ignore-mtu-match

l2vpn-family

Function

The l2vpn-family command displays the BGP L2VPN address family view.

The undo l2vpn-family command deletes all configurations of a BGP L2VPN address family.

Format

l2vpn-family

undo l2vpn-family

Parameters

None

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

In a Kompella VLL networking, you can use this command to enter the BGP L2VPN address family view.

Example

# Enter the L2VPN address family view.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] l2vpn-family
[HUAWEI-bgp-af-l2vpn]

manual-set pw-ac-fault

Function

The manual-set pw-ac-fault command simulates a fault on the primary or secondary PW.

The undo manual-set pw-ac-fault command cancels the fault that is simulated on a primary or secondary PW.

By default, no fault is simulated on a PW.

Format

manual-set pw-ac-fault [ secondary ]

undo manual-set pw-ac-fault [ secondary ]

Parameters

Parameter Description Value
secondary Simulates a fault on the secondary PW. If this parameter is not specified, a fault is simulated on the primary PW. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network where the primary and secondary PWs need to be configured, you can run the manual-set pw-ac-fault command to simulate a fault on the primary or secondary PW to check whether services can be switched between the primary and secondary PWs.

Prerequisites

A VC has been created.

Example

# Simulate a fault on the PW.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] mpls l2vc 2.2.2.2 100
[HUAWEI-Vlanif10] manual-set pw-ac-fault

mpls l2vc

Function

The mpls l2vc command creates a Martini VLL.

The undo mpls l2vc command deletes the Martini VLL from an interface.

By default, no Martini L2VPN connection is created.

Format

mpls l2vc { ip-address | pw-template pw-template-name } * vc-id [ group-id group-id | tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw | tagged ] | mtu mtu-value | [ secondary | bypass ] | ignore-standby-state ] *

undo mpls l2vc { ip-address | pw-template pw-template-name } * vc-id [ group-id group-id | tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw | tagged ] | mtu mtu-value | [ secondary | bypass ] | ignore-standby-state ] *

undo mpls l2vc [ secondary | bypass ]

Parameters

Parameter

Description

Value

ip-address

Specifies the LSR ID of a peer device on the PW.

The value is in dotted decimal notation.

pw-template pw-template-name

Specifies the name of a PW template.

The value is a string of 1 to 19 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

vc-id

Specifies a L2VC ID.

The value is an integer that ranges from 1 to 4294967295.

group-id group-id Specifies a VC group ID. With the VC group ID specified, the system can execute the same operation on a group of VCs; therefore, fewer packets are exchanged between PEs. Only the VCs with the same attribute can be configured with the same VC group ID; otherwise, the PW may be torn down by mistake. This parameter is valid only on sub-interfaces. The value is an integer that ranges from 1 to 4294967295.

tunnel-policy policy-name

Specifies the name of a tunnel policy.

The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

raw

Indicates the encapsulation type without VLAN tags.

-

tagged

Indicates the encapsulation type with VLAN tags.

-

control-word

Enables the control word function.

-

no-control-word

Disables the control word function.

-

mtu mtu-value

Specifies the MTU value.

NOTE:

This parameter can be configured only on VLANIF interfaces. The MTU of another type of interface or its sub-interface can be configured in the PW template.

The value is an integer that ranges from 46 to 9600. The default value is 1500.

secondary

Indicates a secondary VC. If this parameter is not specified, a primary VC is created. You can configure a secondary VC only when the primary VC exists on the local device.

-

bypass

Indicates that the VC is a bypass VC. The encapsulation type of the bypass VC must be the same as that of the primary VC.

-

ignore-standby-state

Indicates that the PW ignores standby state information sent by the remote device.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Martini VLL networking, you can run this command to create a VC connection for a Martini VLL.

Precautions

  • An interface cannot function as an L2VPN AC interface and L3VPN AC interface at the same time. After an interface is bound to an L2VPN, Layer 3 features such as the IP address and routing protocol on this interface become invalid.

  • You must create dynamic VCs on PEs at both ends of a PW to connect the PEs. The destination address of a VC is the LSR ID of the peer PE.

  • You can set attributes for a PW template, including the remote peer, tunnel policy, control word, and VCCV. When configuring an LDP PW, you can directly apply the PW template without specifying attributes for the PW. After setting attributes for a PW template, you can update the PW template at any time. The modified PW template takes effect only after the reset pw command is run.

  • If a PW attribute is specified in the mpls l2vc command, the corresponding PW attribute in the same PW template is invalid.

  • If you do not specify a tunnel policy for a Martini connection, the default tunnel policy is used. By default, the LSP tunnel is preferentially selected and only one tunnel is used for load balancing. If a tunnel policy name is specified but the tunnel policy is not configured, the default tunnel policy is used.

  • The MTU value is specified when you create Martini or PWE3 VLLs and is used for interconnection between the switch and other devices.

    The parameters raw and tagged can be used only for Ethernet links.

  • You must configure the primary PW before configuring the secondary PW and delete the secondary PW before deleting the primary PW.

  • When creating VCs dynamically, the latest configurations of some parameters override the previous ones. The parameters include tunnel-policy tnl-policy-name, control-word, and no-control-word.

NOTE:
  • If a sub-interface is bound to a VLL, the sub-interface can be deleted only after the sub-interface is unbound from the VLL.

  • If a sub-interface is bound to a VLL, you cannot change the encapsulation type of the main interface.

By default, link type negotiation is enabled globally on the device. If a VLANIF interface is used as an AC-side interface for L2VPN, the configuration conflicts with link type negotiation. In this case, run the lnp disable command in the system view to disable link type negotiation.

When configuring BFD for static PW, the VC ID must be specified.

According to different encapsulation modes on the AC interfaces, the system processes user packets in different ways, as shown in the following tables.

  • User packets enter from an AC interface.

AC Interface Type

Encapsulation Mode of raw

Encapsulation Mode of tagged

Dot1q sub-interface

Removes one tag.

No action is required.

Dot1q termination sub-interface

Removes a tag.

No action is required.

Ethernet interface

Removes a tag.

No action is required.

QinQ stacking sub-interface

No action is required.

Adds a tag.

QinQ termination sub-interface (in symmetrical mode)

Removes the outer tag.

No action is required.

QinQ termination sub-interface (in asymmetrical mode)

Removes two tags.

Removes the outer tag.

VLANIF interface (added to the VLAN in default mode)

No action is required.

Adds a tag (default VLAN ID of the interface).

VLANIF interface (added to the VLAN in non-default mode)

Removes the outer tag.

No action is required.

  • User packets enter an AC interface.

AC Interface Type

Encapsulation Mode of raw

Encapsulation Mode of tagged

Dot1q sub-interface

Adds a tag.

Replaces the tag with the tag that is encapsulated on the outbound interface.

Dot1q termination sub-interface

Adds a tag.

Replaces the tag with the tag that is encapsulated on the outbound interface.

Ethernet interface

Adds a tag.

Replaces the tag with the tag that is encapsulated on the outbound interface.

QinQ stacking sub-interface

No action is required.

Removes a tag.

QinQ termination sub-interface (in symmetrical mode)

Adds the outer tag.

Replaces the outer tag with the tag that is encapsulated on the outbound interface.

QinQ termination sub-interface (in asymmetrical mode)

Adds two tags.

Removes the outer tag and then adds two tags that are encapsulated on the outbound interface.

VLANIF interface (added to the VLAN in default mode)

No action is required.

Removes a tag.

VLANIF interface (added to the VLAN in non-default mode)

Adds the outer tag.

Replaces the tag with the tag that is encapsulated on the outbound interface.

Example

# Create a Martini connection on the VLANIF interface.

<HUAWEI> system-view
[HUAWEI] vlan batch 10
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] mpls l2vc 10.2.2.9 100

# Create a Martini connection on the GE1/0/0.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/0
[HUAWEI-GigabitEthernet1/0/0] undo portswitch
[HUAWEI-GigabitEthernet1/0/0] mpls l2vc 10.2.2.9 100

mpls l2vpn

Function

The mpls l2vpn command enables MPLS L2VPN and displays the MPLS L2VPN view.

The undo mpls l2vpn command disables MPLS L2VPN and deletes all the L2VPN configurations.

By default, the MPLS L2VPN function is disabled.

Format

mpls l2vpn

undo mpls l2vpn

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure MPLS L2VPN functions or perform configurations in the MPLS L2VPN view on the MPLS L2VPN network, run the mpls l2vpn command to enable MPLS L2VPN and enter the MPLS L2VPN view.

Prerequisites

Basic MPLS functions have been configured. For details, see the mpls lsr-id and mpls commands.

Precautions

When the command is configured, a P device does not need to be enabled with the MPLS L2VPN function.

After the mpls l2vpn command is executed:

  • If MPLS L2VPN is disabled on the device, MPLS L2VPN is enabled and the MPLS L2VPN view is displayed.
  • If MPLS L2VPN is enabled on the device, the MPLS L2VPN view is displayed.

After the undo mpls l2vpn command is run in the system view, L2VPN services may be interrupted, and all L2VPN configurations are cleared. If you want to restore the L2VPN configurations, re-run all the deleted commands.

Example

# Enable MPLS L2VPN.

<HUAWEI> system-view
[HUAWEI] mpls lsr-id 10.1.1.1
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn]

mpls l2vpn alarm verification disable

Function

The mpls l2vpn alarm verification disable command disables MPLS L2VPN alarm verification.

The undo mpls l2vpn alarm verification disable command enables MPLS L2VPN alarm verification.

By default, MPLS L2VPN alarm verification is enabled.

Format

mpls l2vpn alarm verification disable

undo mpls l2vpn alarm verification disable

Parameters

None

Views

MPLS-L2VPN view

Default Level

2: Configuration level

Usage Guidelines

If MPLS L2VPN alarm verification is enabled on a device, the device regularly sends service alarms to the fault management (FM) module until these alarms are cleared. The FM then compares received alarms with locally stored alarms. If a received alarm is different from any of the locally stored alarms, the FM module reports the alarm to the NMS. If a received alarm is the same as a locally stored alarm, the FM module does not report this alarm.

Sometimes, alarms cleared on the device may still be displayed on the NMS. To ensure alarm consistency between the device and NMS, the FM module ages out such alarms after three alarm verification intervals and then instructs the NMS to delete these alarms. This function effectively eliminates alarm residue to improve alarm reliability.

If a large number of services exist, MPLS L2VPN alarm verification may regularly drive the CPU usage to a high level, affecting service performance. In this case, you can run the mpls l2vpn alarm verification disable command to disable MPLS L2VPN alarm verification. After MPLS L2VPN alarm verification is disabled, the device sends service alarms to the FM module only once, and the FM module cannot age out cleared alarms.

Example

# Disable MPLS L2VPN alarm verification.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] mpls l2vpn alarm verification disable

mpls l2vpn default martini

Function

The mpls l2vpn default martini command configures the dynamic VC signaling not to carry status information.

The undo mpls l2vpn default martini command restores the default configuration.

By default, the dynamic VC signaling carries status information.

Format

mpls l2vpn default martini

undo mpls l2vpn default martini

Parameters

None

Views

MPLS-L2VPN view

Default Level

2: Configuration level

Usage Guidelines

To configure the dynamic VC signaling not to carry status information in VLL scenarios, run the mpls l2vpn default martini command. In other scenarios, do not run this command.

NOTE:
  • If the dynamic VC signaling carries status information, the local end can send Notification messages to the peer end. For details about Notification messages, see Chapter "PWE3 Principles" in the "PWE3 Configuration".

  • Before using the mpls l2vpn default martini command, you must delete the configurations of VCs(including PWE3 VCs and VPLS VCs) that support Notification messages.

Example

# Configure the dynamic VC signaling not to carry status information.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] mpls l2vpn default martini

# Restore the default dynamic VC signaling configuration.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] undo mpls l2vpn default martini
Related Topics

mpls l2vpn flow-label

Function

The mpls l2vpn flow-label command enables flow label-based load balancing for PWs on an interface.

The undo mpls l2vpn flow-label command disables flow label-based load balancing for PWs on an interface.

By default, flow label-based load balancing is disabled for PWs on an interface.

NOTE:

Only the X series cards support this command.

Format

mpls l2vpn flow-label { both | send | receive } [ secondary ] [ static ]

undo mpls l2vpn flow-label { both | send | receive } [ secondary ] [ static ]

undo mpls l2vpn flow-label [ secondary ]

Parameters

Parameter Description Value
both

Enables flow label-based load balancing for outgoing traffic and incoming traffic.

-

send

Enables flow label-based load balancing for outgoing traffic.

-

receive

Enables flow label-based load balancing for incoming traffic.

-

secondary

Enables flow label-based load balancing for the secondary PW. If secondary is not configured, flow label-based load balancing is configured for the primary PW. Flow label-based load balancing can be configured for a secondary PW only if the secondary PW exists.

-

static

Statically configures flow label-based load balancing. For dynamic PWs, if static is not configured, the flow label-based load balancing capability of the local end is negotiated by the remote end. For static PWs, the flow label-based load balancing capability is statically configured, irrespective of whether static is configured.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When multiple links exist between provider (P) devices, configure flow label-based load balancing to improve L2VPN traffic forwarding efficiency. After flow label-based load balancing is enabled on a PE, the PE adds different labels for different L2VPN data flows to distinguish the data flows. After a P device receives a data packet carrying a flow label, it performs the Hash calculation and selects a forwarding path based on the flow label in the data packet. This processing implements load balancing. You can run the mpls l2vpn flow-label command to enable flow label-based load balancing for L2VPN on an interface.

Prerequisites

Before you enable flow label-based load balancing for an interface, create PWs on this interface and enable Multiprotocol Label Switching (MPLS) L2VPN.

Precautions

Flow label-based load balancing can be enabled only when any of the following conditions is true:
  • The receive parameter is configured on the local PE, and the send parameter is configured on the remote PE.
  • The send parameter is configured on the local PE, and the receive parameter is configured on the remote PE.
  • Both the send and receive parameters are configured on the local and remote PEs.

The secondary parameter indicates that flow label-based load balancing takes effect only for the secondary PW. If you specify secondary parameter, flow label-based load balancing takes effect only for the primary PW.

Example

# Enable flow label-based load balancing for PWs on Vlanif 100.

<HUAWEI> system-view
[HUAWEI] interface Vlanif 100
[HUAWEI-Vlanif100] mpls l2vc 2.2.2.2 100
[HUAWEI-Vlanif100] mpls l2vpn flow-label both

mpls l2vpn l2vpn-name

Function

The mpls l2vpn l2vpn-name command creates a L2VPN instance in the Kompella mode.

The undo mpls l2vpn l2vpn-name command deletes the L2VPN instance.

By default, no Kompella L2VPN instance is created.

Format

mpls l2vpn l2vpn-name [ encapsulation encapsulation [ control-word | no-control-word ] ]

undo mpls l2vpn l2vpn-name

Parameters

Parameter Description Value
l2vpn-name Specifies a L2VPN instance name. The value must be an existing VPN instance name.
encapsulation encapsulation Indicates the encapsulation type of the L2VPN instance. The encapsulation type can be ethernet or vlan. -
control-word | no-control-word Enables or disables the control word. By default, the control word is disabled. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, you can use this command to create a VPN.

Precautions

The specified encapsulation of an L2VPN must be the same as that of the CE interface.

Example

# Create a VPN in Kompella mode.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn1]

# Enter the MPLS-L2VPN instance view.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1
[HUAWEI-mpls-l2vpn-vpn1]

mpls l2vpn pw bfd

Function

The mpls l2vpn pw bfd command enables dynamic BFD for PWs and adjusts BFD parameters on an AC interface.

The undo mpls l2vpn pw bfd command restores default BFD parameters of dynamic BFD for PWs on an AC interface.

By default, dynamic BFD for PWs is not configured on an AC interface.

Format

mpls l2vpn pw bfd [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * [ remote-vcid vc-id ] [ secondary ]

undo mpls l2vpn pw bfd [ detect-multiplier | min-rx-interval | min-tx-interval ] * [ secondary ]

undo mpls l2vpn pw bfd [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * [ remote-vcid vc-id ] [ secondary ]

Parameters

Parameter Description Value
detect-multiplier multiplier Specifies the local detection multiplier. The value is an integer that ranges from 3 to 50. The default value is 3.
min-rx-interval rx-interval Specifies the minimum interval for receiving BFD packets.

The value is an integer, in milliseconds. If the MPU is ET1D2MPUA000/ET1D2MPUDC00, the value ranges from 3 to 1000. The default value is 1000 ms. In other cases, the value ranges from 100 to 1000 and the default value is 1000 ms.

min-tx-interval tx-interval Specifies the minimum interval for sending BFD packets.

The value is an integer, in milliseconds. If the MPU is ET1D2MPUA000/ET1D2MPUDC00, the value ranges from 3 to 1000. The default value is 1000 ms. In other cases, the value ranges from 100 to 1000 and the default value is 1000 ms.

remote-vcid vc-id Specifies the VC ID of the peer device. This parameter is mandatory when a multi-hop PW is detected. The value of this parameter is the VC ID of the remote end of the PW. The value is an integer that ranges from 1 to 4294967295.
secondary Configures BFD and its parameters on the secondary PW. By default, BFD and its parameters are configured on the primary PW. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network where BFD is used to detect faults, run the mpls l2vpn pw bfd command to enable dynamic BFD for PWs and adjust BFD parameters on an AC interface.

Precautions

To reduce usage of system resources, when a BFD session is detected in Down state, the system changes the minimum interval for receiving BFD packets and the minimum interval for sending BFD packets to random values between 1000 ms and 3000 ms. When the BFD session becomes Up, the configured intervals are restored.

Example

# Enable dynamic BFD for PWs on VLANIF 10 and set BFD parameters.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] mpls l2vc 2.2.2.2 100 
[HUAWEI-Vlanif10] mpls l2vpn pw bfd min-rx-interval 100 min-tx-interval 100

mpls l2vpn reroute

Function

The mpls l2vpn reroute command configures the revertive switchover policy for the primary and secondary PWs in FRR or PW redundancy master/slave mode.

The undo mpls l2vpn reroute command restores the default revertive switchover policy.

By default, delayed revertive switchover is configured in FRR or PW redundancy master/slave mode.

Format

mpls l2vpn reroute { { delay delay-time | immediately } [ resume resume-time ] | never }

undo mpls l2vpn reroute

Parameters

Parameter Description Value
delay delay-time Specifies the revertive switchover policy for the primary and secondary PWs as delayed revertive switchover, and sets the duration for delayed switchover. The value is an integer that ranges from 10 to 1800, in seconds. The default value is 30.
immediately Specifies the revertive switchover policy for the primary and secondary PWs as immediate revertive switchover. -
resume resume-time Specifies a delay after which the local device notifies the peer PE on the secondary PW of the recovery. You can set this parameter only in VLL FRR mode. The value is an integer that ranges from 0 to 600, in seconds. The default value is 10.
never Specifies the revertive switchover policy for the primary and secondary PWs to none revertive switchover. After the primary PW recovers, traffic is not switched to it until the secondary PW is faulty. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The mpls l2vpn reroute command configures the revertive switchover policy for the primary and secondary PWs in FRR or PW redundancy master/slave mode.

Prerequisites

The primary and secondary PWs have been configured in FRR or PW redundancy master/slave mode. The revertive switchover policy cannot be configured for PW redundancy independent mode.

Precautions

In VLL FRR mode and in PW redundancy master/slave mode, the PW revertive switchover policy is classified into the following modes:

  • Immediate revertive switchover: When the primary PW recovers from a fault, the local PE switches traffic back to the primary PW immediately and notifies the peer PE on the secondary PW of the fault. In FRR mode, the local PE notifies the peer PE on the secondary PW of the recovery after a delay of resume-time. In PW redundancy master/slave mode, the parameter resume-time is not supported.

    This revertive switchover applies to scenarios in which users hope traffic to be restored as soon as possible.

  • Delayed revertive switchover: When the primary PW recovers from a fault, traffic is switched back to the primary PW after a period specified by delay-time. After traffic is switched back, the local device immediately notifies the peer device on the secondary PW of the fault. If resume-time is configured in FRR mode, the local device notifies the peer device on the secondary PW of the recovery after a delay of resume-time.

    On a large-scale network, packet loss caused by incomplete route convergence may occur during the switchback. To prevent this problem, configure traffic to be switched back after a delay.

  • None revertive switchover: When the primary PW recovers from a fault, traffic is not switched back to the primary PW until the secondary PW becomes faulty.

    If you do not want traffic to be frequently switched between the primary and secondary PWs, you can use the non-revertive switchover.

In a CE asymmetrical networking, if the Ethernet OAM function is configured on a PE interface connected to a CE, and a revertive switchover policy is configured, the value of resume-time cannot be 0 seconds. The value must be equal to or greater than 1 second.

Example

# Configure the device to switch traffic back to the primary PW 15 seconds after the primary PW recovers from a fault, notify the peer PE on the secondary PW of the fault when a switchover is performed, and notify the peer PE of the secondary PW of the recovery 20 seconds later.

<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] mpls l2vc 10.1.1.9 100
[HUAWEI-Vlanif100] mpls l2vc 10.2.2.9 200 secondary
[HUAWEI-Vlanif100] mpls l2vpn reroute delay 15 resume 20
Related Topics

mpls l2vpn service-name

Function

The mpls l2vpn service-name command sets the name of an SVC or Martini VLL service or a PWE3 service.

The undo mpls l2vpn service-name command deletes the configured L2VPN service name.

By default, no L2VPN service name is configured in the system.

Format

mpls l2vpn service-name service-name

undo mpls l2vpn service-name

Parameters

Parameter Description Value
service-name Specifies the name of an L2VPN service. This parameter uniquely identifies an L2VPN service on a PE. The value is a string of 1 to 15 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, an SVC or Martini VLL service or a PWE3 service is uniquely identified by the combination of the VC ID and VC type, which are hard to remember and make maintenance complex. When a service name is used to uniquely identify an L2VPN service, the name can be defined based on requirements and the NMS operator can maintain the L2VPN service by clicking the name on the NMS graphical user interface (GUI). This simplifies operation and maintenance.

Prerequisites

An SVC or Martini VLL service or a PWE3 service has been configured on a service interface. A primary PW and a secondary PW can be configured for a Martini VLL or PWE3 service.

Precautions

On each PE, an L2VPN service name is unique. If an L2VPN service name has been used by a PW, it cannot be configured for another PW, or the system will display an error message.

If an L2VPN service already has a service name, this service name will be overwritten when a new name is configured for the L2VPN service. Therefore, when changing an L2VPN service name, you can directly configure a new service name without deleting the original one.

  • Because the primary and secondary PWs are configured on the same interface, they are regarded as one PW, and a service name is configured for both of them.
  • On each PE, an L2VPN service name is unique.
  • The mpls l2vpn service-name command cannot be run on a loopback interface.

Example

# Set an L2VPN service name to pw1 on a service interface.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] mpls l2vc 10.1.1.1 1
[HUAWEI-Vlanif10] mpls l2vpn service-name pw1

mpls l2vpn vlan-stacking

Function

The mpls l2vpn vlan-stacking command configures the stacked VLAN ID for a main interface.

The undo mpls l2vpn vlan-stacking command deletes the stacked VLAN ID from a main interface.

By default, the system does not add a VLAN ID to a packet passing through the main interface.

Format

mpls l2vpn vlan-stacking stack-vlan vlan-id

undo mpls l2vpn vlan-stacking stack-vlan

Parameters

Parameter

Description

Value

stack-vlan vlan-id

Indicates the outer VLAN ID.

The value is an integer that ranges from 1 to 4094.

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the following conditions are met, run the mpls l2vpn vlan-stacking stack-vlan command to specify a VLAN for a main interface:

  • The VLL or VSI using VLAN encapsulation is configured on the two PEs.
  • The remote PE accepts packets with one more VLAN tag.
  • The local PE is connected to a computer by using the 40GE interface, 100GE interface, GE interface, XGE interface, or Eth-Trunk interface as the AC interface.

    In this scenario, the computer sends and receives all packets. After a VLAN is specified for the main interface, the local PE performs the following operations:

    • The local PE adds VLAN tags to the packets sent by the computer. The VLAN tags are encapsulated in the user packets, and are transparently transmitted to the remote PE.
    • The local PE removes the outer VLAN tags from the packets sent by the remote PE, and forwards the packets to the computer.

Precautions

Before binding the main interface to the VLL or VSI, run the mpls l2vpn vlan-stacking stack-vlan command to specify a VLAN for the main interface.

To use the XGE interface, GE interfaces, 40GE interfaces, 100GE interface, or Eth-Trunk interfaces of the device as the AC interfaces of PEs, you need to run the undo portswitch command.

Example

# Configure MPLS VLL on the main interface and add VLAN tag 80 to incoming packets.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/2
[HUAWEI-GigabitEthernet1/0/2] undo portswitch
[HUAWEI-GigabitEthernet1/0/2] mpls l2vpn vlan-stacking stack-vlan 80
[HUAWEI-GigabitEthernet1/0/2] mpls l2vc 10.0.0.17 20 tagged

# Configure VSI on the main interface and add VLAN tag 100 to incoming packets.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/5
[HUAWEI-GigabitEthernet1/0/5] undo portswitch
[HUAWEI-GigabitEthernet1/0/5] mpls l2vpn vlan-stacking stack-vlan 100
[HUAWEI-GigabitEthernet1/0/5] l2 binding vsi vsi1

mpls l2vpn traffic-statistics enable

Function

The mpls l2vpn traffic-statistics enable command enables the system to collect VLL traffic statistics.

The undo mpls l2vpn traffic-statistics enable command disables the system from collecting VLL traffic statistics.

By default, the system is disabled from collecting VLL traffic statistics.

Format

mpls l2vpn traffic-statistics enable

undo mpls l2vpn traffic-statistics enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To collect traffic statistics in a VLL networking, use this command to the system to collect VLL traffic statistics.

Precautions

The system collects traffic statistics only for VLLs that are created after this command is executed.

You can view traffic statistics by running the display traffic-statistics l2vpn interface command.

Example

# Enable the function that collects L2VPN traffic statistics.

<HUAWEI>system-view
[HUAWEI] mpls l2vpn traffic-statistics enable
Info: The modification can only take effect for newly created VC.

mpls l2vpn trigger if-down

Function

The mpls l2vpn trigger if-down command enables the notification of physical layer faults.

The undo mpls l2vpn trigger if-down command disables the notification of physical layer faults.

By default, the notification of physical layer faults is disabled.

Format

mpls l2vpn trigger if-down

undo mpls l2vpn trigger if-down

Parameters

None

Views

40GE interface view, 100GE interface view, GE interface view, or XGE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a VLL FRR networking, an AC must detect failures of the corresponding PW to trigger link switching. This command enables the notification of physical layer faults so that ACs can detect failures of PWs.

Precautions

After the notification of physical layer faults is enabled:

  • When a physical layer fault occurs on the PW side, the local AC interface is Down.
  • When a physical layer fault occurs on the AC side, the local PE notifies the peer PE of the fault and the peer AC interface is Down.

After the fault is rectified, the Down AC interface automatically becomes Up.

Example

# Enable the notification of physical layer faults.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] interface gigabitethernet 1/0/0
[HUAWEI-GigabitEthernet1/0/0] undo portswitch
[HUAWEI-GigabitEthernet1/0/0] mpls l2vc 1.1.1.1 1
[HUAWEI-GigabitEthernet1/0/0] mpls l2vpn trigger if-down

mpls static-l2vc

Function

The mpls static-l2vc command creates a static VC.

The undo mpls static-l2vc command deletes the static VCs.

By default, no static VC is created.

Format

mpls static-l2vc { { destination ip-address | pw-template pw-template-name vc-id } * | destination ip-address vc-id } transmit-vpn-label transmit-label-value receive-vpn-label receive-label-value [ tunnel-policy tnl-policy-name | [ control-word | no-control-word ] | [ raw | tagged ] ] *

undo mpls static-l2vc

undo mpls static-l2vc { { destination ip-address | pw-template pw-template-name vc-id } * | destination ip-address vc-id } transmit-vpn-label transmit-label-value receive-vpn-label receive-label-value [ tunnel-policy tnl-policy-name | [ control-word | no-control-word ] | [ raw | tagged ] ] *

Parameters

Parameter

Description

Value

destination ip-address

Specifies the LSR ID of a peer device on the PW.

The value is in dotted decimal notation.

pw-template pw-template-name

Specifies the name of a static PW template.

The value is a string of 1 to 19 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

vc-id

Specifies the VC ID.

The value is an integer that ranges from 1 to 4294967295.

transmit-vpn-label transmit-label-value

Specifies the value of a transmit label.

The value is an integer that ranges from 0 to 1048575.

receive-vpn-label receive-label-value

Specifies the value of a receive label.

The value is an integer that ranges from 16 to 1023.

tunnel-policy tnl-policy-name

Specifies the name of a tunnel policy.

The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

control-word | no-control-word

Enables or disables the control word function. By default, the control word function is disabled.

-

raw

Removes the service-delimiting (SD) tag from a packet.

-

tagged

Retains the SD tag in a packet.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In an L2VPN networking, you can use this command to create a static VC between two PEs connected to CEs.

Precautions

  • An interface cannot function as an L2VPN AC interface and L3VPN AC interface at the same time. After an interface is bound to an L2VPN, Layer 3 features such as the IP address and routing protocol on this interface become invalid.

  • You can set attributes for a static PW template, including the remote peer, tunnel policy, control word, and VCCV. When configuring a static PW, you can directly use the static PW template without specifying attributes for the PW. After setting attributes for a static PW template, you can update the static PW template at any time. The modified static PW template takes effect only after the reset pw command is run.

  • Static VCs must be created on PEs at both ends. The destination address of a VC is the LSR ID of the peer PE. The transmit label of the PE at one end is the receive label of the PE at the other end. If the labels do not match, traffic may fail to be forwarded even though the static-12vc field is displayed as Up.

  • If no tunnel policy is specified, the default tunnel policy is used. The default policy specifies that traffic is forwarded along the LSP and only one tunnel is used for load balancing. If a tunnel policy name is specified but the tunnel policy is not configured, the default tunnel policy is used.

  • When configuring a static VC, note that the value of the transmit label ranges from 0 to 1048575. This ensures the communication between the device and different types of devices.

  • When creating static VCs, the latest configurations of some parameters override the previous ones. The parameters include tunnel-policy tnl-policy-name, control-word, and no-control-word.

NOTE:
  • If a sub-interface is bound to a VLL, the sub-interface can be deleted only after the sub-interface is unbound from the VLL.

  • If a sub-interface is bound to a VLL, you cannot change the encapsulation type of the main interface.

By default, link type negotiation is enabled globally on the device. If a VLANIF interface is used as an AC-side interface for L2VPN, the configuration conflicts with link type negotiation. In this case, run the lnp disable command in the system view to disable link type negotiation.

Example

# Configure a static VC. Set the LSR ID of the peer device to 1.1.1.1, transmit label to 100, and receive label to 100.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] mpls static-l2vc destination 1.1.1.1 transmit-vpn-label 100 receive-vpn-label 100 

# Configure a static VC by applying a PW template and set values of the VC ID, transmit label, and receive label to 100 respectively.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] mpls static-l2vc pw-template pwt 100 transmit-vpn-label 100 receive-vpn-label 100

# Delete a static VC.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] undo mpls static-l2vc

mtu (MPLS-L2VPN instance view)

Function

The mtu command sets the Maximum Transmission Unit (MTU) of a L2VPN instance.

The undo mtu command restores the default configuration.

By default, the MTU of a L2VPN instance is 1500 bytes.

Format

mtu mtu-value

undo mtu

Parameters

Parameter Description Value
mtu-value Specifies the MTU of a L2VPN instance. The value is a decimal integer that ranges from 46 to 16352 bytes.

Views

MPLS-L2VPN instance view

Default Level

2: Configuration level

Usage Guidelines

The VPN MTU must be unique on the whole network.

If MTUs, which belong to the same VPN, on two PEs are different, the PEs cannot exchange VC information and set up connections.

After vpn-target is configured for the MPLS L2VPN instance, the MTU of the MPLS L2VPN cannot be changed.

In Kompella interworking with other venders' devices that do not support the MTU matching check, to ensure the VC keeps the Up state, you can perform the following configuration on the S12700:

  • Configuring an MTU the same as that of other venders' devices

  • Using the ignore-mtu-match command for the system to ignore the MTU matching check

Example

# Set the MTU.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1
[HUAWEI-mpls-l2vpn-vpn1] mtu 1000

ping vc

Function

The ping vc command detects the status of a PW.

Format

ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * control-word [ remote remote-ip-address peer-pw-id | draft6 ] * [ ttl ttl-value ] [ pipe | uniform ]

ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * control-word remote remote-ip-address peer-pw-id sender sender-address [ ttl ttl-value ] [ pipe | uniform ]

ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * label-alert [ no-control-word ] [ remote remote-ip-address | draft6 ] * [ pipe | uniform ]

ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * normal [ no-control-word ] [ remote remote-ip-address peer-pw-id ] [ ttl ttl-value ] [ pipe | uniform ]

Parameters

Parameter Description Value
pw-type Specifies the encapsulation type of a local PW.

Currently, PWs of the following types are supported: ethernet, vlan, and ip-interworking.

pw-id Specifies the ID of a local PW. The value is an integer that ranges from 1 to 4294967295.
-c echo-number Specifies the number of Echo Request messages to be sent.

If the network works unstably, you can set this parameter to a larger value to test network quality based on the packet loss ratio.

The value is an integer that ranges from 1 to 4294967295. The default value is 5.
-m time-value Specifies the interval for sending Echo Request messages. Each time after the source sends an Echo Request message by using the ping vc command, it waits a period of time (2000 ms by default) before sending the next Echo Request message. You can set the interval for sending Echo Request messages through the parameter time-value. If the network works unstably, the value should be larger than or equal to 2000 ms. The value is an integer that ranges from 1 to 10000, in milliseconds. The default value is 2000.
-s data-bytes Specifies the number of bytes of the sent Echo Request messages.

The value is an integer that ranges from 65 to 8100, in bytes. The default value is 100.

-t timeout-value Specifies the timeout period for sending Echo Request messages. The value is an integer that ranges from 0 to 65535, in milliseconds. The default value is 2000.
-exp exp-value Specifies the EXP value of the sent Echo Request messages.
NOTE:

If DSCP priority has been configured by running the set priority command, the exp-value parameter does not take effect.

The value is an integer that ranges from 0 to 7. The default value is 0.
-r reply-mode Specifies the mode in which the peer returns MPLS Echo Reply messages.
  • 1: No MPLS Echo Reply message is returned.
  • 2: MPLS Echo Reply messages are encapsulated into IPv4/IPv6 UDP packets.
  • 3: MPLS Echo Reply messages are encapsulated into IPv4/IPv6 UDP packets carrying the Router Alert option.
  • 4: MPLS Echo Reply messages are returned through the control channel of the application plane.
The value is an integer that ranges from 1 to 4. The default value is 2.
-v Displays the detailed information. -
no-control-word Disables the control word function. -
control-word Enables the control word function. The switching node along a multi-segment PW does not transmit ping packets. When the control word function is enabled, you can ping only the termination node of the PW. Before using the control word to ping the PW, you must enable the control word for a PW. -
remote Specifies information about the PW on the remote PE. Information specified by the remote PE is finally encapsulated into the ping packets. The PW can be searched on the remote PE based on the specified information. By default, information contained in the ping packets is the information about the PW on the local end, which applies to single-segment PWs. -
peer-pw-id Specifies the ID of the PW on the peer. The value is an integer that ranges from 1 to 4294967295. By default, the peer PW ID is the same as the local PW ID.
draft6 Specifies the version of the ping vc command. If this parameter is specified, the ping operation is performed based on "draft-ietf-mpls-lsp-ping-06". -
pipe Specifies the pipe mode. When a probe packet passes through the MPLS domain, the entire MPLS domain is considered as one hop and the IP TTL of the probe packet is reduced by one on the ingress and egress respectively. -
uniform Specifies the uniform mode. The IP TTL of the probe packet is reduced by one each time it passes through one hop in the MPLS domain. -
remote-ip-address Specifies the remote IP address. By default, the system searches for the IP address of the next hop based on the PW on the local PE. In the case of a multi-segment PW, if the ping operation is performed in control word mode, the IP address of the termination node must be specified. In MPLS router alert mode, the IP address of any switching node or the termination node can be specified. Then, the Echo Request message is sent to the peer and then sent back. -
label-alert Specifies the label alert mode. The switching node along a multi-segment PW sends ping packets forcibly. In MPLS router alert mode, you can ping any switching node along the PW. -
normal Specifies the normal mode, that is, the TTL detection mode. In this mode, control word and router alert are not encapsulated in to MPLS Echo Request messages, and TTL values are used to detect PW connectivity. -
ttl ttl-value Specifies the TTL value. The value is an integer that ranges from 1 to 255. The default value is 64.
sender sender-address Specifies a source address. For end-to-end detection of a multi-segment PW, a source IP address needs to be specified for a public network device that communicates with the remote PE. Generally, the source IP address is the address of the adjacent SPE or UPE. -

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

If a PW is Up, the ping vc command can be used to locate the fault on the PW. For example, a forwarding entry is abnormally lost or incorrect. The ping vc command can be used to check a PW in the following scenarios:

VLL networking

Based on VLL types, the VLL PW ping can be classified into the following types:
  • PWE3 VLL PW ping: In a PWE3 VLL networking, a PW ping is initiated to check the connectivity of a PW. A PWE3 VLL PW ping can be performed in control word mode, TTL mode, or label alert mode. In a ping test, a local PE sends an Echo Request message to the peer PE. After receiving the message, the peer PE abstracts and sends FEC information to the L2VPN module to determine whether the message has reached the egress. If so, the peer PE returns an Echo Reply message .
  • Kompella VLL PW ping: A VLL PW ping is initiated to check the connectivity of a PW. Different from the PWE3 networking, the Kompella VLL does not need the PW template and supports the control word, TTL, and label alert modes.

VPLS networking

Based on the VPLS types, the VPLS PW ping can be classified into the following types:
  • Martini VPLS PW ping: The Martini VPLS PW ping supports only the label alert mode. On a Hierarchical Virtual Private LAN Service (HVPLS) network, the Martini VPLS PW ping can only detect single-segment PWs. If an optional PW ID is configured and specified, the PW with the PW ID is detected. If the PW ID is not specified, the PW with a specified VSI ID is detected.
  • Kompella VPLS PW ping: The Kompella VPLS PW ping supports only the label alert mode.

If a PW fault is detected by using the ping vc command, the tracert vc command can be used to locate the fault. Both the ping vc command and the tracert vc command can properly check the connectivity of PWs and locate faults.

Prerequisites

The MPLS module has been enabled on the device and works properly.

Precautions

control-word is recommended to detect an entire PW. Even though label-alert can be used to check the entire PW, the whole process is the same as the forwarding process only when control-word is used.

The execution of the ping vc command terminates when either of the following situations occurs:
  • The ping packet reaches the egress.
  • The TTL value of the ping packet reaches the upper threshold.

When a PE is single-homed to an SPE and two multi-segment PWs are deployed for PW redundancy, end-to-end detection cannot be performed for the secondary PW if services are transmitted over the primary PW. If services are transmitted over the secondary PW, the primary PW can only be detected segment by segment.

Example

# Run the ping vc command in label alert mode on the device to check the connectivity of an Ethernet PW.

<HUAWEI> ping vc ethernet 100 -c 10 -m 10 -s 65 -t 100 -v label-alert remote 2.2.2.2
    Reply from 2.2.2.2: bytes=65 Sequence=1 time = 31 ms Return Code 3, Subcode 1
    Reply from 2.2.2.2: bytes=65 Sequence=2 time = 15 ms Return Code 3, Subcode 1
    Reply from 2.2.2.2: bytes=65 Sequence=3 time = 32 ms Return Code 3, Subcode 1
    Reply from 2.2.2.2: bytes=65 Sequence=4 time = 15 ms Return Code 3, Subcode 1
    Reply from 2.2.2.2: bytes=65 Sequence=5 time = 32 ms Return Code 3, Subcode 1
    Reply from 2.2.2.2: bytes=65 Sequence=6 time = 15 ms Return Code 3, Subcode 1
    Reply from 2.2.2.2: bytes=65 Sequence=7 time = 15 ms Return Code 3, Subcode 1
    Reply from 2.2.2.2: bytes=65 Sequence=8 time = 16 ms Return Code 3, Subcode 1
    Reply from 2.2.2.2: bytes=65 Sequence=9 time = 15 ms Return Code 3, Subcode 1
    Reply from 2.2.2.2: bytes=65 Sequence=10 time = 32 ms Return Code 3, Subcode 1

--- FEC: FEC 128 PSEUDOWIRE (NEW). Type = ethernet, ID = 100 ping statistics 
    10 packet(s) transmitted
    10 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 15/21/32 ms 
Related Topics

ping vc vpn-instance

Function

The ping vc vpn-instance command detects the status of a PW and locates the faulty node when a PW goes Down.

Format

ping vc vpn-instance vpn-name local-ce-id remote-ce-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * { label-alert [ no-control-word ] | control-word }

Parameters

Parameter Description Value
vpn-instance vpn-name Specifies the VPN name. The value is an existing VPN instance name.
local-ce-id Specifies the ID of the local CE. The value is a decimal integer ranging from 0 to 249.
remote-ce-id Specifies the ID of the local CE. The value is a decimal integer ranging from 0 to 249.
-c echo-number Specifies the number of the sent Echo Request packets. The value is a decimal integer that ranges from 1 to 4294967295. The default value is 5.
-m time-value Indicates the interval for sending Echo Request packets. The value is a decimal integer that ranges from 1 to 10000, in milliseconds. By default, the value is 2000.
-s data-bytes Specifies the number of bytes of an Echo Request packet. The value is a decimal integer ranging from 65 to 8100. By default, the value is 100.
-t timeout-value Specifies the timeout period for sending Echo Request packets. The value is a decimal integer ranging from 0 to 65535. By default, the value is 2000.
-exp exp-value Specifies the EXP value in an outer label in an Echo Request packet. The value is an integer ranging from 0 to 7.
-r reply-mode Specifies the mode of sending Echo Reply packets. The meaning of each value is as follows:
  • 1: indicates no reply.
  • 2: indicates a reply with an IPv4 or IPv6 UDP datagram.
  • 3: indicates a reply with an IPv4 or IPv6 datagram carrying an MPLS router alert label.
  • 4: indicates a reply through the control channel of the application plane.
The value is a decimal integer ranging from 1 to 4. By default, the value is 2.
-v Displays detailed information. -
label-alert Indicates that in the case of a multi-hop PW, ping packets are forcibly sent on the transit node. In Label Alert mode, you can ping all transit nodes of a PW. -
no-control-word Disables the control word mode. -
control-word Indicates that in the case of a multi-hop PW, ping packets are forwarded without being resolved. In the control word mode, you can ping only the egress of the PW. The ping in control word mode can be performed only after the control word of a PW is enabled. -

Views

All views

Default Level

0: Visit level

Usage Guidelines

If the control-word is enabled for a PW, it is recommended that you specify the control-word parameter to detect the connectivity of the PW. This ensures that ping packets are transmitted in the same manner as data packets on the PW.

Example

# Run the ping vc vpn-instance command in label-alert mode on the PE to detect the connectivity of the Kompella PW.

<HUAWEI> ping vc vpn-instance vpn1 1 2 -v label-alert
    Reply from 4.4.4.4: bytes=100 Sequence=1 time = 110 ms Return Code 3, Subcode 1
    Reply from 4.4.4.4: bytes=100 Sequence=2 time = 90 ms Return Code 3, Subcode 1
    Reply from 4.4.4.4: bytes=100 Sequence=3 time = 60 ms Return Code 3, Subcode 1
    Reply from 4.4.4.4: bytes=100 Sequence=4 time = 60 ms Return Code 3, Subcode 1
    Reply from 4.4.4.4: bytes=100 Sequence=5 time = 90 ms Return Code 3, Subcode 1

  --- FEC: L2 VPN ENDPOINT. Sender VEID = 1, Remote VEID = 2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 60/82/110 ms
Table 10-55  Description of the ping vc vpn-instance command output

Item

Description

Reply from

IP address of the Echo Reply packet

bytes

Length of the Echo Reply packet

sequence

Sequence number of the Echo Reply packet

return code

Return code of the Echo Reply packet:
  • 1: Malformed echo request received
  • 2: One or more of the TLVs was not understood
  • 3: Replying router is an egress for the FEC at stack-depth
  • 4: Replying router has no mapping for the FEC at stack-depth
  • 5: Downstream Mapping Mismatch
  • 6: Upstream Interface Index Unknown
  • 7: Reserved
  • 8: Label switched at stack-depth
  • 9: Label switched but no MPLS forwarding at stack-depth
  • 10: Mapping for this FEC is not the given label at stack-depth
  • 11: No label entry at stack-depth
  • 12: Protocol not associated with interface at FEC stack-depth
  • 13: Premature termination of ping due to label stack shrinking to a single label

Subcode

Subcode of the Echo Reply packet (indicating the depth of the label stack in the packet)

FEC

FEC TLV type (L2 VPN ENDPOINT indicates the Kompella PW that is negotiated by BGP)

Sender VEID

ID of the local CE

Remote VEID

ID of the remote CE

reset bgp l2vpn

Function

The reset bgp l2vpn command resets the TCP connection of the BGP L2VPN.

Format

reset bgp l2vpn { as-number | peer-ip-address | all | internal | external }

Parameters

Parameter Description Value
as-number Indicates the number of the AS to which an L2VPN peer belongs. -
peer-ip-address Indicates the IP address of an L2VPN peer. -
all Resets all the L2VPN BGP connections. -
internal Resets the L2VPN BGP connection in the same AS. -
external Resets the L2VPN BGP connection across ASs. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

After the parameters configured in the BGP-L2VPN address family view are modified, you can run the reset bgp l2vpn command to reset the TCP connection of the BGP L2VPN. After that, BGP re-negotiates parameters, re-sends label information, and re-establishes the session.

If the BGP L2VPN application and other applications share the same TCP connection, the reset bgp l2vpn command resets BGP neighbor relationship of all applications on this TCP connection.

Example

# Reset all the L2VPN BGP connections.

<HUAWEI> reset bgp l2vpn all

reset traffic-statistics l2vpn interface

Function

The reset traffic-statistics l2vpn interface command resets VLL traffic statistics on a specified interface.

Format

reset traffic-statistics l2vpn interface interface-type interface-number

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the type and number of a VLL AC interface.

  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

To collect new VLL traffic statistics in a VLL networking, run the reset traffic-statistics l2vpn interface command to reset the current VLL traffic statistics on the specified interface, and collect VLL traffic statistics again

Example

# Reset VLL traffic statistics on VLANIF10.

<HUAWEI> reset traffic-statistics l2vpn interface vlanif 10

route-distinguisher (MPLS-L2VPN instance view)

Function

The route-distinguisher command configures an RD for an MPLS L2VPN instance.

By default, no RD is configured in the MPLS L2VPN instance view.

Format

route-distinguisher route-distinguisher

Parameters

Parameter Description Value
route-distinguisher Specifies the value of an RD. The formats of an RD are as follows:
  • 16-bit AS number:32-bit user-defined number

    For example, 102:3.

    An AS number ranges from 0 to 65535. A user-defined number ranges from 0 to 4294967295. The AS number and the user-defined number cannot be 0s at the same time. That is, an RD cannot be 0:0.

  • 32-bit IP address:16-bit user-defined number

    For example, 192.168.122.15:1.

    An IP address ranges from 0.0.0.0 to 255.255.255.255. A user-defined number ranges from 0 to 65535.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0.0:0.

-

Views

MPLS-L2VPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, an L2VPN instance takes effect only after an RD is configured.

Precautions

VPNs on the same PE have different RDs. The same VPN can have the same RD or different RDs on different PEs.

To change the RD of an L2VPN instance, delete the L2VPN instance and create a new L2VPN instance.

Kompella VLL and Kompella VPLS must use different RDs.

Example

# Set the RD of an MPLS L2VPN instance to 300:1.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn1] route-distinguisher 300:1

# Set the RD of an MPLS L2VPN instance to 1.1.1.1:5.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn2 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn2] route-distinguisher 1.1.1.1:5

# Set the RD of an MPLS L2VPN instance to 16.30:50.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn2 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn2] route-distinguisher 16.30:50

snmp-agent trap enable feature-name l2vpn

Function

The snmp-agent trap enable feature-name l2vpn command enables the trap function for the L2VPN module.

The undo snmp-agent trap enable feature-name l2vpn command disables the trap function for the L2VPN module.

By default, the trap function is disabled for the L2VPN module.

Format

snmp-agent trap enable feature-name l2vpn [ trap-name { hwcccvcdown | hwcccvcup | hwkompellaswitchptow | hwkompellaswitchwtop | hwkompellavcdown | hwkompellavcup | hwpwvcbackup | hwpwvcdeleted | hwpwvcdown | hwpwvcstatuschange | hwpwvcswitchptow | hwpwvcswitchwtop | hwpwvcup | hwsvcdeleted | hwsvcdown | hwsvcup | hwvplsvcbackup | hwvplsvcdeleted | hwvplsvcdown | hwvplsvcnumbermaxclear | hwvplsvcnumbermaxexceed | hwvplsvcnumberthresholdclear | hwvplsvcnumberthresholdexceed | hwvplsvcstatuschange | hwvplsvcup | hwvplsvsideleted | hwvplsvsidown | hwvplsvsiup | hwvpwspwredundancydegraded | hwvpwspwredundancydegradedclear } ]

undo snmp-agent trap enable feature-name l2vpn [ trap-name { hwcccvcdown | hwcccvcup | hwkompellaswitchptow | hwkompellaswitchwtop | hwkompellavcdown | hwkompellavcup | hwpwvcbackup | hwpwvcdeleted | hwpwvcdown | hwpwvcstatuschange | hwpwvcswitchptow | hwpwvcswitchwtop | hwpwvcup | hwsvcdeleted | hwsvcdown | hwsvcup | hwvplsvcbackup | hwvplsvcdeleted | hwvplsvcdown | hwvplsvcnumbermaxclear | hwvplsvcnumbermaxexceed | hwvplsvcnumberthresholdclear | hwvplsvcnumberthresholdexceed | hwvplsvcstatuschange | hwvplsvcup | hwvplsvsideleted | hwvplsvsidown | hwvplsvsiup | hwvpwspwredundancydegraded | hwvpwspwredundancydegradedclear } ]

Parameters

Parameter Description Value
trap-name

Indicates the traps of L2VPN events of specified types.

-
hwcccvcdown

Enables or disables the trap indicating that the status of a CCC VC changes to Down.

-
hwcccvcup

Enables or disables the trap indicating that the status of a CCC VC changes to Up.

-
hwkompellaswitchptow

Enables or disables the trap indicating that a Kompella PW changes from the secondary state to the primary state.

-
hwkompellaswitchwtop

Enables or disables the trap indicating that a Kompella PW changes from the primary state to the secondary state.

-
hwkompellavcdown

Enables or disables the trap indicating that the status of a Kompella VC changes to Down.

-
hwkompellavcup

Enables or disables the trap indicating that the status of a Kompella VC changes to Up.

-
hwpwvcbackup

Enables or disables the trap indicating that the status of a PWE3 VC changes to Backup.

-
hwpwvcdeleted

Enables or disables the trap indicating that a PWE3 VC is deleted.

-
hwpwvcdown

Enables or disables the trap indicating that the status of a PWE3 VC changes to Down.

-
hwpwvcstatuschange

Enables or disables the trap indicating that the status of a PWE3 VC changes.

-
hwpwvcswitchptow

Enables or disables the trap indicating that a PWE3 PW changes from the secondary state to the primary state.

-
hwpwvcswitchwtop

Enables or disables the trap indicating that a PWE3 PW changes from the primary state to the secondary state.

-
hwpwvcup

Enables or disables the trap indicating that the status of a PWE3 VC changes to Up.

-
hwsvcdeleted

Enables or disables the trap indicating that an SVC is deleted.

-
hwsvcdown

Enables or disables the trap indicating that the status of an SVC changes to Down.

-
hwsvcup

Enables or disables the trap indicating that the status of an SVC changes to Up.

-
hwvplsvcbackup

Enables or disables the trap indicating that the status of a VPLS VC changes to Backup.

-
hwvplsvcdeleted

Enables or disables the trap indicating that a VPLS VC is deleted.

-
hwvplsvcdown

Enables or disables the trap indicating that the status of a VPLS VC changes to Down.

-
hwvplsvcup

Enables or disables the trap indicating that the status of a VPLS VC changes to Up.

-
hwvplsvsideleted

Enables or disables the trap indicating that a VPLS VSI is deleted.

-
hwvplsvsidown

Enables or disables the trap indicating that the status of a VPLS VSI changes to Down.

-
hwvplsvsiup

Enables or disables the trap indicating that the status of a VPLS VSI changes to Up.

-
hwvplsvcstatuschange

Enables or disables the trap indicating that the status of a VPLS VC changes.

-
hwvplsvcnumbermaxclear

Enables the device to clear traps when the number of VPLS VCs falls below 95% of the upper threshold.

-
hwvplsvcnumbermaxexceed

Enables the device to send traps when the number of VPLS VCs reaches the upper threshold.

-
hwvplsvcnumberthresholdclear

Enables the device to send traps when the number of VPLS VCs falls below the lower threshold.

-
hwvplsvcnumberthresholdexceed

Enables the device to send traps when the number of VPLS VCs reaches the upper threshold.

-
hwvpwspwredundancydegraded

Enables or disables the trap indicating that the protection provided by VLL FRR degrades.

-
hwvpwspwredundancydegradedclear

Enables or disables the trap indicating that the protection provided by VLL FRR recovers.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The L2VPN module is not configured with the function of excessive traps. To enable the traps of one or more events, specify trap-name.

The NMS can receive alarms only after you run the snmp-agent target-host inform or snmp-agent target-host trap command to configure a target host to receive SNMP trap messages.

Example

# Enable the system to generate an alarm when a VC in CCC mode goes Down.
<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name l2vpn trap-name hwcccvcdown

tracert vc

Function

The tracert vc command detects the status of a PW or locates a faulty node on a PW in Down state.

Format

tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * control-word [ draft6 ] [ full-lsp-path ] [ pipe | uniform ]

tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * control-word remote remote-ip-address [ ptn-mode | full-lsp-path ] [ pipe | uniform ]

tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * control-word remote remote-pw-id draft6 [ full-lsp-path ] [ pipe | uniform ]

tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * label-alert [ no-control-word ] [ remote remote-ip-address ] [ full-lsp-path ] [ draft6 ] [ pipe | uniform ]

tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * normal [ no-control-word ] [ remote remote-ip-address ] [ full-lsp-path ] [ draft6 ] [ pipe | uniform ]

Parameters

Parameter Description Value
pw-type Specifies the PW type. Currently, PWs of the following types are supported: ethernet, vlan, and ip-interworking.
pw-id Specifies the local PW ID. The value is an integer that ranges from 1 to 4294967295.
-exp exp-value Specifies the EXP value in the outer label of an MPLS Echo Request packet. The default value is 0.
NOTE:

If DSCP priority has been configured by running the set priority command, the exp-value parameter does not take effect.

The value is an integer that ranges from 0 to 7.
-f first-ttl Specifies the initial Time-to-Live (TTL). The value is an integer that ranges from 1 to 255, and must be smaller than the value of max-ttl. The default value is 1.
-m max-ttl Specifies the maximum TTL. The value is an integer that ranges from 1 to 255, and must be larger than the value of first-ttl. The default value is 30.
-r reply-mode Specifies the mode in which the peer returns MPLS Echo Reply packets.
  • 1: No MPLS Echo Reply packet is returned.
  • 2: The MPLS Echo Reply packet is encapsulated in IPv4/IPv6 UDP packets.
  • 3: MPLS Echo Reply packets are encapsulated in IPv4/IPv6 /IPv6 UDP packets carrying the Router Alert option.
  • 4: MPLS Echo Reply packets are returned through the control channel of the application plane.
The value is an integer that ranges from 1 to 4.
-t timeout-value Specifies the timeout interval of an MPLS Echo Reply packet. The value is an integer that ranges from 0 to 65535, in milliseconds. The default value is 5.
control-word Indicates that the control word is encapsulated in the MPLS Echo Request packet. -
label-alert Indicates that the router alert label is encapsulated in the MPLS Echo Request packet. -
no-control-word Indicates that the control word is not encapsulated in the MPLS Echo Request packet. -
normal Indicates the normal mode where the router alert label and control word are not encapsulated in the MPLS Echo Request packet. -
remote Specifies information about the PW on the remote PE. -
remote-ip-address Specifies the remote IP address. By default, the system searches for the IP address of the next hop based on the PW on the local PE. If label-alert is configured, you can specify the IP address of any switching node or the termination node. -
remote-pw-id Specifies the ID of the remote PW. By default, the ID of the local PW is used. If the tracert operation is performed in control word mode for a multi-segment PW, the IP address of the termination node must be specified. -
ptn-mode Specifies the PTN mode. In a multi-segment PW scenario, this parameter is indicated that trace VC packets are replied. You need to run the lspv pw reply ptn-mode command on both the SPE and TPE. -
full-lsp-path Displays the responses from all nodes along the LSP that the MPLS Echo Request packets pass through. If this parameter is not specified, only the responses from the PW nodes along the LSP are displayed. -
pipe Specifies the pipe mode. When a probe packet passes through the MPLS domain, the entire domain is regarded as one hop and the IP TTL of the probe packet is reduced by one on both the ingress and egress. -
uniform Specifies the uniform mode. The IP TTL of the probe packet is reduced by one each time it passes through one hop in the MPLS domain. -
draft6 Specifies the version of the tracert vc command. If this parameter is specified, the tracert operation is performed according to "draft-ietf-mpls-lsp-ping-06". By default, the tracert operation is performed according to RFC 4379.
NOTE:

Tracert VC based on draft6 is applied only to VLL over LDP scenarios.

-

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

If a fault occurs on the PW, the ping vc command can be used to check the connectivity of the network, and the tracert vc command can be used to locate the fault and provide reference for fault diagnosis. If a PW is Up, the ping vc command can be used to locate the fault on the PW. For example, a forwarding entry is abnormally lost or incorrect. If a PW is down, the tracert vc command must be used to locate the faulty node on the PW.

The tracert vc command applies to the following networking scenarios:
  • PWE3 VLL PW tracert

    In PWE3 VLL networking, PW tracert can help you obtain information about SPEs and Ps along the path that the message travels from the source to the destination, check the connectivity of the PW, and locate the fault of the PW.

    A PWE3 VLL PW tracert can be performed in control word mode, label alert mode, or TTL mode. The default mode is label alert. The TTL mode and control word mode are mutually exclusive.

    To detect faults on a VLL network with control word enabled, run the tracert vc pw-type pw-id control-word command.

    To encapsulate packets with the router alert label and detect faults on a VLL network, run the tracert vc pw-type pw-id label-alert command.

    If control word is not enabled and packets are not encapsulated with the router alert label, to detect faults on a VLL network, run the tracert vc pw-type pw-id command.

    The TTL value of the PW Tracert Request message is incremented by 1 each time. Each time the transit node (P) receives an Echo Request message after the TTL value of the message expires, it sends the Echo Request message to the LSPV module. Then the transit node returns an Echo Reply message carrying the next hop information.

Prerequisite

  • The UDP module of each node works properly; otherwise, the tracert operation will fail.
  • The MPLS module has been enabled on each node and works properly.
  • The ICMP module of each node works properly; otherwise, " * * * " is displayed.

Procedure

The execution process of the tracert vc command is as follows:

  1. The source sends an MPLS Echo Request packet with the TTL being 1. After the TTL times out, the first hop sends an MPLS Echo Reply packet to the source.
  2. The source sends an MPLS Echo Request packet with the TTL being 2. After the TTL times out, the second hop sends an MPLS Echo Reply packet to the source.
  3. The source sends an MPLS Echo Request packet with the TTL being 3. After the TTL times out, the third hop sends an MPLS Echo Reply packet to the source.
  4. The preceding steps continue until the MPLS Echo Request packet reaches the destination.

When the device on each hop receives the MPLS Echo Request packet, it will respond with an MPLS Echo Reply packet, indicating that the tracert test ends. In the command output information of the source device, you can view the path that the packet passes through.

Configuration Impact

In control word mode, if a transit node receives an MPLS Echo Request packet whose TTL does not time out, it does not send the packet to the CPU. In this mode, the source obtains only a little PW information and cannot obtain information about the downstream devices of the transit node. This mode is recommended when the traffic volume is heavy.

In router alert mode, a transit node sends the received MPLS Echo Request packets to the CPU. In this mode, the source obtains a lot of PW information; therefore, device performance is affected when the traffic volume is heavy. This mode is recommended when the traffic volume is light.

Information specified by remote is encapsulated in MPLS Echo Request packets. The PW can be searched on the remote PE based on the specified information. By default, information contained in the MPLS Echo Request packets is about the PW on the local PE. This applies to single-segment PWs.

Precautions

  • When the probe packet reaches the egress or the TTL reaches the upper threshold, the PW tracert is terminated.
  • You can press Ctrl + C to terminate the execution of the tracert vc command.

When a PE is single-homed to an SPE and two multi-segment PWs are deployed for PW redundancy, end-to-end detection cannot be performed for the secondary PW if services are transmitted over the primary PW. If services are transmitted over the secondary PW, the primary PW can only be detected segment by segment.

Example

# Trace a multi-segment PW. The encapsulation type, local PW ID, and remote PW ID of the PW is ethernet, 100, and 200.

<HUAWEI> tracert vc ethernet 100 control-word remote 200 draft6 full-lsp-path
  TTL   Replier            Time    Type      Downstream
  0                                Ingress   10.1.1.2/[1025 ]
  1     10.1.1.2           230 ms  Transit   10.2.1.2/[3 ]
  2     10.2.1.2           230 ms  Transit   10.3.1.2/[3 ]
  3     10.3.1.2           100 ms  Transit   10.4.1.2/[3 ]
  4     10.4.1.2           150 ms  Egress
Table 10-56  Description of the tracert vc command output

Item

Description

TTL

TTL value in an Echo Request packet. It represents the number of hops along the path through which an Echo Request packet passes.

Replier

IP address of the node sending MPLS Echo Reply packets.

Time

Time when the packet is processed.

Type

Node type. The value can be:

  • Ingress: indicates an ingress node.
  • Transit: indicates a transit node.
  • Egress: indicates an egress node.

Downstream

IP address and label of the downstream node.

Related Topics

tracert vc vpn-instance

Function

The tracert vc vpn-instance command detects the hop-by-hop connectivity of the LSP between PEs in the Kompella networking.

Format

tracert vc -vpn-instance vpn-name local-ce-id remote-ce-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * { control-word | label-alert [ no-control-word ] | draft6 } [ full-lsp-path ]

Parameters

Parameter Description Value
-vpn-instance vpn-name Specifies the VPN instance name. The value is an existing VPN instance name.
local-ce-id Specifies the ID of the local CE. It is a decimal integer ranging from 0 to 249.
remote-ce-id Specifies the ID of the remote CE. It is a decimal integer ranging from 0 to 249.
-exp exp-value specifies value of the EXP field in an outer label in an Echo Request packet. It is a decimal integer ranging from 0 to 7.
-f first-ttl Specifies the value of the first TTL. It is a decimal integer ranging from 1 to 255 and must be smaller than max-ttl. By default, the value is 1.
-m max-ttl Specifies the value of the maximum TTL. It is a decimal integer ranging from 1 to 255 and must be larger than the value of first-ttl. By default, the value is 30.
-r reply-mode Specifies the mode in which the peer responds to the Echo Reply packet. The meaning of each value is as follows:
  • 1: indicates no reply.
  • 2: indicates a reply with an IPv4 or IPv6 UDP datagram.
  • 3: indicates a reply with an IPv4 or IPv6 datagram carrying an MPLS router alert label.
  • 4: indicates a reply through the control channel of the application plane.
It is a decimal integer ranging from 1 to 4.
-t timeout-value Specifies the timeout period for waiting for MPLS Echo Reply packets. The value is a decimal integer ranging from 0 ms to 65535 ms. By default, the value is 5.
control-word Indicates the control word encapsulated in packets. -
label-alert Indicates the router alert label encapsulated in packets. -
no-control-word Disables the control word mode. -
draft6 Indicates the version of the command. If the parameter is specified, the command is implemented according to draft-ietf-mpls-lsp-ping-06. By default, the command is implemented according to RFC 4379. -
full-lsp-path Displays information about responses of all nodes along the LSP that an Echo Request packet passes. If this parameter is not specified, only the response of each PW node along the LSP is displayed. -

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

In a Kompella networking, if any node on the backbone network fails, use this command to identify the faulty node.

The tracert vc vpn-instance command applies to the following networking scenarios:
  • Kompella VLL PW tracert

    In Kompella VLL networking, you can start a VLL PW tracert to check PW connectivity.

    A VLL PW tracert can help you obtain information about PEs and Ps along the path that the message travels from the source to the destination, check the connectivity of the Layer 2 forwarding link, and locate faults of the PW.

    Different from the PWE3 VLL PW tracert, the Kompella VLL tracert does not need the PW template and can be performed in control word mode or label alert mode. The default mode is label alert. Like PWE3 VLL PW tracert, Kompella VLL tracert can be enabled using a command.

Precautions

If the control word is encapsulated in MPLS echo request packets on a multi-hop PW, the packets on the switch node are not sent to the CPU for processing until the TTL times out. In control word mode, the source obtains less PW information, but the performance of the node is seldom affected and meanwhile the source is unaware of the downstream information about this transit node. When there are a large number of packets, the control word mode is recommended.

After the router alert is encapsulated, in the case of a multi-hop PW, on the transit node, the Echo Request packet is sent to the CPU. In Label Alert mode, the source obtains more PW information. However, when a large number of packets are transmitted, the performance of the node degrades severely. The Label Alert mode is recommended when a small number of packets are transmitted on the network.

Example

# Perform the Tracert test on the VPN instance named vpn1 in label-alert mode.

<HUAWEI> tracert vc -vpn-instance vpn1 1 2 label-alert full-lsp-path
  TTL   Replier            Time    Type      Downstream
  0                                Ingress   20.1.1.1/[21505 1026 ]
  1     20.1.1.1           60 ms   Transit   30.1.1.1/[1026 ]
  2     30.1.1.1           50 ms   Transit   40.1.1.1/[3 ]
  3     4.4.4.4            70 ms   Egress      
Table 10-57  Description of the tracert vc vpn-instance command output

Item

Description

TTL

TTL of MPLS Echo Request packets, indicating the number of hops along the tunnel that the packets pass.

Replier

Source IP address in an Echo Reply packet.

Time

How long a packet is processed

Type

Type of a node:
  • Ingress

  • Transit

  • Egress

Downstream

Address and label of the downstream node

vpn-target (MPLS-L2VPN instance view)

Function

The vpn-target command associates a particular VPN with one or more VPN targets (VTs).

The undo vpn-target command deletes the VTs associated with a particular VPN.

By default, no VPN target is specified for an L2VPN.

Format

vpn-target vpn-target &<1-16> [ both | export-extcommunity | import-extcommunity ]

undo vpn-target { all | vpn-target &<1-16> [ both | export-extcommunity | import-extcommunity ] }

Parameters

Parameter Description Value
vpn-target Adds a VPN target to the VPN. A VPN target can use any of the following formats:
  • 16-bit AS number:32-bit user-defined number

    For example, 1:3.

    An AS number ranges from 0 to 65535. A user-defined number ranges from 0 to 4294967295. The AS number and the user-defined number cannot be 0s at the same time. That is, a VPN target cannot be 0:0.

  • 32-bit IP address:16-bit user-defined number

    For example, 192.168.122.15:1.

    An IP address ranges from 0.0.0.0 to 255.255.255.255. A user-defined number ranges from 0 to 65535.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPN target cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPN target cannot be 0.0:0.

-
import-extcommunity Receives routing information carrying specified extended community attributes. -
export-extcommunity Specifies the extended community attributes carried in routing information to be sent. -
both Specifies the extended community attributes of the received and the sent routing information. -
all Deletes all the VTs. -

Views

MPLS-L2VPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, you can use this command to set the VPN target attribute for an L2VPN instance. The VPN target is used to set up a remote PW.

Precautions

If you do not specify any keywords, both is used by default.

Before configuring a VPN target, configure the Route Distinguisher (RD) for the L2VPN instance.

Example

# Configure the VTs for an L2VPN named vpn1.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn1] vpn-target 100:1
[HUAWEI-mpls-l2vpn-vpn1] vpn-target 1:1 2:2 export-extcommunity
[HUAWEI-mpls-l2vpn-vpn1] vpn-target 1.2.3.4:11 12:12 import-extcommunity

# Delete the VT of vpn1.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn1] undo vpn-target 12:12 import-extcommunity

# Delete all the VTs of vpn1.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn1] undo vpn-target all
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 117273

Downloads: 83

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next