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.