1999-02-23 13:47:39 +03:00
|
|
|
.\" $NetBSD: rtquery.8,v 1.14 1999/02/23 10:47:41 christos Exp $
|
1996-08-10 05:28:58 +04:00
|
|
|
.\"
|
1996-08-10 05:08:06 +04:00
|
|
|
.Dd June 1, 1996
|
|
|
|
.Dt RTQUERY 8
|
|
|
|
.Os BSD 4.4
|
|
|
|
.Sh NAME
|
|
|
|
.Nm rtquery
|
|
|
|
.Nd query routing daemons for their routing tables
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl np1
|
|
|
|
.Op Fl w Ar timeout
|
|
|
|
.Op Fl r Ar addr
|
1997-02-04 01:02:51 +03:00
|
|
|
.Op Fl a Ar secret
|
|
|
|
.Ar host ...
|
1997-10-11 06:55:20 +04:00
|
|
|
.Nm ""
|
1997-02-04 01:02:51 +03:00
|
|
|
.Op Fl t Ar op
|
1996-08-10 05:08:06 +04:00
|
|
|
.Ar host ...
|
|
|
|
.Sh DESCRIPTION
|
1997-09-15 14:38:11 +04:00
|
|
|
.Nm
|
1997-02-04 01:02:51 +03:00
|
|
|
is used to query a RIP network routing daemon,
|
1996-08-10 05:08:06 +04:00
|
|
|
.Xr routed 8
|
|
|
|
or
|
|
|
|
.Xr gated 8 ,
|
|
|
|
for its routing table by sending a
|
|
|
|
.Em request
|
|
|
|
or
|
|
|
|
.Em poll
|
1998-04-29 13:49:10 +04:00
|
|
|
command.
|
|
|
|
The routing information in any routing
|
1996-08-10 05:08:06 +04:00
|
|
|
.Em response
|
|
|
|
packets returned is displayed numerically and symbolically.
|
|
|
|
.Pp
|
1997-10-11 06:55:20 +04:00
|
|
|
.Nm
|
1996-08-10 05:08:06 +04:00
|
|
|
by default uses the
|
|
|
|
.Em request
|
|
|
|
command.
|
|
|
|
When the
|
1998-08-18 22:03:28 +04:00
|
|
|
.Fl p
|
1996-08-10 05:08:06 +04:00
|
|
|
option is specified,
|
1997-09-15 14:38:11 +04:00
|
|
|
.Nm
|
1996-08-10 05:08:06 +04:00
|
|
|
uses the
|
|
|
|
.Em poll
|
|
|
|
command, an
|
|
|
|
undocumented extension to the RIP protocol supported by
|
|
|
|
.Xr gated 8 .
|
1999-02-23 13:47:39 +03:00
|
|
|
When querying
|
|
|
|
.Xr gated 8 ,
|
|
|
|
the
|
1996-08-10 05:08:06 +04:00
|
|
|
.Em poll
|
|
|
|
command is preferred over the
|
1997-10-11 06:55:20 +04:00
|
|
|
.Em request
|
1996-08-10 05:08:06 +04:00
|
|
|
command because the response is not subject to Split Horizon and/or
|
1997-10-11 06:55:20 +04:00
|
|
|
Poisoned Reverse, and because some versions of gated do not answer the
|
|
|
|
.Em request
|
|
|
|
command.
|
|
|
|
.Xr routed 8
|
|
|
|
does not answer the
|
|
|
|
.Em poll
|
|
|
|
command, but recognizes
|
|
|
|
.Em requests
|
|
|
|
coming from
|
|
|
|
.Nm
|
|
|
|
and so answers completely.
|
1996-08-10 05:08:06 +04:00
|
|
|
.Pp
|
1997-10-11 06:55:20 +04:00
|
|
|
.Nm
|
1996-08-10 05:08:06 +04:00
|
|
|
is also used to turn tracing on or off in
|
1997-10-11 06:55:20 +04:00
|
|
|
.Xr routed 8 .
|
1996-08-10 05:08:06 +04:00
|
|
|
.Pp
|
1998-10-25 17:56:06 +03:00
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
1996-08-10 05:08:06 +04:00
|
|
|
.It Fl n
|
1998-10-25 17:56:06 +03:00
|
|
|
displays only the numeric network and host numbers instead of both
|
1998-11-23 01:27:32 +03:00
|
|
|
numeric and symbolic.
|
1996-08-10 05:08:06 +04:00
|
|
|
.It Fl p
|
1998-10-25 17:56:06 +03:00
|
|
|
uses the
|
1997-10-11 06:55:20 +04:00
|
|
|
.Em poll
|
1996-08-10 05:08:06 +04:00
|
|
|
command to request full routing information from
|
1997-01-27 18:01:58 +03:00
|
|
|
.Xr gated 8 .
|
1996-08-10 05:08:06 +04:00
|
|
|
This is an undocumented extension RIP protocol supported only by
|
|
|
|
.Xr gated 8 .
|
|
|
|
.It Fl 1
|
1998-10-25 17:56:06 +03:00
|
|
|
queries using RIP version 1 instead of RIP version 2.
|
1996-08-10 05:08:06 +04:00
|
|
|
.It Fl w Ar timeout
|
|
|
|
changes the delay for an answer from each host.
|
|
|
|
By default, each host is given 15 seconds to respond.
|
|
|
|
.It Fl r Ar addr
|
1998-10-25 17:56:06 +03:00
|
|
|
asks about the route to destination
|
1996-08-10 05:08:06 +04:00
|
|
|
.Em addr .
|
1997-02-04 01:02:51 +03:00
|
|
|
.It Fl a Ar passwd=XXX
|
|
|
|
.It Fl a Ar md5_passwd=XXX|KeyID
|
1998-10-25 17:56:06 +03:00
|
|
|
causes the query to be sent with the indicated cleartext or MD5 password.
|
1996-08-10 05:08:06 +04:00
|
|
|
.It Fl t Ar op
|
1998-10-25 17:56:06 +03:00
|
|
|
changes tracing, where
|
1996-08-10 05:08:06 +04:00
|
|
|
.Em op
|
|
|
|
is one of the following.
|
|
|
|
Requests from processes not running with UID 0 or on distant networks
|
1996-09-24 20:24:12 +04:00
|
|
|
are generally ignored by the daemon except for a message in the system log.
|
1997-10-11 06:55:20 +04:00
|
|
|
.Xr gated 8
|
1997-02-04 01:02:51 +03:00
|
|
|
is likely to ignore these debugging requests.
|
1996-08-10 05:08:06 +04:00
|
|
|
.El
|
|
|
|
.Bl -tag -width Ds -offset indent-two
|
1996-09-24 20:24:12 +04:00
|
|
|
.It Em on=tracefile
|
1998-10-25 17:56:06 +03:00
|
|
|
turns tracing on into the specified file.
|
1998-04-29 13:49:10 +04:00
|
|
|
That file must usually have been specified when the daemon was
|
|
|
|
started or be the same as a fixed name, often
|
1996-09-24 20:24:12 +04:00
|
|
|
.Pa /etc/routed.trace .
|
1996-08-10 05:08:06 +04:00
|
|
|
.It Em more
|
|
|
|
increases the debugging level.
|
|
|
|
.It Em off
|
|
|
|
turns off tracing.
|
1996-09-24 20:24:12 +04:00
|
|
|
.It Em dump
|
|
|
|
dumps the daemon's routing table to the current tracefile.
|
1996-08-10 05:08:06 +04:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr routed 8 ,
|
1997-10-11 06:55:20 +04:00
|
|
|
.Xr gated 8
|
1996-08-10 05:08:06 +04:00
|
|
|
.br
|
|
|
|
RFC\ 1058 - Routing Information Protocol, RIPv1
|
|
|
|
.br
|
|
|
|
RFC\ 1723 - Routing Information Protocol, RIPv2
|