AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
You can use the Route program to manually manipulate the Internet module's network 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.

*Route [-e] [-f] add [net|host] destination gateway metric
*Route [-e] [-f] delete [net|host] destination gateway
*Route -a

'gateway' parameter
the next-hop gateway to which packets should be addressed

'destination' parameter
an 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)

'metric' parameter
a count giving the number of hops to the destination

'e' parameter
The -e option makes Route place any fatal error report string in the system variable Inet$Error instead of writing it to the standard output.

'f' parameter
The -f option makes Route 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.

'a' parameter
The -a option makes Route display the routing tables.

[sh-index] Back to list of manuals