Routing Commands 23
© 2001- 2006 Hirschmann Automation and Control GmbH. All Rights Reserved.
Format no ip route <ip_addr> <subnet_mask> [{<nextHopRtr> | <prefer-
ence>}]
Mode Global Config
4.2.5 ip route default
This command configures the default route. The value for <nextHopRtr> is a valid IP address of the
next hop router. The
<preference> is an integer value from 1 to 255
Default preference - 1
Format ip route default <nextHopRtr> [<preference>]
Mode Global Config
4.2.5.1 no ip route default
This command deletes all configured default routes. If the optional <nextHopRtr> 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 [{<nextHopRtr> | <preference>}]
Mode Global Config
4.2.6 ip route distance
This command sets the default distance for static routes. Lower route preference values are preferred
when determining the best route. The
ip route and ip route default commands allow you to
optionally set the distance 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.
The value 255 stands for „unreachable“. This means that the appropriate route is never entered into the
forwarding database.
Default 1
Format ip route distance <1-255>
Mode Global Config
4.2.6.1 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 Global Config
4.2.7 ip forwarding
This command enables forwarding of IP frames.
Default enabled
Format ip forwarding
Mode Global Config