OcNOS-SP : Layer 3 Guide : Fundamental Layer 3 Command Reference : Fundamental Layer 3 Commands : fib retain
fib retain
Use this command to set the retention time for stale routes in the Forwarding Information Base (FIB) when ribd restarts. The ribd process reads the FIB and treats previously self-installed routes as stale.
You can display stale routes by running the show ip route database command. All routes preceded by the symbol p are stale routes. When protocol modules restart, ribd overrides these stale routes with routes updated by the protocol modules.
Table 1-1 show the behavior of routes when ribd stops.
Table 1-1: FIB retention
Command
Behavior
fib retain
Does not clear routes from the FIB and retains stale routes for 60 seconds when restarted.
fib retain forever
Does not clear routes and retains stale routes forever.
fib retain time <1-65535>
Does not clear routes and retains stale routes for the specified seconds.
no fib retain (default)
Cleans up routes in the FIB, but retains stale routes for 60 seconds when restarted.
You can remove stale routes at any time with the clear ip route kernel command.
Use the no form of this command to revert to default; that is, do not retain routes in the FIB when ribd stops.
Command Syntax
fib retain (forever|time <1-65535>|)
no fib retain (forever|time <1-65535>|)
Parameters
forever
Retain FIB forever
time
Retain FIB for a time after ribd restarts
<1-65535>
Retention time in seconds; if you omit this value, the default is 60 seconds
Default
Routes are cleared from the FIB when ribd stops. However, when ribd restarts, stale routes are retained for 60 seconds.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#fib retain time 180
Last modified date: 10/16/2023