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
|
|
|
|
.Nm
|
|
|
|
.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
|
|
|
|
.Ar host ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm Rtquery
|
|
|
|
is used to query a network routing daemon,
|
|
|
|
.Xr routed 8
|
|
|
|
or
|
|
|
|
.Xr gated 8 ,
|
|
|
|
for its routing table by sending a
|
|
|
|
.Em request
|
|
|
|
or
|
|
|
|
.Em poll
|
|
|
|
command. The routing information in any routing
|
|
|
|
.Em response
|
|
|
|
packets returned is displayed numerically and symbolically.
|
|
|
|
.Pp
|
|
|
|
.Em Rtquery
|
|
|
|
by default uses the
|
|
|
|
.Em request
|
|
|
|
command.
|
|
|
|
When the
|
1996-07-22 20:56:54 +00:00
|
|
|
.Ar -p
|
1996-05-30 16:19:16 +00:00
|
|
|
option is specified,
|
|
|
|
.Nm rtquery
|
|
|
|
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 .
|
|
|
|
When querying gated, the
|
|
|
|
.Em poll
|
1996-05-30 16:19:16 +00:00
|
|
|
command is preferred over the
|
1996-07-22 20:56:54 +00:00
|
|
|
.I Request
|
1996-05-30 16:19:16 +00:00
|
|
|
command because the response is not subject to Split Horizon and/or
|
1996-07-22 20:56:54 +00:00
|
|
|
Poisoned Reverse, and because some versions of gated do not answer
|
|
|
|
the Request command. Routed does not answer the Poll command, but
|
|
|
|
recognizes Requests coming from rtquery and so answers completely.
|
|
|
|
.Pp
|
|
|
|
.Em Rtquery
|
|
|
|
is also used to turn tracing on or off in
|
|
|
|
.Em routed .
|
1996-05-30 16:19:16 +00:00
|
|
|
.Pp
|
|
|
|
Options supported by
|
|
|
|
.Nm rtquery :
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl n
|
|
|
|
Normally network and host numbers are displayed both symbolically
|
|
|
|
and numerically.
|
|
|
|
The
|
|
|
|
.Fl n
|
|
|
|
option displays only the numeric network and host numbers.
|
|
|
|
.It Fl p
|
|
|
|
Uses the
|
1996-07-22 20:56:54 +00:00
|
|
|
.Em Poll
|
1996-05-30 16:19:16 +00:00
|
|
|
command to request full routing information from
|
|
|
|
.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
|
|
|
|
query using RIP version 1 instead of RIP version 2.
|
|
|
|
.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
|
|
|
|
ask about the route to destination
|
1996-07-22 20:56:54 +00:00
|
|
|
.Em addr .
|
|
|
|
.It Fl t Ar op
|
|
|
|
change tracing, where
|
|
|
|
.Em op
|
|
|
|
is one of the following.
|
|
|
|
Requests from processes not running with UID 0 or on distant networks
|
|
|
|
are generally ignored.
|
|
|
|
.El
|
|
|
|
.Bl -tag -width Ds -offset indent-two
|
|
|
|
.It Em on=filename
|
|
|
|
turn 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
|
|
|
|
.Pa /tmp/routed.log .
|
|
|
|
.It Em more
|
|
|
|
increases the debugging level.
|
|
|
|
.It Em off
|
|
|
|
turns off tracing.
|
|
|
|
.El
|
1996-05-30 16:19:16 +00:00
|
|
|
.Sh SEE ALSO
|
1996-07-22 20:56:54 +00:00
|
|
|
.Xr routed 8 ,
|
|
|
|
.Xr gated 8 .
|
1996-05-30 16:19:16 +00:00
|
|
|
.br
|
|
|
|
RFC\ 1058 - Routing Information Protocol, RIPv1
|
|
|
|
.br
|
|
|
|
RFC\ 1723 - Routing Information Protocol, RIPv2
|