< Home

mpls l2vc admin

Function

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.

Format

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 ] * ]

Parameters

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.
  • If the name of the tunnel policy is specified but the tunnel policy is not configured, the default tunnel policy is used.
  • If the name of the tunnel policy is not specified, the default tunnel policy is used. The LSP tunnel is preferred and only one LSP is used for load balancing in the default 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. -

Views

Loopback interface view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Create an mPW on loopback 0 with the remote device LSR ID 1.1.1.1 and VC ID 1.

<HUAWEI> system-view
[HUAWEI] interface loopback 0
[HUAWEI-Loopback0] mpls l2vc 1.1.1.1 1 admin
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >