ROUTE

Route Information 

Manipulates Network Routing Tables 

ROUTE  [-d] [-f] command [destination] [MASK netmask]  [gateway] [METRIC metric]  [IF interface]

  -f   Clears the routing tables of all gateway entries.  If this is used in 
conjunction with one of the commands, the tables are cleared prior to running 
the command.

  -d   Redirects the output to the Output debug port 

command      One of these: 
                PRINT     Prints  a route  
                ADD       Adds    a route 
                DELETE    Deletes a route 
                CHANGE    Modifies an existing route 

destination  Specifies the host. 
MASK         Specifies that the next parameter is the 'netmask' value. 
netmask      Specifies a subnet mask value for this route entry. If not 
             specified, it defaults to 255.255.255.255. 
gateway      Specifies gateway 
interface    The interface number for the specified route. 
METRIC       specifies the metric, ie. cost for the destination.

Diagnostic Notes: 
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example
    >route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 IF 1 
The route addition failed: 87
Examples: 
    >route PRINT 
    >route ADD 157.0.0.0 MASK 255.0.0.0  157.55.80.1 METRIC 3 IF 2 
If IF is not given, it tries to find the best interface for a given gateway. 
    >route DELETE 157.0.0.0