(Optional) Setting the Default Preference for an IPv4 Static Route
Context
The default preference of an IPv4 static route affects route selection. When an IPv4 static route is configured, the default preference is used if no preference is specified for the static route.
Procedure
- Run system-view
The system view is displayed.
- Run ip route-static default-preference preference
The default preference of static routes is set.
By default, the preference of static routes is 60.
After the default preference is reconfigured, the new default preference is valid only for new IPv4 static routes.
- Run commit
The configuration is committed.