RTQUERY(8)
π RTQUERY β rtquery(8)
okay so bestie, picture this: a whole manual page from the System Manager's Manual section 8, and it's about rtquery. that's the vibe. let's get into it π
β¨ NAME β¨
rtquery β query routing daemons for their routing tables π°οΈ
π DEPRECATION NOTICE π
okay so this is the part where i hold your hand. rtquery is deprecated and it will be removed in FreeBSD 16.0. so likeβ¦ enjoy it while it's here, bestie, because it's giving end-of-an-era π
πΈ SYNOPSIS πΈ
rtquery [-np1] [-w timeout] [-r addr] [-a secret] host ...
rtquery [-t op] host ...
like, two whole forms. pick your fighter π
π¦ DESCRIPTION π¦
so rtquery is the little utility that hits up a RIP network routing daemon (think routed(8)) and asks it for its routing table β by sending a request or poll command. and the routing info that comes back in any routing response packets? it gets displayed numerically and symbolically, both. iconic β¨
by default, rtquery uses the request command. but when you throw the -p option in there, it uses the poll command instead β which is an undocumented extension to the RIP protocol, supported by the commercial gated routing product. π
and when you're querying gated, the poll command is highkey preferred over request because:
- the response is not subject to Split Horizon and/or Poisoned Reverse π
- some versions of
gatedliterally do not answer the request command π
meanwhile routed(8) does not answer the poll command β but it does recognize requests coming from rtquery, so it answers completely. teamwork, fr fr π«Ά
also, fun fact: rtquery is also used to turn tracing on or off in routed(8). multi-talented. main character energy.
the following options are available:
π OPTIONS π
-nβ displays only the numeric network and host numbers, instead of both numeric and symbolic. no names, just digits, we love a minimalist π-pβ uses the poll command to request full routing information fromgated. this is an undocumented extension RIP protocol supported only bygated. exclusive behavior π-1β queries using RIP version 1 instead of RIP version 2. throwback era π°οΈ-w timeoutβ changes the delay for an answer from each host. by default, each host is given 15 seconds to respond. clock's ticking bestie β°-r addrβ asks about the route to destination addr. like "hey what's the way to this place" πΊοΈ-a passwd=XXXβ the cleartext password flavor of-aπ-a md5_passwd=XXX|KeyIDβ causes the query to be sent with the indicated cleartext or MD5 password. MD5 flavor, spicy πΆοΈ-t opβ changes tracing, where op is one of the following:on=tracefileβ 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/etc/routed.trace. πmoreβ increases the debugging level. more chaos, more info π₯offβ turns off tracing. lights out πdumpβ dumps the daemon's routing table to the current tracefile. spill the tea, daemon β
β οΈ important caveat bestie: requests from processes not running with UID 0, or on distant networks, are generally ignored by the daemon β except for a message in the system log. and gated is likely to ignore these debugging requests. so don't come crying if nothing happens π
π SEE ALSO π
routed(8)- Routing Information Protocol, RIPv1,
RFC1058. - Routing Information Protocol, RIPv2,
RFC1723.
and that's the whole page, bestie π this one's from the Debian crew, dated May 20, 2025 β so go forth, query those routing daemons, and slay β¨ππ¦
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms