If AC types at the two ends of a VPWS PW are different, configure VPWS IP interworking for the two CEs to communicate.
Determine which configuration procedure to use based on the following guidelines:
If the two CEs use non-Ethernet link types, perform Steps 1 to 8 and Step 11.
If one of the two CEs uses the Ethernet or VLAN link type, performing Steps 9 to 11 is also required on the local PE.
If the PE has not learned the MAC address of the local CE (neither dynamically learned nor statically configured) and the broadcast mode is not enabled, the PE will discard all the IP packets received from the remote PE. To prevent this situation, configure the IP or MAC address of the local CE on the local PE, and configure an interface IP address of the remote CE on the remote PE.
Perform the following configurations on the endpoint PEs of a PW.
The system view is displayed.
MPLS L2VPN is enabled.
Return to the system view.
The AC interface view is displayed.
Ethernet interface:
mpls l2vc { ip-address | pw-template template-name } * vc-id [ tunnel-policy policy-name [ endpoint endpoint-address color color-value ] | [ control-word | no-control-word ] | [ raw | tagged | ip-layer2 | ip-interworking ] | access-port | ignore-standby-state ] *
The VCCV byte (following the interface parameter) is deleted from the Label Mapping message.
Run this command if LDP VPWS is configured for a device running VRP V800R005 or later and this device communicates with another device running VRP V300R001 or any branch version of VRP V300R001.
An L2VPN service name is specified. The L2VPN service can then be maintained through an NMS based on the specified name.
An Ethernet interface MAC address is configured for each local CE. You can also run the local-ce ip ip-address command to configure an Ethernet interface IP address for each local CE.
If the Ethernet interface MAC addresses of local CEs are configured, the PE uses the configured MAC addresses as the destination MAC addresses when sending IP packets to local CEs.
If the Ethernet interface IP addresses of local CEs are configured, if the PE can find neither statically configured nor dynamically learned MAC addresses of local CEs, the PE uses the configured IP addresses as the destination IP addresses to send ARP Request packets to local CEs.
The PE is configured to use a broadcast address as the destination MAC address to send packets to local CEs.
If neither command in the preceding step is run, perform this step for the PE to use a broadcast address as the destination MAC address to send packets to local CEs.
The IP address of a remote CE relayed by the specified interface is configured.
In VPWS IP interworking, if multiple PWs are established on sub-interfaces of the PE, configure this command on each sub-interface to specify the IP address of the remote CE relayed by each sub-interface. This configuration is necessary for P2MP communication between CEs.
The configuration is committed.
If the VLAN ID of a CE interface connected to the PE changes or a CE uses another interface to connect to the PE, run the reset local-ce mac [ interface-type interface-number ] command in the user view to clear MAC address and VLAN ID information, so that the PE can re-learn interface information about the CE.