To forward packets through a multi-segment PW, configure PW switching so that PW labels can be exchanged. PW switching must be configured on the Superstratum PE (SPE) where a large number of MPLS LDP sessions can be established.
In the following cases, PW switching is required:
Two PEs are in different ASs, and no signaling connection or tunnel can be set up between the two PEs.
Two PEs use different signaling.
If the access device can run MPLS but does not support a large number of LDP sessions, the User Facing Provider Edge (UFPE) can be used as a UPE and the SPE as a node for switching LDP sessions. The SPE is similar to a signaling reflector.
PW switching supports three modes: static mode, dynamic mode, and mixed mode:
Before configuring multi-segment PW switching, complete the following tasks:
Enable MPLS L2VPN on PEs.
Configure a static PW on UPEs if PW switching is performed between two static PWs. For details, see Configuring a Static PW.
Configure a dynamic PW on UPEs if PW switching is performed between two dynamic PWs. For details, see Configuring a Dynamic PW.
Perform the following operations on the SPE.
Perform the following operations on the SPE.
When you configure mixed PW switching, ip-address vc-id before between specifies the VC ID of a dynamic PW and ip-address vc-id after between specifies the VC ID of a static PW. The two values cannot be interchanged.
Perform the following operations on the SPE.