Creating a VSI and Configuring LDP Signaling
Context
When using LDP as the PW signaling, you must configure the VSI ID for a VSI. VSI IDs differentiate VSIs, and you can use these VSI IDs during PW signaling negotiation.
Do as follows on the PEs of the two ends of the PW:
Procedure
- Run system-view
The system view is displayed.
- Run mpls l2vpn
MPLS L2VPN is enabled and the MPLS L2VPN view is displayed.
- Run quit
Return to the system view.
- Run vsi vsi-name static
A VSI is created and the VSI view is displayed.
- Run pwsignal ldp
The PW signaling protocol is specified as LDP and the VSI-LDP view is displayed.
By default, no signaling mode is configured for a VSI.
- Run vsi-id vsi-id
The VSI ID is configured.
By default, no VSI ID is set.
NOTE:
The two ends of the VSI must agree on the same vsi-id.
The VSI exists only on the PE. One PE can have multiple VSIs. One VPLS on a PE has only one VSI.
- Run peer peer-address [ negotiation-vc-id vc-id ]
The VSI peer is configured.
By default, no peer is configured for a VSI.
- Run peer peer-address [ negotiation-vc-id vc-id ] pw pw-name
A PW is created and the VSI-LDP-PW view is displayed.
By default, no PW is created.
NOTE:
If you have created a PW, you can run the command pw pw-name to enter the VSI-LDP-PW view in the VSI-LDP view. - (Optional) Run undo interface-parameter-type vccv
The device is configured to delete the VCCV byte following the interface parameter in Mapping packets.
By default, a mapping packet carries the VCCV byte.
- Run quit
Return to the VSI-LDP view.
- (Optional) Configure common VSI parameters.
Common VSI parameters include the VSI encapsulation mode, MTU for negotiation, and VSI description.