Static routes are only removed from the routing table if the next hop becomes unreachable. The next hop will become unreachable if there are no contributing routes. To have a generated route remain continually installed in the routing and forwarding tables, include the passive option when configuring the route:
-
generate (defaults | route) {
-
passive;
- }
Routes that have been configured to remain continually installed in the routing and forwarding tables are marked with reject next hops when they are inactive.
To explicitly remove generated routes when they become inactive, include the active option when configuring routes. Include this option when configuring an individual route in the route portion of the generate statement to override a retain option specified in the defaults portion of the statement.
-
generate (defaults | route) {
-
active;
- }
For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.