route(8)

NAME
route - display and modify system routing table

SYNOPSIS
route [-v]
route add dstaddr interface [metric NN] [gw gateway]
route del dstaddr

DESCRIPTION
Route is used to display and modify MintNet's routing table. You can add an delete routes. The whole routing table of the system is displayed (in the format netstat uses when invoked with the -rn option) when route is invoked without arguments.

OPTIONS

add dstaddr
    This option causes route to add a new route to the systems routing table for the destination address dstaddr, which can be given in standard dot notation or can be a symbolic name which is resolved into an IP address. A special case for dstaddr is the name default. This name causes route to add a default route (used when no other route matches the destination address of a packet). This special destination address can only be used in conjunction with the gw option. dstaddr can be either the address of a network (thats the case when the host portion of the given IP address is zero) or the address of a host (when the host portion of the given IP address is non zero). Based on the type of the address route will add a route to a network or a route to a host.

metric NN
    This option can only be used with the add command and sets the distance metric for the route to the specified destination address. The distance metric is a measurement for how good the route is. The metric is the number of `hops' (that is the number of edges on the route when you imagine the network as a graph with the hosts at the vertices) between the source and the destination. The metric value is only useful for gateway routes.

gw addr
    This option can only be used with the add command and tells route that this route goes over a gateway host which forwards packets to the destination address of the route for you. addr is the address of the gateway and must be the address of a host.

interface
    This is the name of the network interface over which outgoing packets to the specified destination address should be sent.

AUTHOR
Kay Roemer <roemer@rbi.informatik.uni-frankfurt.de>

SEE ALSO
ifconfig(8), netstat(8).