< Home

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.

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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >