Configuring MPLS BFD for LSPs
To configure MPLS BFD for an LSP, configure both the local and remote devices as described in Table 28.
Table 28: Configurations on the local and remote devices
BFD session establishment mode | Node type | Execute the "mpls bfd enable" command? | Execute the "mpls bfd" command? | Configure the discriminator keyword? |
---|---|---|---|---|
Static mode | Local | Yes | Yes | Yes |
Remote | Yes | Yes | Yes | |
Dynamic mode | Local | Yes | Yes | No |
Remote | Yes | No | N/A |
Follow these guidelines to configure BFD for an LSP tunnel:
To establish the BFD session in static mode, make sure the local discriminator and remote discriminator configured on the local device are the same as the remote discriminator and local discriminator configured on the remote device.
The source address of the BFD session is the MPLS LSR ID of the local device. Before configuring BFD for the LSP tunnel, configure an MPLS LSR ID for the local device and make sure a route is available on the remote device to reach the MPLS LSR ID.
If multiple LSPs exist for an FEC, you can either create a BFD session for an LSP by specifying the next hop of the LSP or create a BFD session for each LSP without specifying a next hop.
On a BFD session established in static mode, the ingress node and egress node both operate in active mode. On a BFD session established in dynamic mode, the egress node operates in active mode and the ingress node operates in passive mode. Executing the bfd session init-mode command on the ingress or egress node does not change the node operating mode.
To configure MPLS BFD for LSPs:
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. Configure BFD to verify LSP connectivity for an FEC. | mpls bfd dest-addr mask-length [ nexthop nexthop-address [ discriminator local local-id remote remote-id ] ] [ template template-name ] | By default, BFD is not configured to verify LSP connectivity for an FEC. |