RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

*Route

Programmer's Reference Manuals
» Part 17 - *Commands
» *Commands - Sorted By Name
» *Route

*Route

Use

This *Command directly manipulates the Internet module’s network routing tables.

Syntax

*Route [-e] [-f] add [net_|_host] destination gateway metric_
*Route [-e] [-f] delete [net_|host
] destination gateway
*Route -a

Parameters

-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

Notes

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.

See also

  • *Ping
Revised on January 22, 2010 23:13:17 by Andrew Hodgkinson (6) (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: *Commands - Sorted By Name, *Ping, *IfConfig

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys