The mpls l2vc admin command creates an mPW.
The undo mpls l2vc admin command deletes an mPW.
By default, no mPW is created.
mpls l2vc { ip-address | pw-template pw-template-name } * vc-id { [ control-word | tunnel-policy policy-name [ endpoint endpoint-address color color-value ] ] * admin | admin [ control-word | tunnel-policy policy-name [ endpoint endpoint-address color color-value ] ] * | tunnel-policy policy-name [ endpoint endpoint-address color color-value ] admin control-word | control-word admin tunnel-policy policy-name [ endpoint endpoint-address color color-value ] }
mpls l2vc instance-name instance-name { ip-address | pw-template pw-template-name } * vc-id { [ control-word | tunnel-policy policy-name [ endpoint endpoint-address color color-value ] ] * admin | admin [ control-word | tunnel-policy policy-name [ endpoint endpoint-address color color-value ] ] * | tunnel-policy policy-name [ endpoint endpoint-address color color-value ] admin control-word | control-word admin tunnel-policy policy-name [ endpoint endpoint-address color color-value ] }
undo mpls l2vc [ { ip-address | pw-template pw-template-name } * vc-id [ tunnel-policy policy-name [ endpoint endpoint-address color color-value ] | control-word ] * [ admin ] ]
undo mpls l2vc instance-name instance-name [ { ip-address | pw-template pw-template-name } * vc-id [ tunnel-policy policy-name [ endpoint endpoint-address color color-value ] | control-word ] * [ admin ] ]
Parameter | Description | Value |
---|---|---|
ip-address |
Specifies the peer IP address of an mPW. The peer IP address is generally the LSR ID of the peer device. |
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. The string can contain spaces if it is enclosed in double quotation marks ("). |
vc-id |
Specifies a VC ID. A combination of the VC ID and VC type uniquely identifies a VC. VC IDs cannot be changed after being configured. You can only delete the VC and reconfigure one with a different VC ID. |
The value is an integer ranging from 1 to 4294967295. |
control-word |
Enables the control word function. The control word carries the sequence number for forwarding packets, pads the packets to prevent the packets from being too short, and carries Layer 2 header control information. |
- |
tunnel-policy policy-name |
Specifies the name of a tunnel policy.
Before applying a tunnel policy, set the tunnel policy name and attributes in the system view. |
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. |
endpoint endpoint-address |
Specifies the endpoint 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 that ranges from 0 to 4294967295. |
admin |
Indicates the mPW. |
- |
instance-name instance-name |
Specifies the name of a VPN instance. |
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 ("). |
Usage Scenario
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 L2VPN has been enabled using the mpls l2vpn command.
A PW template has been created using the pw-template command if pw-template-name is specified in the mpls l2vc admin command.Follow-up Procedure
Run the mpls l2vc track admin-vc command to bind service PWs to a created mPW.
Precautions
Generally, an mPW is configured for the primary PW, but not for secondary PWs.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] pw-template pw1 [*HUAWEI-pw-template-pw1] quit [*HUAWEI] interface loopback 1 [*HUAWEI-Loopback1] mpls l2vc 2.2.2.2 pw-template pw1 2 admin
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] interface loopback 0 [*HUAWEI-Loopback0] mpls l2vc 1.1.1.1 1 admin