19.4 Network Programs
Syntax
route [ options ] [ add|delete ] [ host|net] destination [ gateway [ metric ] ]
Common Options
-f flush the routing tables
-n don't map the IP addresses to host names
add|delete add, or delete, a route to the destination
host|net interpret the destination as a host or network, respectively
destination network destination address
gateway the network gateway address through which packets are sent
metric number of hops to destination
Examples
To add the server as the default router for a workstation, first kill the route daemon on the workstation, if it's running, then flush the existing route with:
# route -f
Lastly, add the default route for the interface:
# route add default 128.146.116.1 1
where default is the designation used to indicate the destination address for all non-local packets, 128.146.116.1 is the address of the router for the sub-net, and it is 1 hop away.