IP Routing Commands 1053ip route distanceUse the ip route distance command in Global Configuration mode to set thedefault distance (preference) for static routes. Lower route preference valuesare preferred when determining the best route. The ip route and ip routedefault commands allow optional setting of the distance of an individualstatic route. The default distance is used when no distance is specified inthese commands. Changing the default distance does not update thedistance of existing static routes, even if they were assigned the originaldefault distance. The new default distance are applied to static routes createdafter invoking the ip route distance command.Syntaxip route distanceintegerno ip route distanceinteger•integer — Specifies the distance (preference) of an individual static route.(Range 1-255)Default ConfigurationDefault value of distance is 1.Command ModeGlobal Configuration modeUser GuidelinesLower route distance values are preferred when determining the best route.ExampleThe following example sets the default route metric to 80.console(config)#ip route distance 80ip routingUse the ip routing command in Global Configuration mode to globallyenable IPv4 routing on the router. To disable IPv4 routing globally, use the noform of the command.