File: rdisc.xml

package info (click to toggle)
iputils 3%3A20210202-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,584 kB
  • sloc: ansic: 10,801; xml: 2,428; sh: 302; makefile: 37
file content (265 lines) | stat: -rw-r--r-- 8,346 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0"
xml:id="man.rdisc">

  <refentryinfo>
    <title>rdisc</title>
    <productname>iputils</productname>
  </refentryinfo>

  <refmeta>
    <refentrytitle>
      <application>rdisc</application>
    </refentrytitle>
    <manvolnum>8</manvolnum>
    <refmiscinfo class='manual'>iputils</refmiscinfo>
  </refmeta>

  <refnamediv>
    <refname>rdisc</refname>
    <refpurpose>network router discovery daemon</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <cmdsynopsis>
      <command>rdisc</command>
      <arg choice="opt" rep="norepeat">
        <option>-abdfrstvV</option>
      </arg>
      <arg choice="opt" rep="norepeat">
        <option>-p
        <replaceable>preference</replaceable></option>
      </arg>
      <arg choice="opt" rep="norepeat">
        <option>-T
        <replaceable>max_interval</replaceable></option>
      </arg>
      <arg choice="opt" rep="norepeat">send_address</arg>
      <arg choice="opt" rep="norepeat">receive_address</arg>
    </cmdsynopsis>
  </refsynopsisdiv>

  <refsection xml:id="description">
    <info>
      <title>DESCRIPTION</title>
    </info>
    <para>
    <command>rdisc</command> implements client side of the ICMP
    Internet Router Discovery Protocol (IRDP).
    <command>rdisc</command> is invoked at boot time to populate the
    network routing tables with default routes.</para>
    <para>
    <command>rdisc</command> listens on the ALL_HOSTS (224.0.0.1)
    multicast address (or
    <emphasis remap="I">receive_address</emphasis> if it is provided)
    for ROUTER_ADVERTISE messages from routers. The received
    messages are handled by first ignoring those listed router
    addresses with which the host does not share a network. Among
    the remaining addresses the ones with the highest preference
    are selected as default routers and a default route is entered
    in the kernel routing table for each one of them.</para>
    <para>Optionally,
    <command>rdisc</command> can avoid waiting for routers to
    announce themselves by sending out a few ROUTER_SOLICITATION
    messages to the ALL_ROUTERS (224.0.0.2) multicast address (or
    <emphasis remap="I">send_address</emphasis> if it is provided)
    when it is started.</para>
    <para>A timer is associated with each router address and the
    address will no longer be considered for inclusion in the
    routing tables if the timer expires before a new
    <emphasis remap="B">advertise</emphasis> message is received
    from the router. The address will also be excluded from
    consideration if the received
    <emphasis remap="B">advertise</emphasis> message has a
    preference of maximum negative.</para>
    <para>Server side of router discovery protocol is supported by
    Cisco IOS and by any more or less complete UNIX routing daemon,
    for example
    <emphasis remap="B">gated</emphasis>. If compiled with
    ENABLE_RDISC_SERVER, <command>rdisc</command> can act as
    responder.</para>
  </refsection>

  <refsection xml:id="options">
    <info>
      <title>OPTIONS</title>
    </info>
    <variablelist remap="TP">
      <varlistentry>
        <term>
          <option>-a</option>
        </term>
        <listitem>
          <para>Accept all routers independently of the preference
          they have in their
          <emphasis remap="B">advertise</emphasis> messages.
          Normally
          <command>rdisc</command> only accepts (and enters in the
          kernel routing tables) the router or routers with the
          highest preference.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-b</option>
        </term>
        <listitem>
          <para>Opposite to
          <option>-a</option>, i.e. install only router with the
          best preference value. This is the default behaviour.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-d</option>
        </term>
        <listitem>
          <para>Send debugging messages to syslog.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-f</option>
        </term>
        <listitem>
          <para>Keep
          <command>rdisc</command> running in the background even
          if no routers are found. Normally
          <command>rdisc</command> gives up if it has not received
          any
          <emphasis remap="B">advertise</emphasis> message after
          soliciting three times. In this case it exits with
          a non-zero exit code. If
          <option>-f</option> is not specified in the first form
          then
          <option>-s</option> must be specified.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-r</option>
        </term>
        <listitem>
          <para>Responder mode, available only if compiled with
          ENABLE_RDISC_SERVER.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-s</option>
        </term>
        <listitem>
          <para>Send three
          <emphasis remap="B">solicitation</emphasis> messages
          initially to quickly discover the routers when the system
          is booted. When
          <option>-s</option> is specified
          <command>rdisc</command> exits with a non-zero exit code
          if it can not find any routers. This can be overridden
          with the
          <option>-f</option> option.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-p</option>
          <emphasis remap="I">preference</emphasis>
        </term>
        <listitem>
          <para>Set preference in advertisement messages. Available only
          with -r option.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-T</option>
          <emphasis remap="I">max_interval</emphasis>
        </term>
        <listitem>
          <para>Set maximum advertisement interval in seconds.
          Default is 600. Available only with -r
          option.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-t</option>
        </term>
        <listitem>
          <para>Test mode. Do not go to background.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-v</option>
        </term>
        <listitem>
          <para>Be verbose and send lots of debugging messages to
          syslog.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <option>-V</option>
        </term>
        <listitem>
          <para>Print version and exit.</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection xml:id="history">
    <info>
      <title>HISTORY</title>
    </info>
    <para>This program was developed by Sun Microsystems (see
    copyright notice in source file). It was ported to Linux by
    Alexey Kuznetsov <email>kuznet@ms2.inr.ac.ru</email>.</para>
  </refsection>

  <refsection xml:id="see_also">
    <info>
      <title>SEE ALSO</title>
    </info>
    <para>
    <citerefentry>
      <refentrytitle>icmp</refentrytitle>
      <manvolnum>7</manvolnum>
    </citerefentry>,
    <citerefentry>
      <refentrytitle>inet</refentrytitle>
      <manvolnum>7</manvolnum>
    </citerefentry>,
    <citerefentry>
      <refentrytitle>ping</refentrytitle>
      <manvolnum>8</manvolnum>
    </citerefentry>.</para>
  </refsection>

  <refsection xml:id="references">
    <info>
      <title>REFERENCES</title>
    </info>
    <para>RFC1256 ICMP Router Discovery Messages. S. Deering, Ed..
    September 1991.</para>
  </refsection>

  <refsection xml:id="security">
    <info>
      <title>SECURITY</title>
    </info>
    <para>
    <command>rdisc</command> requires CAP_NET_RAW to listen and send
    ICMP messages and capability CAP_NET_ADMIN to update routing
    tables.</para>
  </refsection>

  <refsection xml:id="availability">
    <info>
      <title>AVAILABILITY</title>
    </info>
    <para>
    <command>rdisc</command> is part of
    <emphasis remap="I">iputils</emphasis> package.</para>
  </refsection>
</refentry>