The mpls l2vpn command creates a BGP VPWS instance and displays the MPLS-L2VPN instance view.
The undo mpls l2vpn command deletes a BGP VPWS instance, the MPLS-L2VPN instance view, and all configurations in the view.
By default, no BGP VPWS instance is created.
Parameter | Description | Value |
---|---|---|
l2vpn-name |
Specifies an MPLS L2VPN instance name. |
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 ("). |
encapsulation |
Indicates the PW encapsulation type. |
- |
ethernet |
This encapsulation type is used when Ethernet packets do not carry VLAN information. |
- |
vlan |
This encapsulation type is used when Ethernet packets carry VLAN information. |
- |
ip-interworking |
Enables static PW interworking when devices in the interworking are all provided by Huawei. |
- |
ip-layer2 |
Enables IP interworking for an LDP PW between a Huawei device and a non-Huawei device. ip-layer2 is required for IP interworking between a Huawei device and a non-Huawei device. |
- |
control-word |
Enables the control word function. |
- |
no-control-word |
Disables the control word function. |
- |
Usage Scenario
BGP VPWS is a type of L2VPN technology that uses BGP as the signaling protocol to transmit Layer 2 information and VC labels between PEs.
BGP VPWS PWs must be configured in VPN instances. To create a VPN instance, run the mpls l2vpn command.Prerequisites
MPLS L2VPN has been enabled using the mpls l2vpn command.
Follow-up Procedure
Run the route-distinguisher route-distinguisher command to configure an RD for the VPN instance.
Precautions
The encapsulation type configured using the mpls l2vpn l2vpn-name command must be the same as the encapsulation type used by the two AC interfaces. If the two AC interfaces use different encapsulation types, specify encapsulation-type as ip-interworking when running the mpls l2vpn l2vpn-name command.