RTQUERY(8)              NetBSD System Manager's Manual              RTQUERY(8)

NNAAMMEE
     rrttqquueerryy - query routing daemons for their routing tables

SSYYNNOOPPSSIISS
     rrttqquueerryy [--nnpp11] [--ww _t_i_m_e_o_u_t] [--rr _a_d_d_r] [--aa _s_e_c_r_e_t] _h_o_s_t _._._.
     rrttqquueerryy [--tt _o_p] _h_o_s_t _._._.

DDEESSCCRRIIPPTTIIOONN
     rrttqquueerryy is used to query a RIP network routing daemon, routed(8) or
     gated(8),  for its routing table by sending a _r_e_q_u_e_s_t or _p_o_l_l command.
     The routing information in any routing _r_e_s_p_o_n_s_e packets returned is dis-
     played numerically and symbolically.

     rrttqquueerryy by default uses the _r_e_q_u_e_s_t command.  When the _-_p option is spec-
     ified, rrttqquueerryy uses the _p_o_l_l command, an undocumented extension to the
     RIP protocol supported by gated(8).  When querying gated, the _p_o_l_l com-
     mand is preferred over the _r_e_q_u_e_s_t command because the response is not
     subject to Split Horizon and/or Poisoned Reverse, and because some ver-
     sions of gated do not answer the _r_e_q_u_e_s_t command.  routed(8) does not an-
     swer the _p_o_l_l command, but recognizes _r_e_q_u_e_s_t_s coming from rrttqquueerryy and so
     answers completely.

     rrttqquueerryy is also used to turn tracing on or off in routed(8).

     Options supported by rrttqquueerryy:

     --nn      Normally network and host numbers are displayed both symbolically
             and numerically.  The --nn option displays only the numeric network
             and host numbers.

     --pp      Uses the _p_o_l_l command to request full routing information from
             gated(8).  This is an undocumented extension RIP protocol sup-
             ported only by gated(8).

     --11      query using RIP version 1 instead of RIP version 2.

     --ww _t_i_m_e_o_u_t
             changes the delay for an answer from each host.  By default, each
             host is given 15 seconds to respond.

     --rr _a_d_d_r
             ask about the route to destination _a_d_d_r.

     --aa _p_a_s_s_w_d_=_X_X_X

     --aa _m_d_5___p_a_s_s_w_d_=_X_X_X_|_K_e_y_I_D
             cause the query to be sent with the indicated cleartext or MD5
             password.

     --tt _o_p   change tracing, where _o_p is one of the following.  Requests from
             processes not running with UID 0 or on distant networks are gen-
             erally ignored by the daemon except for a message in the system
             log.  gated(8) is likely to ignore these debugging requests.

               _o_n_=_t_r_a_c_e_f_i_l_e
                       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
                       _/_e_t_c_/_r_o_u_t_e_d_._t_r_a_c_e.

               _m_o_r_e    increases the debugging level.


               _o_f_f     turns off tracing.

               _d_u_m_p    dumps the daemon's routing table to the current trace-
                       file.

SSEEEE AALLSSOO
     routed(8),  gated(8)
     RFC 1058 - Routing Information Protocol, RIPv1
     RFC 1723 - Routing Information Protocol, RIPv2

4.4BSD                           June 1, 1996                                2
