User Guide

OmniAccess SafeGuard OS Administration Guide
192
Chapter 5: Setting Up SafeGuard Switches
ip route net_addr netmask next_hop {distance}
no ip route net_addr netmask {next_hop}
Optional Routing Configurations
See the following sections for additional optional routing configurations:
Setting an Administrative Distance or Preference
Creating a Default Route
Setting an Administrative Distance or Preference
A default administrative distance, or metric, for all new routes can be defined. When
determining the best route, use a lower value for distance. The
ip route and ip route
default commands allows the distance (metric) of an individual static route to be set.
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 default distance is only applied to static
routes created after invoking the ip route distance command.
Use the ip route distance command in Global Configuration mode to use the same
distance or hop value for all new routes. Use the no version of the command to return the
administrative distance to the default value of 1.
ip route distance distance
Syntax Description net_addr A valid IP address entered in dotted
quad format. For example 172.23.45.1.
netmask A subnet mask entered in dotted
quad format. For example:
255.255.255.0.
next_hop Specifies the IP address of the next
hop router. If next_hop is specified in
the no form, the route with that next
hop will be deleted. If next_hop is not
specified, all the static routes to the
specific network address are deleted.
distance
Specifies the
administrative distance
of this individual static route.
Among routes to the same
destination, the route with the lowest
metric value is the route entered into
the forwarding database. A route with
a metric of 255 cannot be used to
forward traffic. The default is 1.