xref: /freebsd/sbin/routed/rtquery/rtquery.8 (revision 123af6ec70016f5556da5972d4d63c7d175c06d3)
1.\" $Revision: 2.27 $
2.\" $FreeBSD$
3.\"
4.Dd June 1, 1996
5.Dt RTQUERY 8
6.Os
7.Sh NAME
8.Nm rtquery
9.Nd query routing daemons for their routing tables
10.Sh SYNOPSIS
11.Nm
12.Op Fl np1
13.Op Fl w Ar timeout
14.Op Fl r Ar addr
15.Op Fl a Ar secret
16.Ar host ...
17.Nm
18.Op Fl t Ar op
19.Ar host ...
20.Sh DESCRIPTION
21The
22.Nm
23utility is used to query a RIP network routing daemon, such as
24.Xr routed 8 ,
25for its routing table by sending a
26.Em request
27or
28.Em poll
29command.
30The routing information in any routing
31.Em response
32packets returned is displayed numerically and symbolically.
33.Pp
34The
35.Nm
36utility by default uses the
37.Em request
38command.
39When the
40.Fl p
41option is specified,
42.Nm
43uses the
44.Em poll
45command, an
46undocumented extension to the RIP protocol supported by
47the commercial
48.Nm gated
49routing product.
50When querying
51.Nm gated ,
52the
53.Em poll
54command is preferred over the
55.Em request
56command because the response is not subject to Split Horizon and/or
57Poisoned Reverse, and because some versions of
58.Nm gated
59do not answer the
60.Em request
61command.
62The
63.Xr routed 8
64utility does not answer the
65.Em poll
66command, but recognizes
67.Em requests
68coming from
69.Nm
70and so answers completely.
71.Pp
72The
73.Nm
74utility is also used to turn tracing on or off in
75.Xr routed 8 .
76.Pp
77The following options are available:
78.Bl -tag -width indent
79.It Fl n
80displays only the numeric network and host numbers instead of both
81numeric and symbolic.
82.It Fl p
83uses the
84.Em poll
85command to request full routing information from
86.Nm gated .
87This is an undocumented extension RIP protocol supported only by
88.Nm gated .
89.It Fl 1
90queries using RIP version 1 instead of RIP version 2.
91.It Fl w Ar timeout
92changes the delay for an answer from each host.
93By default, each host is given 15 seconds to respond.
94.It Fl r Ar addr
95asks about the route to destination
96.Em addr .
97.It Fl a Ar passwd=XXX
98.It Fl a Ar md5_passwd=XXX|KeyID
99causes the query to be sent with the indicated cleartext or MD5 password.
100.It Fl t Ar op
101changes tracing, where
102.Em op
103is one of the following.
104Requests from processes not running with UID 0 or on distant networks
105are generally ignored by the daemon except for a message in the system log.
106.Nm gated
107is likely to ignore these debugging requests.
108.El
109.Bl -tag -width Ds -offset indent-two
110.It Em on=tracefile
111turns tracing on into the specified file.
112That file must usually have been specified when the daemon was
113started or be the same as a fixed name, often
114.Pa /etc/routed.trace .
115.It Em more
116increases the debugging level.
117.It Em off
118turns off tracing.
119.It Em dump
120dumps the daemon's routing table to the current tracefile.
121.El
122.Sh SEE ALSO
123.Xr routed 8
124.Rs
125.%T Routing Information Protocol, RIPv1
126.%O RFC1058
127.Re
128.Rs
129.%T Routing Information Protocol, RIPv2
130.%O RFC1723
131.Re
132