Configuring BFD for a PW

Follow these steps to configure BFD for a PW:

  1. Enable MPLS BFD.

  2. Create a PW class, and configure BFD for PW connectivity verification in PW class view.

  3. Create the PW, and reference the PW class created in the previous step for the PW.

After you complete the previous configurations, whether BFD is used to verify PW connectivity, which encapsulation type is used for the BFD packets, and which CC type is used are determined by the configurations on both ends of the PW.

Configuring BFD for an MPLS L2VPN PW

Perform this task to use BFD to verify the connectivity of a static PW or an LDP PW of MPLS L2VPN:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable MPLS BFD.

mpls bfd enable

By default, MPLS BFD is disabled.

3. Create a PW class and enter PW class view.

pw-class class-name

By default, no PW class is created.

To use BFD to verify connectivity of a PW, you must create a PW class for the PW and configure VCCV settings in PW class view.

4. Use BFD to verify PW connectivity.

vccv bfd [ template template-name ]

By default, BFD is not used to verify PW connectivity.

5. Specify the VCCV CC type.

vccv cc router-alert

By default, no VCCV CC type is specified.

6. Return to system view.

quit

N/A

7. Enter cross-connect group view.

xconnect-group group-name

N/A

8. Enter cross-connect view.

connection connection-name

N/A

9. Configure a PW, specify the created PW class for it, and enter PW view.

peer ip-address pw-id pw-id [ in-label label-value out-label label-value ] pw-class class-name [ tunnel-policy tunnel-policy-name ]

By default, no PW is configured.

10. (Optional.) Configure the local and remote discriminators for the BFD session used to verify PW connectivity.

bfd discriminator local local-id remote remote-id

By default, no local and remote discriminators are configured.

Make sure the local discriminator and remote discriminator configured on the local PE are the same as the remote discriminator and local discriminator configured on the remote PE, respectively.

11. (Optional.) Configure a backup PW, specify the PW class for the backup PW, and enter backup PW view.

backup-peer ip-address pw-id pw-id [ in-label label-value out-label label-value ] pw-class class-name [ tunnel-policy tunnel-policy-name ]

By default, no backup PW is configured.

12. (Optional.) Configure the local and remote discriminators for the BFD session used to verify the connectivity of the backup PW.

bfd discriminator local local-id remote remote-id

By default, no local and remote discriminators are configured.

Make sure the local discriminator and remote discriminator configured on the local PE are the same as the remote discriminator and local discriminator configured on the remote PE, respectively.

Configuring BFD for a VPLS static PW

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable MPLS BFD.

mpls bfd enable

By default, MPLS BFD is disabled.

3. Create a PW class and enter PW class view.

pw-class class-name

By default, no PW class is created.

To use BFD to verify connectivity of a PW, you must create a PW class for the PW and configure VCCV settings in PW class view.

4. Use BFD to verify PW connectivity.

vccv bfd [ template template-name ]

By default, BFD is not used to verify PW connectivity.

5. Specify the VCCV CC type.

vccv cc router-alert

By default, no VCCV CC type is specified.

6. Return to system view.

quit

N/A

7. Enter VSI view.

vsi vsi-name [ hub-spoke ]

N/A

8. Configure the VSI to establish static PWs and enter VSI static view.

pwsignaling static

N/A

9. Configure a VPLS PW, specify the created PW class for it, and enter VSI static PW view.

peer ip-address pw-id pw-id in-label label-value out-label label-value pw-class class-name [ hub | no-split-horizon | tunnel-policy tunnel-policy-name ] *

By default, no VPLS PW is configured.

10. (Optional.) Configure the local and remote discriminators for the BFD session used to verify PW connectivity.

bfd discriminator local local-id remote remote-id

By default, no local and remote discriminators are configured.

Make sure the local discriminator and remote discriminator configured on the local PE are the same as the remote discriminator and local discriminator configured on the remote PE, respectively.

11. (Optional.) Configure a static backup PW, specify the PW class for the backup PW, and enter VSI static backup PW view.

backup-peer ip-address pw-id pw-id in-label label-value out-label label-value pw-class class-name [ tunnel-policy tunnel-policy-name ]

By default, no backup VPLS PW is configured.

12. (Optional.) Configure the local and remote discriminators for the BFD session used to verify the connectivity of the backup PW.

bfd discriminator local local-id remote remote-id

By default, no local and remote discriminators are configured.

Make sure the local discriminator and remote discriminator configured on the local PE are the same as the remote discriminator and local discriminator configured on the remote PE, respectively.

Configuring BFD for a VPLS LDP PW

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable MPLS BFD.

mpls bfd enable

By default, MPLS BFD is disabled.

3. Create a PW class and enter PW class view.

pw-class class-name

By default, no PW class is created.

To use BFD to verify connectivity of a PW, you must create a PW class for the PW and configure VCCV settings in PW class view.

4. Use BFD to verify PW connectivity.

vccv bfd [ template template-name ]

By default, BFD is not used to verify PW connectivity.

5. Specify the VCCV CC type.

vccv cc router-alert

By default, no VCCV CC type is specified.

6. Return to system view.

quit

N/A

7. Enter VSI view.

vsi vsi-name [ hub-spoke ]

N/A

8. Configure the VSI to establish PWs using LDP and enter VSI LDP view.

pwsignaling ldp

N/A

9. Configure a VPLS PW, specify the created PW class for it, and enter VSI LDP PW view.

peer ip-address pw-id pw-id pw-class class-name [ hub | no-split-horizon | tnl-policy tunnel-policy-name ] *

By default, no VPLS PW is configured.

10. (Optional.) Configure the local and remote discriminators for the BFD session used to verify PW connectivity.

bfd discriminator local local-id remote remote-id

By default, no local and remote discriminators are configured.

Make sure the local discriminator and remote discriminator configured on the local PE are the same as the remote discriminator and local discriminator configured on the remote PE, respectively.

11. (Optional.) Configure an LDP backup PW, specify the PW class for the backup PW, and enter VSI LDP backup PW view.

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

By default, no backup VPLS PW is configured.

12. (Optional.) Configure the local and remote discriminators for the BFD session used to verify the connectivity of the backup PW.

bfd discriminator local local-id remote remote-id

By default, no local and remote discriminators are configured.

Make sure the local discriminator and remote discriminator configured on the local PE are the same as the remote discriminator and local discriminator configured on the remote PE, respectively.