An interface route may be automatically deleted in error from the router kernel when it becomes reachable from another interface. The command show route
in Clish shows the route, but the Expert mode command ip route
does not show the route. A scenario where this can happen is when the same route is learned via OSPF and BGP.
You can avoid losing the interface routes by enabling the Automatic Restoration of Interface Routes option. By default, this option is Off.
Note: If the interface route was deleted and the option was not enabled, bring the interface DOWN and then bring it UP again using Clish, the Portal or, in Expert mode, using ifconfig
.
To turn on Auto Restore of Interface Routes:
set router-options auto-restore-iface-routes on
save config
To turn off Auto Restore of Interface Routes:
set router-options auto-restore-iface-routes off
save config
To show the state of the Auto Restore of Interface Routes option:
Run: show router-options