IP Routing Commands 973Using this command, the administrator may manually configure a single,global default gateway. The switch installs a default route for a configureddefault gateway with a preference of 253, making it more preferred than thedefault gateways learned via DHCP, but less preferred than a static defaultroute. The preference of these routes is not configurable.The switch installs a default route for the default gateway whether or notrouting is globally enabled. When the user displays the routing table (e.g.show ip route), the display identifies the default gateway, if one is known.Use the show ip route static all command to display the configured staticroutes and preferences.ExampleThe following example identifies thenext-hop-ip and a preference value of200.console(config)#ip route default 192.168.10.1.200ip 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.