Showing changes from revision #3 to #4:
Added | Removed | Changed
This *Command directly manipulates the Internet module’s network routing tables.
*Route [-e] [-f] add [net_|_host] destination gateway metric_
*Route [-e] [-f] delete [net_|host] destination gateway
*Route -a
-e | Place any fatal error report string in the system variable Inet$Error instead of writing it to the standard output |
–f | Delete all gateway entries in the Internet module’s routing tables. If this is used in conjunction with an add command, the tables are flushed first |
[net_|_host] | Specify net or host |
destination | Internet host or network specified either by name (which must be present in the respective host or network name data base InetDBase$Path) or by address (using the standard Internet dot notation) |
gateway | Next-hop gateway to which packets should be addressed |
metric | Count giving the number of hops to the destination |
–a | Display the routing tables |
The metric must be zero if the destination is on a directly-attached network, and non-zero if the route utilises one or more gateways. If you’re adding a route with metric 0, the gateway given is the address of this host on the common network, indicating the interface to be used for transmission.
Routes to a particular host are distinguished from those to a network by interpreting the Internet address associated with destination. The optional keywords net and host force the destination to be interpreted as a network or a host, respectively. Otherwise, if the destination has a local address part of 0 or if it’s the symbolic name of a network, then the route’s presumed to be to a network; else the route’s presumed to be to a host. All symbolic names specified for a destination or gateway are looked up first as a host name; if this fails, the name is then looked up as a network name.