Enabling OSPF IP FRR
Context
FRR calculation consumes a large number of CPU resources. If the device is running features with higher priorities than FRR calculation, you need to delay FRR calculation.
Perform the following steps on a switch that needs to protect traffic to be forwarded.
Procedure
- Run system-view
The system view is displayed.
- Run ospf [ process-id | router-id router-id | vpn-instance vpn-instance-name ] *
An OSPF process is started and the OSPF view is displayed.
- Run frr
The OSPF IP FRR view is displayed.
- Run loop-free-alternate
OSPF IP FRR is enabled to generate a loop-free backup path.
OSPF can generate a loop-free backup path only when the OSPF IP FRR traffic protection inequality is met.
- (Optional) Run frr-policy route route-policy route-policy-name
An OSPF IP FRR filtering policy is configured.
After an OSPF IP FRR filtering policy is configured, only OSPF backup routes that pass the filtering criteria defined in the policy can be added to the forwarding table.
- (Optional) Run tiebreaker { node-protecting | lowest-cost | ldp-sync hold-max-cost } preference preference
The solution of selecting a backup path for OSPF IP FRR is set.
By default, the solution of selecting a backup path for OSPF IP FRR is node-protection path first. In some cases, the solution needs to be changed to smallest-cost path first because of data forwarding capacity or link cost consideration. By default, the higher-cost path is selected as the backup path. To change the solution of selecting a backup path for OSPF IP FRR to smallest-cost path first, run the tiebreaker command. After the command is run, the smallest-cost path is selected as the backup path.
- Run commit
The configuration is committed.