02.07.2013 Views

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

oute(IM) route(IM)<br />

NAME<br />

route - manually manipulate the routing tables<br />

SYNOPSIS<br />

/ etc/ route [-f] [-n] [comm<strong>and</strong> [netlhost] destination<br />

gateway [metric]<br />

DESCRIPTION<br />

route is a program used to manually manipulate the network<br />

routing tables. It normally is not needed, as the system routing<br />

table management daemon, routed(<strong>1M</strong>), should tend to this<br />

task.<br />

1<br />

route accepts two comm<strong>and</strong>s: add, to add a route, <strong>and</strong><br />

delete, to delete a route.<br />

destination is the destination host or network, gateway is the<br />

next-hop gateway to which packets should be addressed, <strong>and</strong><br />

metric is a count indicating the number of hops to the destination.<br />

The metric is required for add comm<strong>and</strong>s; it must be zero if the<br />

destination is on a directly-attached network, <strong>and</strong> nonzero if the<br />

route utilizes one or more gateways. If adding a route with metric<br />

0, the gateway given is the address of this host on the common<br />

network, indicating the interface to be used for transmission.<br />

Routes to a particular host are distinguished from those to a network<br />

by interpreting the Internet address associated with destination.<br />

The optional keywords net <strong>and</strong> host force the destination<br />

to be interpreted as a network or a host, respectively. Otherwise,<br />

if the destination has a "local address part" of INADDR ANY, or<br />

if the destination is the symbolic name of a network,then the<br />

route is assumed to be to a network; otherwise, it is presumed to<br />

be a route to a host. If the route is to a destination connected via a<br />

gateway, the metric should be greater than 0. All symbolic names<br />

specified for a destination or gateway are looked up first as a host<br />

name using gethostbyname(3N). If this lookup fails, getnetbyname<br />

is then used to interpret the name as that of a network.<br />

route uses a raw socket <strong>and</strong> the SIOCADDRT <strong>and</strong> SIOCDELRT<br />

ioctl's to do its work. As such, only the superuser may modify<br />

the routing tables.<br />

If the -f flag option is specified, route will "flush" the routing<br />

tables of all gateway entries. If this is used in conjunction with<br />

one of the comm<strong>and</strong>s described above, the tables are flushed prior<br />

to the comm<strong>and</strong>'s application.<br />

February, 1990<br />

Revision C

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!