1995-10-26 21:28:30 +00:00
|
|
|
.\" Copyright (c) 1986, 1991, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1995 John Hay. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1999-07-12 20:12:29 +00:00
|
|
|
.\"
|
2000-12-11 15:57:16 +00:00
|
|
|
.Dd October 11, 1995
|
1995-10-26 21:28:30 +00:00
|
|
|
.Dt IPXROUTED 8
|
2001-07-10 15:12:08 +00:00
|
|
|
.Os
|
1995-10-26 21:28:30 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm IPXrouted
|
|
|
|
.Nd IPX Routing Information Protocol daemon
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1999-04-24 09:18:49 +00:00
|
|
|
.Op Fl N
|
1995-10-26 21:28:30 +00:00
|
|
|
.Op Fl q
|
|
|
|
.Op Fl s
|
|
|
|
.Op Fl S
|
|
|
|
.Op Fl t
|
|
|
|
.Op Ar logfile
|
|
|
|
.Sh DESCRIPTION
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2003-11-15 17:10:56 +00:00
|
|
|
utility is invoked at boot time to manage the
|
|
|
|
.Tn IPX
|
|
|
|
routing tables.
|
|
|
|
The
|
|
|
|
.Tn IPX
|
|
|
|
routing daemon uses the Novell
|
|
|
|
.Tn IPX
|
|
|
|
Routing Information Protocol in maintaining up to date kernel routing
|
1995-10-26 21:28:30 +00:00
|
|
|
table entries.
|
|
|
|
.Pp
|
|
|
|
Available options:
|
|
|
|
.Bl -tag -width logfile
|
1999-04-24 09:18:49 +00:00
|
|
|
.It Fl N
|
2003-11-15 17:10:56 +00:00
|
|
|
Do not reply on GetNearestServer
|
|
|
|
.Tn SAP
|
|
|
|
request.
|
1995-10-26 21:28:30 +00:00
|
|
|
.It Fl q
|
|
|
|
Do not supply routing information (opposite of
|
|
|
|
.Fl s
|
|
|
|
option below).
|
|
|
|
.It Fl s
|
2001-07-15 08:06:20 +00:00
|
|
|
Forces
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1995-10-26 21:28:30 +00:00
|
|
|
to supply routing information whether it is acting as an internetwork
|
|
|
|
router or not.
|
|
|
|
.It Fl S
|
2003-02-27 14:07:49 +00:00
|
|
|
Do not supply Service Advertising Protocol
|
2004-06-05 20:20:34 +00:00
|
|
|
.Pq Tn SAP
|
2000-03-01 14:09:25 +00:00
|
|
|
information.
|
2001-07-15 08:06:20 +00:00
|
|
|
The default is to supply
|
2003-11-15 17:10:56 +00:00
|
|
|
.Tn SAP
|
1995-10-26 21:28:30 +00:00
|
|
|
information.
|
|
|
|
.It Fl t
|
|
|
|
All packets sent or received are
|
2003-11-15 17:10:56 +00:00
|
|
|
printed on the standard output.
|
|
|
|
In addition,
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1995-10-26 21:28:30 +00:00
|
|
|
will not divorce itself from the controlling terminal
|
|
|
|
so that interrupts from the keyboard will kill the process.
|
|
|
|
.It Ar logfile
|
2001-07-15 08:06:20 +00:00
|
|
|
Name of file in which
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm Ns 's
|
2003-11-15 17:10:56 +00:00
|
|
|
actions should be logged.
|
|
|
|
This log contains information
|
1995-10-26 21:28:30 +00:00
|
|
|
about any changes to the routing tables and a history of
|
|
|
|
recent messages sent and received which are related to
|
|
|
|
the changed route.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
In normal operation
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1995-10-26 21:28:30 +00:00
|
|
|
listens
|
2003-11-15 17:10:56 +00:00
|
|
|
for routing information packets.
|
|
|
|
If the host is connected to
|
|
|
|
multiple
|
|
|
|
.Tn IPX
|
|
|
|
networks, it periodically supplies copies
|
1995-10-26 21:28:30 +00:00
|
|
|
of its routing tables to any directly connected hosts
|
|
|
|
and networks.
|
|
|
|
.Pp
|
|
|
|
When
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1995-10-26 21:28:30 +00:00
|
|
|
is started, it uses the
|
|
|
|
.Dv SIOCGIFCONF
|
|
|
|
.Xr ioctl 2
|
|
|
|
to find those
|
|
|
|
directly connected interfaces configured into the
|
|
|
|
system and marked
|
|
|
|
.Dq up
|
2003-11-15 17:10:56 +00:00
|
|
|
(the software loopback interface is ignored).
|
|
|
|
If multiple interfaces
|
1995-10-26 21:28:30 +00:00
|
|
|
are present, it is assumed the host will forward packets
|
|
|
|
between networks.
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility then transmits a
|
1995-10-26 21:28:30 +00:00
|
|
|
.Em request
|
|
|
|
packet on each interface (using a broadcast packet if
|
|
|
|
the interface supports it) and enters a loop, listening
|
|
|
|
for
|
|
|
|
.Em request
|
|
|
|
and
|
|
|
|
.Em response
|
|
|
|
packets from other hosts.
|
|
|
|
.Pp
|
|
|
|
When a
|
|
|
|
.Em request
|
2001-07-15 08:06:20 +00:00
|
|
|
packet is received,
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1995-10-26 21:28:30 +00:00
|
|
|
formulates a reply based on the information maintained in its
|
2003-11-15 17:10:56 +00:00
|
|
|
internal tables.
|
|
|
|
The
|
1995-10-26 21:28:30 +00:00
|
|
|
.Em response
|
|
|
|
packet generated contains a list of known routes, each marked
|
|
|
|
with a
|
|
|
|
.Dq hop count
|
|
|
|
metric (a count of 16, or greater, is
|
|
|
|
considered
|
|
|
|
.Dq infinite ) .
|
|
|
|
The metric associated with each
|
|
|
|
route returned provides a metric
|
|
|
|
.Em relative to the sender .
|
|
|
|
.Pp
|
|
|
|
.Em Response
|
|
|
|
packets received by
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1995-10-26 21:28:30 +00:00
|
|
|
are used to update the routing tables if one of the following
|
|
|
|
conditions is satisfied:
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
No routing table entry exists for the destination network
|
2003-11-15 17:10:56 +00:00
|
|
|
or host, and the metric indicates the destination is
|
|
|
|
.Dq reachable
|
2004-07-02 23:13:00 +00:00
|
|
|
(i.e., the hop count is not infinite).
|
1995-10-26 21:28:30 +00:00
|
|
|
.It
|
|
|
|
The source host of the packet is the same as the router in the
|
2003-11-15 17:10:56 +00:00
|
|
|
existing routing table entry.
|
|
|
|
That is, updated information is
|
1995-10-26 21:28:30 +00:00
|
|
|
being received from the very internetwork router through which
|
|
|
|
packets for the destination are being routed.
|
|
|
|
.It
|
|
|
|
The existing entry in the routing table has not been updated for
|
|
|
|
some time (defined to be 90 seconds) and the route is at least
|
|
|
|
as cost effective as the current route.
|
|
|
|
.It
|
|
|
|
The new route describes a shorter route to the destination than
|
|
|
|
the one currently stored in the routing tables; the metric of
|
|
|
|
the new route is compared against the one stored in the table
|
|
|
|
to decide this.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
When an update is applied,
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1995-10-26 21:28:30 +00:00
|
|
|
records the change in its internal tables and generates a
|
|
|
|
.Em response
|
|
|
|
packet to all directly connected hosts and networks.
|
2003-06-08 14:06:45 +00:00
|
|
|
The
|
|
|
|
.Xr routed 8
|
|
|
|
utility waits a short period
|
1995-10-26 21:28:30 +00:00
|
|
|
of time (no more than 30 seconds) before modifying the kernel's
|
|
|
|
routing tables to allow possible unstable situations to settle.
|
|
|
|
.Pp
|
|
|
|
In addition to processing incoming packets,
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1995-10-26 21:28:30 +00:00
|
|
|
also periodically checks the routing table entries.
|
|
|
|
If an entry has not been updated for 3 minutes, the entry's metric
|
2003-11-15 17:10:56 +00:00
|
|
|
is set to infinity and marked for deletion.
|
|
|
|
Deletions are delayed
|
2010-08-28 16:32:01 +00:00
|
|
|
an additional 60 seconds to ensure the invalidation is propagated
|
1995-10-26 21:28:30 +00:00
|
|
|
to other routers.
|
|
|
|
.Pp
|
|
|
|
Hosts acting as internetwork routers gratuitously supply their
|
|
|
|
routing tables every 30 seconds to all directly connected hosts
|
|
|
|
and networks.
|
1996-04-13 15:13:30 +00:00
|
|
|
.Pp
|
|
|
|
If
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2004-06-05 20:20:34 +00:00
|
|
|
receives a
|
|
|
|
.Dv SIGINFO
|
|
|
|
signal the current contents of the
|
2003-11-15 17:10:56 +00:00
|
|
|
.Tn RIP
|
|
|
|
and
|
|
|
|
.Tn SAP
|
|
|
|
tables are appended to the file
|
|
|
|
.Pa /var/log/ipxrouted.dmp .
|
1995-10-26 21:28:30 +00:00
|
|
|
.Sh SEE ALSO
|
1996-02-11 22:38:05 +00:00
|
|
|
.Xr ipx 3
|
1995-10-26 21:28:30 +00:00
|
|
|
.Sh HISTORY
|
2003-11-15 17:10:56 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility first appeared in
|
|
|
|
.Fx 2.2 .
|