1.\" $Revision: 1.10 $ 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. 62.Xr Routed 8 63does not answer the 64.Em poll 65command, but recognizes 66.Em requests 67coming from 68.Nm 69and so answers completely. 70.Pp 71The 72.Nm 73utility is also used to turn tracing on or off in 74.Xr routed 8 . 75.Pp 76The following options are available: 77.Bl -tag -width indent 78.It Fl n 79displays only the numeric network and host numbers instead of both 80numeric and symbolic. 81.It Fl p 82uses the 83.Em poll 84command to request full routing information from 85.Nm gated . 86This is an undocumented extension RIP protocol supported only by 87.Nm gated . 88.It Fl 1 89queries using RIP version 1 instead of RIP version 2. 90.It Fl w Ar timeout 91changes the delay for an answer from each host. 92By default, each host is given 15 seconds to respond. 93.It Fl r Ar addr 94asks about the route to destination 95.Em addr . 96.It Fl a Ar passwd=XXX 97.It Fl a Ar md5_passwd=XXX|KeyID 98causes the query to be sent with the indicated cleartext or MD5 password. 99.It Fl t Ar op 100changes tracing, where 101.Em op 102is one of the following. 103Requests from processes not running with UID 0 or on distant networks 104are generally ignored by the daemon except for a message in the system log. 105.Nm gated 106is likely to ignore these debugging requests. 107.El 108.Bl -tag -width Ds -offset indent-two 109.It Em on=tracefile 110turns tracing on into the specified file. 111That file must usually have been specified when the daemon was 112started or be the same as a fixed name, often 113.Pa /etc/routed.trace . 114.It Em more 115increases the debugging level. 116.It Em off 117turns off tracing. 118.It Em dump 119dumps the daemon's routing table to the current tracefile. 120.El 121.Sh SEE ALSO 122.Xr routed 8 123.Rs 124.%T Routing Information Protocol, RIPv1 125.%O RFC1058 126.Re 127.Rs 128.%T Routing Information Protocol, RIPv2 129.%O RFC1723 130.Re 131