The encapsulation vpls-family-compatible command configures a Huawei device to use encapsulation type 4 or 5 for BGP VPLS packets, depending on whether the user access mode is VLAN or Ethernet.
The undo encapsulation vpls-family-compatible command restores the default configuration.
By default, a Huawei device uses the encapsulation type defined in relevant standards for BGP VPLS packets.
Usage Scenario
By default, Huawei VRPv8 devices implement BGP VPLS based on related standards, and the encapsulation type of VPLS packets is 19. Huawei VRPv5 devices implement BGP VPLS based on Huawei-proprietary encapsulation types. In VLAN mode, the encapsulation type is 4. In Ethernet mode, the encapsulation type is 5. To enable a Huawei VRPv8 device to communicate with a Huawei VRPv5 device, run the encapsulation vpls-family-compatible command to convert the encapsulation type.
When a device sends packets, you can run the encapsulation vpls-family-compatible command to change the encapsulation type from 19 to 4 or 5. When the device receives packets, it can automatically convert the encapsulation type without command control. The packet encapsulation mode on an AC interface is determined by the user access mode. User access modes are classified into VLAN access and Ethernet access.Prerequisites
The VSI-BGP view has been displayed using the pwsignal bgp command.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi bgp1 auto [*HUAWEI-vsi-bgp1] pwsignal bgp [*HUAWEI-vsi-bgp1-bgp] encapsulation vpls-family-compatible