When configuring BGP VPLS to implement automatic discovery, you need to create and configure VSIs (set RDs and VPN targets of the VSIs), configure BGP, and create site connections.
Perform the following steps on PEs at both ends of a PW:
The system view is displayed.
A VSI is created and the automatic member discovery mechanism is configured.
The Kompella VPLS does not directly deal with the connection between the CEs. It numbers the CEs and creates a VSI on the PE for each CE.
The PW signaling protocol is configured as BGP and the VSI-BGP view is displayed.
The RD of the VSI is configured.
After the PW signaling protocol is configured as BGP, configure the RD to make the VSI take effect.
For a PE, different VSIs have different RDs.
For the same VSI on different PEs:
If a CE accesses two PEs, RDs of the VSI must be same.
If a CE accesses a PE, RDs of the VSI can be either the same or different.
The VPN target of the VSI is configured.
When using this command, note the mapping between the VPN target attribute at the local end and the VPN target at the remote end.
export-extcommunity of the local end must be consistent with import-extcommunity of the peer.
import-extcommunity of the local end must be consistent with export-extcommunity of the peer.
When locating a VPLS fault, you can use the remote-vpn-target refresh command to refresh the VPN target of the remote end.
The site ID is configured.
The two ends of the VSI cannot be configured with the same site ID. The value of the local site ID must be less than the sum of the site-range and default-offset of the remote end. The value of the local site ID cannot be less than the value of the default-offset of the remote end. If the range is specified, the system reserves the required labels for the VSI.
All Kompella L2VPN instances and VPLS VSI instances of one device share one label block; therefore, the sum of the ranges of all Kompella L2VPN instances and VPLS VSI instances cannot be greater than the label block. Otherwise, the system prompts that the labels cannot be obtained because the required labels exceed the upper limit. Allocation of a site ID to a VSI or creation of a CE fails.