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