Configuring an LDP PW

Before you configure an LDP PW, enable global and interface MPLS LDP on the PE. For information about MPLS LDP configuration, see "Configuring LDP."

To configure an LDP PW:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter cross-connect group view.

xconnect-group group-name

N/A

3. Enter cross-connect view.

connection connection-name

N/A

4. Configure an LDP PW and enter cross-connect PW view.

peer ip-address pw-id pw-id [ pw-class class-name | tunnel-policy tunnel-policy-name ] *

By default, no LDP PW is configured.

If the specified peer PE is not directly connected, the local PE automatically sends a targeted hello to create an LDP session to the peer PE and then exchanges the PW ID FEC and PW label mapping with the peer.