mpls l2vc (L2VE interface view)

Function

The mpls l2vc command creates an LDP VPWS connection.

The undo mpls l2vc command deletes an LDP VPWS connection.

The mpls l2vc command creates an LDP VPWS connection.

The undo mpls l2vc command deletes an LDP VPWS connection.

The mpls l2vc admin command creates an mPW.

The undo mpls l2vc admin command deletes an mPW.

By default, no VPWS connection is created.

This command varies in transport and router modes. For detailed differences, see Differences Between Commands in Transport and Router Modes. This topic describes the command configuration in router mode.

Format

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

mpls l2vc instance-name instance-name { ip-address | pw-template pw-template-name } * vc-id [ [ control-word | no-control-word ] | [ raw | tagged | ip-interworking | ip-layer2 ] | tunnel-policy policy-name [ endpoint endpoint-address color color-value ] | ignore-standby-state ] *

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

undo mpls l2vc [ secondary | bypass ]

undo mpls l2vc instance-name instance-name { ip-address | pw-template pw-template-name } * vc-id [ [ control-word | no-control-word ] | [ raw | tagged | ip-interworking | ip-layer2 ] | tunnel-policy policy-name [ endpoint endpoint-address color color-value ] | ignore-standby-state ] *

Parameters

Parameter Description Value
ip-address

Specifies the IP address of the remote peer on a PW.

The value is usually the LSR ID of the remote peer.

pw-template pw-template-name

Specifies the name of a PW template.

You can set attributes for a PW template, including the remote peer, control word, MTU, VCCV capability, and tunnel policy. When configuring an LDP VPWS connection, you can directly apply the PW template rather than specify attributes for the PW in explicit mode. After setting attributes for a PW template, you can make desired changes whenever needed and run the reset pw command for the modified PW template to take effect. You need to define the name and attributes of the PW template in the system view before applying a PW template.

If a PW attribute, such as the remote peer, tunnel policy, or control word, is specified in the mpls l2vc command, the same PW attribute configured in the PW template does not take effect.

The value is a string of 1 to 19 case-sensitive characters, spaces not supported.

The character string can contain spaces if it is enclosed with double quotation marks (").

vc-id

Specifies a 32-bit VC ID that is locally unique.

A combination of the VC ID and VC type uniquely identifies a VC.

This parameter cannot be modified. To change the VC ID, you need to delete the configured one and reconfigure it.

The value is a decimal integer ranging from 1 to 4294967295.

control-word

Enables the control word function.

The control word carries the sequence number and Layer 2 header control information. The control word can be filled in a packet to prevent the packet from being too short.

-

no-control-word

Disables the control word function.

-

raw

Specifies that user packets do not carry P-Tags when being transmitted over a PW. This parameter applies only to Ethernet links.

-

tagged

Specifies that user packets carry P-Tags when being transmitted over a PW. This parameter is available only for Ethernet links.

-

ip-interworking

Enables IP interworking for an LDP PW between Huawei devices. ip-interworking is required for IP interworking between Huawei devices.

-

ip-layer2

Enables IP interworking between a Huawei device and a non-Huawei device. ip-layer2 is required for IP interworking between a Huawei device and a non-Huawei device.

-

tunnel-policy policy-name

Specifies the name of a tunnel policy.

If no tunnel policy is specified, the default tunnel policy is adopted. The default tunnel policy for the VPWS connection uses LSPs and only one LSP is used for load balancing. If a tunnel policy name is specified but the tunnel policy is not configured, the default tunnel policy is adopted. You need to define the name and attributes of the tunnel policy in the system view before applying a tunnel policy.

The value is a string of 1 to 39 case-sensitive characters, spaces not supported. If the string is enclosed in quotation marks, the string can contain spaces.

endpoint endpoint-address

Specifies the destination address of an SRv6 TE Policy.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

color color-value

Specifies the color value of an SRv6 TE Policy.

The value is an integer ranging from 0 to 4294967295.

secondary

Configures the VC as a secondary VC. If secondary is not specified, the new VC is a primary VC. The secondary VC can be configured only if the primary VC exists on the local device.

-

bypass

Configures the VC as a bypass VC. The bypass VC must have the same encapsulation type as the primary VC.

-

ignore-standby-state

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

-

instance-name instance-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 31 case-sensitive characters, spaces not supported.

The string can contain spaces if it is enclosed in double quotation marks (").

Views

Global VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

The VPWS network provides Layer 2 VPN services based on an MPLS network, enabling carriers to provide L2VPN services over different media, such as VLAN, Ethernet, Point-to-Point Protocol (PPP), on a unified MPLS network. The MPLS network can still provide traditional IP services, MPLS L3VPN, traffic engineering, and QoS services.

The VPWS network transparently transmits Layer 2 user data over the MPLS network. For users, the MPLS network is a Layer 2 switched network on which Layer 2 connections can be set up between nodes.

LDP VPWS uses two layers of labels. The inner label uses extended LDP as the signaling protocol to transmit Layer 2 information and VC label information.

To configure a VPWS connection that uses LDP as the signaling protocol on interfaces, run the mpls l2vc command.

  • The primary PW needs to be created before dynamic VPWS is created.
  • The secondary PW can be created to protect the primary PW. When the primary PW fails, traffic can be immediately switched to the secondary PW, preventing traffic interruption.

    The secondary PWs are used to protect the primary PW. Therefore, configure the primary PW first. Otherwise, the secondary PWs cannot be configured. PWs are deleted in reverse order. Delete the secondary PWs before deleting the primary PW.

    On the network where PW redundancy is configured, if the primary PW fails, traffic is switched to the secondary PW. If the secondary PW is in the standby state, traffic cannot be forwarded, resulting in packet loss. If ignore-standby-state is configured for the secondary PW, the secondary PW will ignore the secondary state indicated by the peer device and be always in the forwarding state, preventing packet loss during a primary/secondary PW switchover.

    To accelerate PW fault detection, BFD is generally used. When a large number of service PWs originated from the same source and destined for the same device are available, a large number of BFD sessions are required, which consumes lots of resources. To reduce the consumption of public network link bandwidths and system resources, configure an mPW that has the same source and destination as the service PWs and bind the service PWs to the mPW. This configuration allows the service PWs to track the mPW status. Therefore, a BFD session can be configured only for the mPW to detect faults. The mPW then notifies all service PWs bound to it of the status. This allows the BFD session to also monitor the service PWs.

    To create an mPW, run the mpls l2vc admin command.

Prerequisites

  • MPLS has been enabled in the system view.
  • MPLS L2VPN has been enabled in the system view.

    MPLS L2VPN has been enabled using the MPLS L2VPN command.

    A PW template has been created using the PW-template command if PW-template PW-template-name is specified in the MPLS l2vc admin command.

Configuration Impact

An interface cannot serve as a VPWS AC interface and an L3VPN AC interface at the same time. If an interface is bound to a VPWS, its Layer 3 features such as the IP address and routing protocol will not take effect. If an interface is bound to both a VPWS and an L3VPN, only the VPWS connection is available. After the VPWS connection is deleted, the L3VPN service becomes available.

Follow-up Procedure

Run the mpls l2vc track admin-vc command to bind service PWs to a created mPW.

Precautions

  • A sub-interface that is bound to a VPWS can be deleted only after it is unbound from the VPWS.
  • raw, tagged, and access-port in the mpls l2vc command are available only for Ethernet links. In addition, access-port applies only to Ethernet main interfaces.
  • In a PW redundancy scenario, configure the same parameters for the primary, secondary, and bypass PWs. A parameter inconsistency causes the secondary or bypass PW to fail to take over traffic if the primary PW fails.
  • Dynamic VCs must be configured on the PEs at both ends of a PW. When configuring a VPWS connection, note the following:
  • The peer address, destination address of the tunnel, and MPLS LSR ID of the peer PE must be the same. Otherwise, the VPWS connection cannot be set up.
  • The VC IDs of the PEs at both ends must be the same. Otherwise, the VPWS connection cannot be set up.
  • If a certain PW attribute is specified in the mpls l2vc command, the corresponding PW attribute in the PW template is invalid.
  • Control word auto-negotiation is supported only if PEs at both ends of a PW support the control word function. If either of the PEs does not support the control word function, control word auto-negotiation fails.
  • The PW dynamic BFD configuration in the interface view depends on Control Word configuration.

    Generally, an mPW is configured for the primary PW, but not for secondary PWs.

Example

# Configure a VPWS connection on GE 0/1/1.
<HUAWEI> system-view
[~HUAWEI] interface loopback 1
[*HUAWEI-Loopback1] ip address 1.1.1.1 32
[*HUAWEI-Loopback1] quit
[*HUAWEI] mpls lsr-id 1.1.1.1
[*HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface Virtual-Ethernet 0/1/16
[*HUAWEI-Virtual-Ethernet0/1/16] ve-group 1 l2-terminate
[*HUAWEI-Virtual-Ethernet0/1/16] interface Virtual-Ethernet 0/1/16.1
[*HUAWEI-Virtual-Ethernet0/1/16.1] vlan-type dot1q 1
[*HUAWEI-Virtual-Ethernet0/1/16.1] mpls l2vc 2.2.2.2 100
[*HUAWEI-Virtual-Ethernet0/1/16.1] commit
Committing......done.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >