2004-02-25 23:20:22 +00:00
|
|
|
.\" $Revision: 2.27 $
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $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
|
2001-07-10 11:04:34 +00:00
|
|
|
.Os
|
1996-05-30 16:19:16 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm rtquery
|
|
|
|
.Nd query routing daemons for their routing tables
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 16:52:27 +00:00
|
|
|
.Nm
|
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-20 16:52:27 +00:00
|
|
|
.Nm
|
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
|
2002-07-06 19:35:14 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2003-05-04 06:13:25 +00:00
|
|
|
utility is used to query a RIP network routing daemon, such as
|
|
|
|
.Xr routed 8 ,
|
1996-05-30 16:19:16 +00:00
|
|
|
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
|
2002-07-06 19:35:14 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility by default uses the
|
1996-05-30 16:19:16 +00:00
|
|
|
.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
|
2003-05-04 06:13:25 +00:00
|
|
|
the commercial
|
2003-05-19 19:54:00 +00:00
|
|
|
.Nm gated
|
2003-05-04 06:13:25 +00:00
|
|
|
routing product.
|
1998-07-28 06:36:31 +00:00
|
|
|
When querying
|
2003-05-19 19:54:00 +00:00
|
|
|
.Nm gated ,
|
1998-07-28 06:36:31 +00:00
|
|
|
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
|
2003-05-04 06:13:25 +00:00
|
|
|
Poisoned Reverse, and because some versions of
|
2003-05-19 19:54:00 +00:00
|
|
|
.Nm gated
|
2003-05-04 06:13:25 +00:00
|
|
|
do not answer the
|
1997-01-19 17:57:15 +00:00
|
|
|
.Em request
|
|
|
|
command.
|
2003-06-08 12:55:55 +00:00
|
|
|
The
|
|
|
|
.Xr routed 8
|
|
|
|
utility does not answer the
|
1997-01-19 17:57:15 +00:00
|
|
|
.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
|
2002-07-06 19:35:14 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility 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
|
2003-05-19 19:54:00 +00:00
|
|
|
.Nm gated .
|
1996-07-22 20:56:54 +00:00
|
|
|
This is an undocumented extension RIP protocol supported only by
|
2003-05-19 19:54:00 +00:00
|
|
|
.Nm gated .
|
1996-05-30 16:19:16 +00:00
|
|
|
.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.
|
2003-05-19 19:54:00 +00:00
|
|
|
.Nm gated
|
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 routed 8
|
|
|
|
.Rs
|
|
|
|
.%T Routing Information Protocol, RIPv1
|
|
|
|
.%O RFC1058
|
|
|
|
.Re
|
|
|
|
.Rs
|
|
|
|
.%T Routing Information Protocol, RIPv2
|
|
|
|
.%O RFC1723
|
|
|
|
.Re
|