fast-reroute
Syntax
fast-reroute
{
auto
[
abr-only
] |
route-policy route-policy-name
}
undo fast-reroute
View
OSPF view
Default 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.
Description
Use
fast-reroute
to configure OSPF fast reroute (FRR).
Use
undo fast-reroute
to restore the default.
By default, OSPF FRR is not configured.
IMPORTANT:
•
Do not use OSPF FRR and BFD (for OSPF) at the same time; otherwise, OSPF FRR may fail to
take effect.
•
Do not use the
fast-reroute auto
command together with the commands
vlink-peer
.
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 vlan-interface 1
backup-nexthop 193.1.1.8
[Sysname-route-policy] quit
[Sysname] ospf 100
[Sysname-ospf-100] fast-reroute route-policy frr
91