Chapter 5
66
(Note: the default is not always sensible; in particular, if <dest>
is 0.0.0.0 then it would be better for the mask to default to
0:0:0:0. This may change in future versions).
<cost> (default 1) is the number of hops counted as the cost of
the route, which may affect the choice of route when the route is
competing with routes acquired from RIP. (Note: using a
mixture of RIP and static routing is not advised.)
<timeout> (default 0, meaning that the route does not time out)
is the number of seconds that the route will remain in the routing
table.
Note: The routing table does not contain routes to the directly
connected networks, without going through a gateway. ATMOS
TCP/IP routes packets to such destinations by using the
information in the device and subnet tables instead.
The route command (with no parameters) displays the routing
table. It adds a comment to each route with the following
information:
How the route was obtained;
MAN— configured by the route command
RIP— obtained from RIP
ICMP— obtained from an ICMP redirect message
SNMP— configured by SNMP network management
time-out, if the route is not permanent.
original time-out, if the route is not permanent.
The name of the interface (if known) that will be used for the
route.
An asterisk (*) if the route was added recently and RIP has not
yet processed the change (the asterisk should disappear within
30 seconds, when RIP next considers broadcasting routing
information).
Only the routes configured by the route command are saved or
displayed by config.
Example:
mymachine> ip route add default 0.0.0.0 192.168.2.3 0:0:0:0
mymachine> ip route add testnet1 192.168.101.0 192.168.2.34
mymachine> ip route add testnet2 192.168.102.0 192.168.2.34
ff:ff:ff:0 1 60