The ip route-static default-preference command sets the default preference for IPv4 static routes.
The undo ip route-static default-preference restores the default setting.
By default, the default preference of IPv4 static routes is 60.
| Parameter | Description | Value |
|---|---|---|
| preference | Specifies the default preference for IPv4 static routes. | It is an integer ranging from 1 to 255. The smaller the value is, the higher the preference is. |
Applicable Environment
You can change the status of a route by changing the preference of the route. You can use the ip route-static default-preference command to change the default preference of all the new IPv4 static routes.
Configuration Impact
After the ip route-static default-preference command is used, all the new IPv4 static routes that use the default preference are restored to a new default preference.
Precautions
After a default preference is specified, the new default preference is valid for subsequent rather than existing IPv4 static routes.