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.
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 ("). |
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
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
<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