# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # This file contains information on maintaining the routing tables. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Some valid route commands # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # The route(1) command tends to be flakey, and its syntax is far from clear. It helps to have a list of commands that have been known to work in some circumstances, though they are still likely to give strange error messages. # route add -net 10.21.35.0 netmask 255.255.255.0 dev eth0 This adds the routing-table entry: 10.21.35.0 * 255.255.255.0 U 0 0 0 eth0 This deletes that entry: # route del -net 10.21.35.0 netmask 255.255.255.0 Note that the "dev eth0" is missing, though it can usually be used. Also, note a bit of weirdness in the routing table: The "route" command calls the mask "Genmask", but the "route add" and "route del" commands call it "netmask". # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #