Figure 21 Network diagram for OSPF FRR
21, configure FRR on Router B by using a routing policy to specify a backup next hop. When the
primary link fails, OSPF directs packets to the backup next hop. At the same time, OSPF calculates the
shortest path based on the new network topology, and forwards packets over the path after network
You can configure OSPF FRR to calculate a backup next hop by using the loop free alternate (LFA)
algorithm, or specify a backup next hop by using a routing policy.
Before you configure OSPF FRR, complete the following tasks:
Configure IP addresses for interfaces to ensure IP connectivity between neighboring nodes.
Do not use FRR and BFD at the same time. Otherwise, FRR might fail to take effect.
Do not use the fast-reroute lfa command together with the vlink-peer or sham-link (see MPLS
Command Reference) command.
When both OSPF PIC and OSPF FRR are configured, OSPF FRR takes effect.
Configuring OSPF FRR to calculate a backup next hop using the
Enter system view.
Configure the source address
of echo packets.
Enter interface view.
Enable LFA calculation on an
Return to system view.
bfd echo-source-ip ip-address
ospf fast-reroute lfa-backup
By default, the source address of echo
packets is not configured.
By default, the interface on which LFA
calculation is enabled can be selected
as a backup interface.