mpls l2vpn service-name

Function

The mpls l2vpn service-name command sets the name of an L2VPN 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 31 case-sensitive characters, spaces not supported.

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

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE Layer 2 sub-interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE interface view, VE sub-interface view, XGE sub-interface view, XGE interface view, Layer 2 sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

By default, an L2VPN service is uniquely identified by a combination of the VC ID and VC type, which are hard to remember. This does not facilitate maintenance. If a service name is used to uniquely identify an L2VPN service, the name can be defined as required and the NMS operator can directly maintain the L2VPN service identified by the name on the NMS. This simplifies operation and facilitates maintenance.

Prerequisites

VPWS has been configured on a service interface.

Configuration Impact

On a 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. Otherwise, the configuration fails.

If an L2VPN service already has a name, this service name will be overwritten when a new name is configured for the L2VPN service. Therefore, you can directly configure a new service name without deleting the original one to change an L2VPN service name.

Follow-up Procedure

After a service name is configured for an L2VPN service, the NMS operator can maintain (query, modify, or delete) the L2VPN service identified by the service name on the NMS.

Precautions

  • 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 a PE, an L2VPN service name is unique.
  • The L2VPN service name is not supported for the circuit cross connect (CCC) VPWS connection.

Example

# Change an L2VPN service name from pw1 to pw2 on a service interface.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface GigabitEthernet0/1/0.1
[*HUAWEI-GigabitEthernet0/1/0.1] mpls l2vc 2.2.2.9 100
[*HUAWEI-GigabitEthernet0/1/0.1] mpls l2vpn service-name pw1
[*HUAWEI-GigabitEthernet0/1/0.1] mpls l2vpn service-name pw2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >