Configuring Static BFD for IS-IS
Context
On an IS-IS network, a device periodically sends Hello packets to detect the neighbor status change. By default, the device considers a neighbor Down when it does not receive a Hello packet from the neighbor after sending three Hello packets (30 seconds). This IS-IS fault detection mechanism, however, cannot provide high reliability for the network that requires fast network convergence and no packet loss. BFD for IS-IS can solve this problem. BFD is a millisecond-level fault detection mechanism. It can detect faults on the link between IS-IS neighbors within 50 ms. Therefore, BFD can speed up IS-IS route convergence, ensures fast link switchover, and reduces traffic loss.
- Static BFD can be manually controlled and is easy to deploy. To save memory and ensure reliability of key links, BFD can be deployed on specified links.
- Establishing and deleting BFD sessions need to be manually triggered and lack flexibility. Configuration errors may occur. For example, if an incorrect local or remote discriminator is configured, a BFD session cannot work properly.
A BFD session currently does not detect route switching. If the change of bound peer IP address causes a route to switch to another link, the BFD session is negotiated again only when the original link fails.
Procedure
- Run system-view
The system view is displayed.
- Run bfd
BFD is enabled globally.
- Run quit
The system view is displayed.
- Run bfd session-name bind peer-ip ip-address [ interface interface-type interface-number ]
BFD is enabled between the specified interface and peer router.
If a peer IP address and a local interface are specified in the bfd command, BFD monitors only a single-hop link with the interface specified in the bfd command as the outbound interface and with the peer IP address specified in the peer-ip command as the next-hop address.
- Set discriminators.
Run discriminator local discr-value
A local discriminator is set.
Run discriminator remote discr-value
A remote discriminator is set.
The local discriminator of a device must be the remote discriminator of the device on the other end; otherwise, a BFD session cannot be established. In addition, the local and remote discriminators cannot be modified after being configured.
The local discriminator of the local device must be the same as the remote discriminator of the remote device, and the remote discriminator of the local device must be the same as the local discriminator of the remote device.
- Run quit
The system view is displayed.
- Run interface interface-type interface-number
The view of the specified interface is displayed.
- On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.
If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.
- Run isis bfd static
Static IPv4 BFD is enabled on the specified interface.
- Run commit
The configuration is committed.
Verifying the Configuration
You can check information about a BFD session only after parameters of the BFD session are configured and the BFD session is established.
Run the display isis [ process-id | vpn-instance vpn-instance-name ] bfd session { peer ip-address | all | interface interface-type interface-number } command to check information about the BFD session.
Run the display isis interface verbose command. The command output shows that the status of static BFD for IS-IS process is Yes.