Understanding Static Routing Default Properties

The basic configuration of static routes defines properties for a particular route. To define a set of properties to be used as defaults on all static routes, set those properties as default values. For example:

defaults {retain;no-readvertise;passive;}route 0.0.0.0/0 next-hop 192.168.1.1;route 192.168.47.5/32 {next-hop 10.10.10.10;qualified-next-hop 10.10.10.7 {preference 6;}preference 2;}

In this example, the retain, no-readvertise, and passive attributes are set as defaults for all static routes. If any local setting for a particular route conflicts with the default values, the local setting supersedes the default.

Attributes that define static route behavior can be configured either at the individual route level or as a default behavior that applies to all static routes. In the case of conflicting configuration, the configuration at the individual route level overrides static route defaults.

Related Topics