logo

Manual Pages


Table of Contents

NAME

na_orouted - old network routing daemon

SYNOPSIS

orouted on

orouted off

orouted [ -n ] status

DESCRIPTION

routed (pronounced ``route-D'') uses a variant of the Xerox NS Routing Information Protocol (RIP) to manage selection of the default gateway used for IP network routing. The filer's routed is different from the standard Unix routed as it never sends RIP packets, or builds route tables from RIP information, but only snoops for RIP exchanges to determine gateway status; it builds the routing table based on ICMP redirects.

When routed is started with the routed on command, it reads the /etc/dgateways file to create a list of potential default gateways. The /etc/dgateways file consists of a series of lines, each in the following format:

gateway metric

where:

gateway is the name or address of a gateway to be used as a potential default gateway.

metric is a metric indicating the preference weighting of the gateway. 1 is the value to use for highest preference, 15 for the least. If no value is specified, metric defaults to the value 1.

There can be a maximum of 128 valid entries in the /etc/dgateways file - additional ones are ignored, but cause an error message. Duplicate gateway names or addresses are not allowed - only the first one encountered in the file is added to the table, and duplicates produce error messages.

After the list of gateways is created, routed selects the one with the lowest metric value to be used as the preferred default route. If there are multiple gateways available with the same metric value, it uses the one named first in the /etc/dgateways file.

routed then listens on udp port 520 for routing information packets. When a RIP request or reply packet is received, routed marks the gateway that sent the packet ALIVE. If the gateway has a better metric than the current default gateway, or has the same metric but is listed earlier in /etc/dgateways, the current default gateway is changed to the new gateway.

When a gateway is not heard from for 180 seconds, routed marks the gateway as DEAD, and if it was the current default gateway, selects a new default gateway if one is available.

In addition, when routed is running, it deletes dynamic routes, created by ICMP redirects, every 3 minutes.

USAGE

routed on The route daemon may be turned on at any time with the routed on command. This causes routed to read the /etc/dgateways file, and turn on RIP snooping, dynamic route timeouts, and default gateway selection. If routed is already running, this option causes it to reread the /etc/dgateways file, and reinitialize. By default, routed is invoked at boot time in /etc/rc.

routed off The route daemon may be turned off at any time with the routed off command. This stops all RIP snooping, default gateway selection, and dynamic route timeouts. The currently

selected
default gateway is not deleted when routed is turned off.

routed status
Displays the status of the default gateway list. This shows whether RIP snooping is active, the current list of default gateways, their metrics, the state of the gateways (ALIVE or DEAD), and the last time each gateway was heard from. The output looks like:

  maytag> routed status
  RIP snooping is on
  Gateway Metric State Time Last Heard
  alantec1       1  ALIVE       Wed Mar 9 03:38:41 GMT 1994
  groucho        1  ALIVE       Wed Mar 9 03:38:41 GMT 1994
  192.9.200.66   1  ALIVE       Wed Mar 9 03:38:41 GMT 1994
  192.9.200.77   1  ALIVE       Wed Mar 9 03:38:41 GMT 1994
  tphub1         2  ALIVE       Wed Mar 9 03:38:41 GMT 1994
  192.9.200.32   2  ALIVE       Wed Mar 9 03:38:41 GMT 1994
  192.9.200.252  3  ALIVE       Wed Mar 9 03:38:41 GMT 1994
  192.9.200.251  4  ALIVE       Wed Mar 9 03:38:41 GMT 1994
  192.9.200.250  5  ALIVE       Wed Mar 9 03:38:41 GMT 1994
  119 free gateway entries, 9 used

OPTIONS

-n
If this option precedes status, the command displays numeric values for gateway names.

FILES

/etc/rc
for default initialization
/etc/dgateways
for the list of default gateways.

SEE ALSO

na_netstat(1), na_route(1), na_setup(1), na_dgateways(5), na_rc(5)

DIAGNOSTICS

routed: unable to allocate free entry - too many valid entries were found in the /etc/dgateways file. Only the first 128 are used.

routed: duplicate gateway entry not allowed - a duplicate gateway name or address was found in the /etc/dgateways file. Only the first one found is used.

routed: unable to open socket - a networking error has prevented routed from initializing properly.

BUGS

A default route created with route add, either by hand, or in /etc/rc may be deleted by routed when it starts running, if it knows a better route.

If the ``best'' entry selected from /etc/dgateways is DEAD when routed starts up, there may be a period of 180 seconds before a gateway that is ALIVE is selected.


Table of Contents