R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

98
fast-reroute
Use fast-reroute to configure OSPF fast reroute (FRR).
Use undo fast-reroute to restore the default.
Syntax
fast-reroute { auto [ abr-only ] | route-policy route-policy-name }
undo fast-reroute
Default
OSPF FRR is not configured.
Views
OSPF view
Default command level
2: System level
Parameters
auto: Calculates a backup next hop automatically for all routes.
abr-only: Selects only the route to the ABR as the backup path.
route-policy route-policy-name: References a routing policy to designate a backup next hop. The
route-policy-name argument is a string of 1 to 63 case-sensitive characters.
Usage guidelines
Do not use OSPF FRR and BFD (for OSPF) at the same time. Otherwise, OSPF FRR might fail to take effect.
Do not use the fast-reroute auto command together with the commands vlink-peer, sham-link, enable
traffic-adjustment, and enable traffic-adjustment advertise in MPLS Command Reference.
Examples
# Enable FRR to automatically calculate a backup next hop for all routes in OSPF process 100.
<Sysname> system-view
[Sysname] bfd echo-source-ip 1.1.1.1
[Sysname] ospf 100
[Sysname-ospf-100] fast-reroute auto
# Enable FRR to designate a backup next hop by using routing policy frr for OSPF process 100.
<Sysname> system-view
[Sysname] bfd echo-source-ip 1.1.1.1
[Sysname] ip ip-prefix abc index 10 permit 100.1.1.0 24
[Sysname] route-policy frr permit node 10
[Sysname-route-policy] if-match ip-prefix abc
[Sysname-route-policy] apply fast-reroute backup-interface GigabitEthernet 2/1/1
backup-nexthop 193.1.1.8
[Sysname-route-policy] quit
[Sysname] ospf 100
[Sysname-ospf-100] fast-reroute route-policy frr