retain
Syntax
(retain | no-retain);
Hierarchy Level
[edit logical-systems logical-system-name routing-instances routing-instance-name routing-options
rib routing-table-name static (defaults
| route)],[edit logical-systems logical-system-name routing-instances routing-instance-name routing-options static (defaults
| route)],[edit logical-systems logical-system-name routing-options rib routing-table-name static (defaults
| route)],[edit logical-systems logical-system-name routing-options static (defaults | route)],[edit routing-instances routing-instance-name routing-options rib routing-table-name static (defaults
| route)],[edit routing-instances routing-instance-name routing-options static (defaults | route)],[edit routing-options rib routing-table-name static (defaults | route)],[edit routing-options static (defaults | route)]
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Description
Configure statically configured routes to be deleted from or retained in the forwarding table when the routing protocol process shuts down normally:
- retain—Have a static route remain in the forwarding table when the routing protocol process shuts down normally. Doing this greatly reduces the time required to restart a system that has a large number of routes in its routing table.
- no-retain—Delete statically configured routes from the forwarding table when the routing protocol process shuts down normally.
Default
no-retain
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
