This section describes how to associate an L2VE interface with a VPWS.
The system view is displayed.
The MPLS-L2VPN instance view is displayed.
Return to the system view.
The L2VE sub-interface view is displayed.
A VLAN ID is configured for the L2VE sub-interface.
Return to the system view.
A local CCC is configured.
In a local CCC accessing L3VPN scenario, interface interface-type1 interface-number1 refers to the interface connecting the PE to the CE, and the outbound interface is an L2VE sub-interface.
This command applies only to homogeneous local CCCs.
The configuration is committed.
The system view is displayed.
The MPLS-L2VPN instance view is displayed.
Return to the system view.
The L2VE sub-interface view is displayed.
Currently, only an L2VE sub-interface can be associated with an L2VPN. The VC type of the LDP VPWS for the VE sub-interface is VLAN.
A VLAN ID is configured for the L2VE sub-interface.
An LDP VPWS is created.
If the AC interface on the peer PE is an Ethernet sub-interface, configure tagged to change the local VC type to VLAN, or configure raw on the Ethernet sub-interface of the peer PE to change the peer VC type to Ethernet. The VC types for PEs at both ends of the VPWS must be consistent.
The configuration is committed.
The system view is displayed.
The MPLS-L2VPN view is displayed.
Return to the system view.
An MPLS L2VPN instance is created, and the MPLS-L2VPN instance view is displayed.
If heterogeneous interworking is required, specify encapsulation-type as ip-interworking for successful PW establishment.
An RD is configured for the L2VPN instance.
VPN targets are configured for the L2VPN instance.
A CE is created in the L2VPN instance.
A BGP VPWS connection is established.
The configuration is committed.