Configuring VSI IDs and peer IP addresses are mandatory for LDP VPLS services. VSI IDs are used to identify VSIs in PW signaling negotiation. Perform the following steps on the PEs at both ends of a PW.
The system view is displayed.
A VSI is created, and the VSI view is displayed.
The VSI name must be unique on a device
A description is configured for the VSI.
An encapsulation mode is configured for the VSI.
VSIs have two encapsulation modes: Ethernet and VLAN. On the public network, a packet encapsulated in Ethernet mode does not carry a VLAN tag, and a packet encapsulated in VLAN mode carries a VLAN tag.
The two ends of a PW must be configured with the same encapsulation mode.
A tunnel policy is applied to the VSI.
If you do not use tnl-policy policy-name to specify a tunnel policy when configuring the VSI peer in Step 9, run this command to apply a public tunnel policy to the VSI.
The tunnel policy specified during VSI peer configuration takes precedence over the tunnel policy applied to the VSI view. If tunnel policies are configured in both manners, only the tunnel policy specified during VSI peer configuration takes effect.
The MTU of the VSI is configured for VPLS negotiation.
If the MTUs of the same VSI on two PEs are different, the two PEs may fail to establish a connection.
LDP is configured as the signaling protocol for the VSI, and the VSI LDP view is displayed.
The control word function is enabled for all PWs in the VSI.
A VSI ID is configured.
The VSI IDs of the two ends of a PW must be the same; otherwise, the VSI cannot be created. If the VSI IDs of the two ends of a PW are different, specify negotiation-vc-id vc-id for PW negotiation.
VSIs exist only on PEs. A PE can be configured with multiple VSIs, but the ID of each VSI must be unique on a PE.
The current service VSI is configured as the mVSI.
A VSI peer is configured.
peer-address specifies the IP address of the peer, usually referring to the LSR ID of the peer.
Generally, the VSI IDs on both ends of a VSI must be the same. If they are different, specify negotiation-vc-id vc-id to re-specify the VC ID used for parameter negotiation.
If a tunnel policy is configured, you can use tnl-policy policy-name to reference the tunnel policy when configuring the peer.
On a network where PW redundancy is configured, if the primary PW fails, traffic will be switched to the secondary PW for transmission. Normally, if the secondary PW is in standby state, it cannot forward traffic and data packets may be lost. If ignore-standby-state is configured for the secondary PW, the secondary PW will ignore the secondary state indicated by the peer device and be always in the forwarding state, preventing packet loss during a primary/secondary PW switchover.
The VSI-LDP-PW view is displayed.
The control word function is enabled for the PW.
The VCCV byte (an interface parameter) is deleted from the Label Mapping message.
STP loopback detection is disabled for the PW.
The VPLS PW is configured not to clear local MAC addresses when it receives the remote status code of 20.
The configuration is committed.
If the specified VSI is an mVSI, you must run the track admin-vsi vsi-name command in the service VSI view to bind the service VSI to the mVSI.