The mpls l2vc admin command creates a management PW (mPW).
The undo mpls l2vc admin command deletes an mPW.
By default, no mPW is configured.
mpls l2vc { ip-address | pw-template pw-template-name } * vc-id [ tunnel-policy policy-name | control-word | admin ] *
undo mpls l2vc [ { ip-address | pw-template pw-template-name } * vc-id [ tunnel-policy policy-name | control-word | admin ] * ]
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the IP address of the mPW peer, which is usually the LSR ID of the remote 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. When double quotation marks are used around the string, spaces are allowed in the string. |
vc-id | Specifies a VC ID. The VC ID must be unique on the local device, and identifies a VC together with the VC type. After a VC ID is configured, it cannot be modified. To modify a VC ID, delete the VC and configure it again. The VC IDs of the primary VC, secondary VC, and bypass VC must be different. |
The value is an integer that ranges from 1 to 4294967295. |
tunnel-policy policy-name | Specifies the name of a tunnel policy.
NOTE:
Before importing a tunnel policy, define the name and attribute of the tunnel policy in the system view first. |
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 | Enables the control word function. After the control word function is enabled, the device processes the Sequence Number, Length, and Layer-2 PDU fields in the packets. |
- |
admin | Designates the created PW as an mPW. | - |
Usage Scenario
BFD is often configured for PWs to quickly detect PW faults. If there are a large number of service PWs with the same source and destination, you can configure mPWs with the same source and destination as those of the service PWs and associate the service PWs with the mPWs. By tracking the status of the mPWs, BFD can quickly detect faults on service PWs associated with the mPWs. BFD does not need to be configured for service PWs. This method reduces the number of BFD sessions and saves system resources and public network link bandwidth.
You can run the mpls l2vc admin command to create an mPW.
Prerequisites
MPLS L2VPN has been enabled using the mpls l2vpn command.
If pw-template pw-template-name is specified, a PW template has been created using the pw-template command.
Follow-up Procedure
Run the mpls l2vc track admin-vc command to associate service PWs with the mPWs.
Precautions
Generally, an mPW is configured on the primary PW path but not the secondary PW path.