Routing Commands
232
ProSafe M4100 and M7100 Managed Switches
ip route default
This command configures the default route. The value for <nexthopip> is a valid IP
address of the next hop router. The <preference> is an integer value from 1 to 255. A route
with a preference of 255 cannot be used to forward traffic.
Default
Format ip route default <nexthopip> [<preference>]
Mode
no ip route default
This command deletes all configured default routes. If the optional <nexthopip> parameter
is designated, the specific next hop is deleted from the configured default route and if the
optional preference value is designated, the preference of the configured default route is
reset to its default.
Format no ip route default [{<nexthopip> | <preference>}]
Mode
ip route distance
This command sets the default distance (preference) for static routes. Lower route distance
values are preferred when determining the best route. The ip route and ip route
default commands allow you to optionally set the distance (preference) of an individual
static route. The default distance is used when no distance is specified in these commands.
Changing the default distance does not update the distance of existing static routes, even if
they were assigned the original default distance. The new default distance will only be
applied to static routes created after invoking the ip route distance command.
Default
Format ip route distance <1-255>
Mode
no ip route distance
This command sets the default static route preference value in the router. Lower route
preference values are preferred when determining the best route.
Format no ip route distance
Mode
preference—1
Global Config
Global Config
1
Global Config
Global Config