119
OSPF FRR configuration example
Network requirements
As shown in
Figure 31
, Router S, Router A, and Router D reside in the same OSPF domain. Configure
OSPF FRR so that when Link A fails, traffic is immediately switched to Link B.
Figure 31
Network diagram
Configuration procedure
1.
Configure IP addresses and subnet masks for interfaces on the routers. (Details not shown.)
2.
Configure OSPF on the routers to make sure Router S, Router A, and Router D can communicate
with each other at the network layer. (Details not shown.)
3.
Configure OSPF FRR:
You can enable OSPF FRR to either calculate a backup next hop by using the LFA algorithm, or
specify a backup next hop by using a routing policy.
{
(Method 1.) Enable OSPF FRR to calculate a backup next hop by using the LFA algorithm:
# Configure Router S.
<RouterS> system-view
[RouterS] ospf 1
[RouterS-ospf-1] fast-reroute lfa
[RouterS-ospf-1] quit
# Configure Router D.
<RouterD> system-view
[RouterD] ospf 1
[RouterD-ospf-1] fast-reroute lfa
[RouterD-ospf-1] quit
{
(Method 2.) Enable OSPF FRR to specify a backup next hop by using a routing policy:
# Configure Router S.
<RouterS> system-view
[RouterS] bfd echo-source-ip 1.1.1.1
[RouterS] ip prefix-list abc index 10 permit 4.4.4.4 32
[RouterS] route-policy frr permit node 10
[RouterS-route-policy-frr-10] if-match ip address prefix-list abc
[RouterS-route-policy-frr-10] apply fast-reroute backup-interface
gigabitethernet 1/0 backup-nexthop 12.12.12.2
[RouterS-route-policy-frr-10] quit
[RouterS] ospf 1
[RouterS-ospf-1] fast-reroute route-policy frr