186d7f5d3SJohn Marino.\" $Revision: 1.10 $ 286d7f5d3SJohn Marino.\" $FreeBSD: src/sbin/routed/rtquery/rtquery.8,v 1.11.2.4 2003/05/10 23:22:48 murray Exp $ 386d7f5d3SJohn Marino.\" $DragonFly: src/sbin/routed/rtquery/rtquery.8,v 1.3 2007/11/23 23:16:36 swildner Exp $ 486d7f5d3SJohn Marino.\" 586d7f5d3SJohn Marino.Dd June 1, 1996 686d7f5d3SJohn Marino.Dt RTQUERY 8 786d7f5d3SJohn Marino.Os 886d7f5d3SJohn Marino.Sh NAME 986d7f5d3SJohn Marino.Nm rtquery 1086d7f5d3SJohn Marino.Nd query routing daemons for their routing tables 1186d7f5d3SJohn Marino.Sh SYNOPSIS 1286d7f5d3SJohn Marino.Nm 1386d7f5d3SJohn Marino.Op Fl np1 1486d7f5d3SJohn Marino.Op Fl w Ar timeout 1586d7f5d3SJohn Marino.Op Fl r Ar addr 1686d7f5d3SJohn Marino.Op Fl a Ar secret 1786d7f5d3SJohn Marino.Ar host ... 1886d7f5d3SJohn Marino.Nm 1986d7f5d3SJohn Marino.Op Fl t Ar op 2086d7f5d3SJohn Marino.Ar host ... 2186d7f5d3SJohn Marino.Sh DESCRIPTION 2286d7f5d3SJohn MarinoThe 2386d7f5d3SJohn Marino.Nm 2486d7f5d3SJohn Marinoutility is used to query a RIP network routing daemon, such as 2586d7f5d3SJohn Marino.Xr routed 8 , 2686d7f5d3SJohn Marinofor its routing table by sending a 2786d7f5d3SJohn Marino.Em request 2886d7f5d3SJohn Marinoor 2986d7f5d3SJohn Marino.Em poll 3086d7f5d3SJohn Marinocommand. 3186d7f5d3SJohn MarinoThe routing information in any routing 3286d7f5d3SJohn Marino.Em response 3386d7f5d3SJohn Marinopackets returned is displayed numerically and symbolically. 3486d7f5d3SJohn Marino.Pp 3586d7f5d3SJohn MarinoThe 3686d7f5d3SJohn Marino.Nm 3786d7f5d3SJohn Marinoutility by default uses the 3886d7f5d3SJohn Marino.Em request 3986d7f5d3SJohn Marinocommand. 4086d7f5d3SJohn MarinoWhen the 4186d7f5d3SJohn Marino.Fl p 4286d7f5d3SJohn Marinooption is specified, 4386d7f5d3SJohn Marino.Nm 4486d7f5d3SJohn Marinouses the 4586d7f5d3SJohn Marino.Em poll 4686d7f5d3SJohn Marinocommand, an 4786d7f5d3SJohn Marinoundocumented extension to the RIP protocol supported by 4886d7f5d3SJohn Marinothe commercial 4986d7f5d3SJohn Marino.Li gated 5086d7f5d3SJohn Marinorouting product. 5186d7f5d3SJohn MarinoWhen querying 5286d7f5d3SJohn Marino.Li gated , 5386d7f5d3SJohn Marinothe 5486d7f5d3SJohn Marino.Em poll 5586d7f5d3SJohn Marinocommand is preferred over the 5686d7f5d3SJohn Marino.Em request 5786d7f5d3SJohn Marinocommand because the response is not subject to Split Horizon and/or 5886d7f5d3SJohn MarinoPoisoned Reverse, and because some versions of 5986d7f5d3SJohn Marino.Li gated 6086d7f5d3SJohn Marinodo not answer the 6186d7f5d3SJohn Marino.Em request 6286d7f5d3SJohn Marinocommand. 6386d7f5d3SJohn Marino.Xr Routed 8 6486d7f5d3SJohn Marinodoes not answer the 6586d7f5d3SJohn Marino.Em poll 6686d7f5d3SJohn Marinocommand, but recognizes 6786d7f5d3SJohn Marino.Em requests 6886d7f5d3SJohn Marinocoming from 6986d7f5d3SJohn Marino.Nm 7086d7f5d3SJohn Marinoand so answers completely. 7186d7f5d3SJohn Marino.Pp 7286d7f5d3SJohn MarinoThe 7386d7f5d3SJohn Marino.Nm 7486d7f5d3SJohn Marinoutility is also used to turn tracing on or off in 7586d7f5d3SJohn Marino.Xr routed 8 . 7686d7f5d3SJohn Marino.Pp 7786d7f5d3SJohn MarinoThe following options are available: 7886d7f5d3SJohn Marino.Bl -tag -width indent 7986d7f5d3SJohn Marino.It Fl n 8086d7f5d3SJohn Marinodisplays only the numeric network and host numbers instead of both 8186d7f5d3SJohn Marinonumeric and symbolic. 8286d7f5d3SJohn Marino.It Fl p 8386d7f5d3SJohn Marinouses the 8486d7f5d3SJohn Marino.Em poll 8586d7f5d3SJohn Marinocommand to request full routing information from 8686d7f5d3SJohn Marino.Li gated . 8786d7f5d3SJohn MarinoThis is an undocumented extension RIP protocol supported only by 8886d7f5d3SJohn Marino.Li gated . 8986d7f5d3SJohn Marino.It Fl 1 9086d7f5d3SJohn Marinoqueries using RIP version 1 instead of RIP version 2. 9186d7f5d3SJohn Marino.It Fl w Ar timeout 9286d7f5d3SJohn Marinochanges the delay for an answer from each host. 9386d7f5d3SJohn MarinoBy default, each host is given 15 seconds to respond. 9486d7f5d3SJohn Marino.It Fl r Ar addr 9586d7f5d3SJohn Marinoasks about the route to destination 9686d7f5d3SJohn Marino.Em addr . 9786d7f5d3SJohn Marino.It Fl a Ar passwd=XXX 9886d7f5d3SJohn Marino.It Fl a Ar md5_passwd=XXX|KeyID 9986d7f5d3SJohn Marinocauses the query to be sent with the indicated cleartext or MD5 password. 10086d7f5d3SJohn Marino.It Fl t Ar op 10186d7f5d3SJohn Marinochanges tracing, where 10286d7f5d3SJohn Marino.Em op 10386d7f5d3SJohn Marinois one of the following. 10486d7f5d3SJohn MarinoRequests from processes not running with UID 0 or on distant networks 10586d7f5d3SJohn Marinoare generally ignored by the daemon except for a message in the system log. 10686d7f5d3SJohn Marino.Li gated 10786d7f5d3SJohn Marinois likely to ignore these debugging requests. 10886d7f5d3SJohn Marino.El 10986d7f5d3SJohn Marino.Bl -tag -width Ds -offset indent-two 11086d7f5d3SJohn Marino.It Em on=tracefile 11186d7f5d3SJohn Marinoturns tracing on into the specified file. 11286d7f5d3SJohn MarinoThat file must usually have been specified when the daemon was 11386d7f5d3SJohn Marinostarted or be the same as a fixed name, often 11486d7f5d3SJohn Marino.Pa /etc/routed.trace . 11586d7f5d3SJohn Marino.It Em more 11686d7f5d3SJohn Marinoincreases the debugging level. 11786d7f5d3SJohn Marino.It Em off 11886d7f5d3SJohn Marinoturns off tracing. 11986d7f5d3SJohn Marino.It Em dump 12086d7f5d3SJohn Marinodumps the daemon's routing table to the current tracefile. 12186d7f5d3SJohn Marino.El 12286d7f5d3SJohn Marino.Sh SEE ALSO 12386d7f5d3SJohn Marino.Xr routed 8 12486d7f5d3SJohn Marino.Rs 12586d7f5d3SJohn Marino.%T Routing Information Protocol, RIPv1 12686d7f5d3SJohn Marino.%O RFC 1058 12786d7f5d3SJohn Marino.Re 12886d7f5d3SJohn Marino.Rs 12986d7f5d3SJohn Marino.%T Routing Information Protocol, RIPv2 13086d7f5d3SJohn Marino.%O RFC 1723 13186d7f5d3SJohn Marino.Re 132