| 1 | <refentry xmlns="http://docbook.org/ns/docbook" version="5.0" |
| 2 | xml:id="man.arping"> |
| 3 | |
| 4 | <refentryinfo> |
| 5 | <title>arping</title> |
| 6 | <productname>iputils</productname> |
| 7 | </refentryinfo> |
| 8 | |
| 9 | <refmeta> |
| 10 | <refentrytitle> |
| 11 | <application>arping</application> |
| 12 | </refentrytitle> |
| 13 | <manvolnum>8</manvolnum> |
| 14 | <refmiscinfo class='manual'>iputils</refmiscinfo> |
| 15 | </refmeta> |
| 16 | |
| 17 | <refnamediv> |
| 18 | <refname>arping</refname> |
| 19 | <refpurpose>send ARP REQUEST to a neighbour host</refpurpose> |
| 20 | </refnamediv> |
| 21 | |
| 22 | <refsynopsisdiv> |
| 23 | <cmdsynopsis sepchar=" "> |
| 24 | <command>arping</command> |
| 25 | <arg choice="opt" rep="norepeat"> |
| 26 | <option>-AbDfhqUV</option> |
| 27 | </arg> |
| 28 | <arg choice="opt" rep="norepeat"> |
| 29 | <option>-c |
| 30 | <replaceable>count</replaceable></option> |
| 31 | </arg> |
| 32 | <arg choice="opt" rep="norepeat"> |
| 33 | <option>-w |
| 34 | <replaceable>deadline</replaceable></option> |
| 35 | </arg> |
| 36 | <arg choice="opt" rep="norepeat"> |
| 37 | <option>-i |
| 38 | <replaceable>interval</replaceable></option> |
| 39 | </arg> |
| 40 | <arg choice="opt" rep="norepeat"> |
| 41 | <option>-s |
| 42 | <replaceable>source</replaceable></option> |
| 43 | </arg> |
| 44 | <arg choice="opt" rep="norepeat"> |
| 45 | <option>-I |
| 46 | <replaceable>interface</replaceable></option> |
| 47 | </arg> |
| 48 | <arg choice="req" rep="norepeat">destination</arg> |
| 49 | </cmdsynopsis> |
| 50 | </refsynopsisdiv> |
| 51 | |
| 52 | <refsection xml:id="description"> |
| 53 | <info> |
| 54 | <title>DESCRIPTION</title> |
| 55 | </info> |
| 56 | <para>Ping |
| 57 | <emphasis remap="I">destination</emphasis> on device |
| 58 | <emphasis remap="I">interface</emphasis> by ARP packets, using |
| 59 | source address |
| 60 | <emphasis remap="I">source</emphasis>.</para> |
| 61 | <para>arping supports IPv4 addresses only. For IPv6, see |
| 62 | <citerefentry> |
| 63 | <refentrytitle>ndisc6</refentrytitle> |
| 64 | <manvolnum>8</manvolnum> |
| 65 | </citerefentry>.</para> |
| 66 | </refsection> |
| 67 | |
| 68 | <refsection xml:id="options"> |
| 69 | <info> |
| 70 | <title>OPTIONS</title> |
| 71 | </info> |
| 72 | <variablelist remap='TP'> |
| 73 | <varlistentry> |
| 74 | <term> |
| 75 | <option>-A</option> |
| 76 | </term> |
| 77 | <listitem> |
| 78 | <para>The same as |
| 79 | <option>-U</option>, but ARP REPLY packets used instead |
| 80 | of ARP REQUEST.</para> |
| 81 | </listitem> |
| 82 | </varlistentry> |
| 83 | <varlistentry> |
| 84 | <term> |
| 85 | <option>-b</option> |
| 86 | </term> |
| 87 | <listitem> |
| 88 | <para>Send only MAC level broadcasts. Normally |
| 89 | <command>arping</command> starts from sending broadcast, |
| 90 | and switch to unicast after reply received.</para> |
| 91 | </listitem> |
| 92 | </varlistentry> |
| 93 | <varlistentry> |
| 94 | <term> |
| 95 | <option>-c |
| 96 | <replaceable>count</replaceable></option> |
| 97 | </term> |
| 98 | <listitem> |
| 99 | <para>Stop after sending |
| 100 | <emphasis remap="I">count</emphasis> ARP REQUEST packets. |
| 101 | With |
| 102 | <emphasis remap="I">deadline</emphasis> option, instead |
| 103 | wait for |
| 104 | <emphasis remap="I">count</emphasis> ARP REPLY packets, or |
| 105 | until the timeout expires.</para> |
| 106 | </listitem> |
| 107 | </varlistentry> |
| 108 | <varlistentry> |
| 109 | <term> |
| 110 | <option>-D</option> |
| 111 | </term> |
| 112 | <listitem> |
| 113 | <para>Duplicate address detection mode (DAD). See |
| 114 | RFC2131, 4.4.1. Returns 0, if DAD succeeded i.e. no |
| 115 | replies are received.</para> |
| 116 | </listitem> |
| 117 | </varlistentry> |
| 118 | <varlistentry> |
| 119 | <term> |
| 120 | <option>-f</option> |
| 121 | </term> |
| 122 | <listitem> |
| 123 | <para>Finish after the first reply confirming that target |
| 124 | is alive.</para> |
| 125 | </listitem> |
| 126 | </varlistentry> |
| 127 | <varlistentry> |
| 128 | <term> |
| 129 | <option>-I |
| 130 | <replaceable>interface</replaceable></option> |
| 131 | </term> |
| 132 | <listitem> |
| 133 | <para>Name of network device where to send ARP REQUEST |
| 134 | packets.</para> |
| 135 | </listitem> |
| 136 | </varlistentry> |
| 137 | <varlistentry> |
| 138 | <term> |
| 139 | <option>-h</option> |
| 140 | </term> |
| 141 | <listitem> |
| 142 | <para>Print help page and exit.</para> |
| 143 | </listitem> |
| 144 | </varlistentry> |
| 145 | <varlistentry> |
| 146 | <term> |
| 147 | <option>-q</option> |
| 148 | </term> |
| 149 | <listitem> |
| 150 | <para>Quiet output. Nothing is displayed.</para> |
| 151 | </listitem> |
| 152 | </varlistentry> |
| 153 | <varlistentry> |
| 154 | <term> |
| 155 | <option>-s |
| 156 | <replaceable>source</replaceable></option> |
| 157 | </term> |
| 158 | <listitem> |
| 159 | <para>IP source address to use in ARP packets. If this |
| 160 | option is absent, source address is:</para> |
| 161 | <variablelist remap='TP'> |
| 162 | <varlistentry> |
| 163 | <listitem> |
| 164 | <para>• In DAD mode (with option |
| 165 | <option>-D</option>) set to 0.0.0.0.</para> |
| 166 | </listitem> |
| 167 | </varlistentry> |
| 168 | <varlistentry> |
| 169 | <listitem> |
| 170 | <para>• In Unsolicited ARP mode (with options |
| 171 | <option>-U</option> or |
| 172 | <option>-A</option>) set to |
| 173 | <emphasis remap='I'>destination</emphasis>.</para> |
| 174 | </listitem> |
| 175 | </varlistentry> |
| 176 | <varlistentry> |
| 177 | <listitem> |
| 178 | <para>• Otherwise, it is calculated from routing |
| 179 | tables.</para> |
| 180 | </listitem> |
| 181 | </varlistentry> |
| 182 | </variablelist> |
| 183 | </listitem> |
| 184 | </varlistentry> |
| 185 | <varlistentry> |
| 186 | <term> |
| 187 | <option>-U</option> |
| 188 | </term> |
| 189 | <listitem> |
| 190 | <para>Unsolicited ARP mode to update neighbours' ARP |
| 191 | caches. No replies are expected.</para> |
| 192 | </listitem> |
| 193 | </varlistentry> |
| 194 | <varlistentry> |
| 195 | <term> |
| 196 | <option>-V</option> |
| 197 | </term> |
| 198 | <listitem> |
| 199 | <para>Print version of the program and exit.</para> |
| 200 | </listitem> |
| 201 | </varlistentry> |
| 202 | <varlistentry> |
| 203 | <term> |
| 204 | <option>-w |
| 205 | <replaceable>deadline</replaceable></option> |
| 206 | </term> |
| 207 | <listitem> |
| 208 | <para>Specify a timeout, in seconds, before |
| 209 | <command>arping</command> exits regardless of how many |
| 210 | packets have been sent or received. If any replies are |
| 211 | received, exit with status 0, otherwise status 1. When |
| 212 | combined with the <emphasis remap="I">count</emphasis> |
| 213 | option, exit with status 0 if <emphasis |
| 214 | remap="I">count</emphasis> replies are received before the |
| 215 | deadline expiration, otherwise status 1.</para> |
| 216 | </listitem> |
| 217 | </varlistentry> |
| 218 | <varlistentry> |
| 219 | <term> |
| 220 | <option>-i |
| 221 | <replaceable>interval</replaceable></option> |
| 222 | </term> |
| 223 | <listitem> |
| 224 | <para>Specify an interval, in seconds, between |
| 225 | packets.</para> |
| 226 | </listitem> |
| 227 | </varlistentry> |
| 228 | </variablelist> |
| 229 | </refsection> |
| 230 | |
| 231 | <refsect1 id='see_also'> |
| 232 | <title>SEE ALSO</title> |
| 233 | <para> |
| 234 | <citerefentry> |
| 235 | <refentrytitle>ndisc6</refentrytitle> |
| 236 | <manvolnum>8</manvolnum> |
| 237 | </citerefentry>, |
| 238 | <citerefentry> |
| 239 | <refentrytitle>ping</refentrytitle> |
| 240 | <manvolnum>8</manvolnum> |
| 241 | </citerefentry>, |
| 242 | <citerefentry> |
| 243 | <refentrytitle>clockdiff</refentrytitle> |
| 244 | <manvolnum>8</manvolnum> |
| 245 | </citerefentry>, |
| 246 | <citerefentry> |
| 247 | <refentrytitle>tracepath</refentrytitle> |
| 248 | <manvolnum>8</manvolnum> |
| 249 | </citerefentry>.</para> |
| 250 | </refsect1> |
| 251 | |
| 252 | <refsect1 id='author'> |
| 253 | <title>AUTHOR</title> |
| 254 | <para> |
| 255 | <command>arping</command> was written by Alexey Kuznetsov |
| 256 | <[email protected]>.</para> |
| 257 | </refsect1> |
| 258 | |
| 259 | <refsect1 id='security'> |
| 260 | <title>SECURITY</title> |
| 261 | <para> |
| 262 | <command>arping</command> requires CAP_NET_RAW capability to be |
| 263 | executed. It is not recommended to be used as set-uid root, |
| 264 | because it allows user to modify ARP caches of neighbour |
| 265 | hosts.</para> |
| 266 | </refsect1> |
| 267 | |
| 268 | <refsect1 id='availability'> |
| 269 | <title>AVAILABILITY</title> |
| 270 | <para> |
| 271 | <command>arping</command> is part of |
| 272 | <emphasis remap='I'>iputils</emphasis> package.</para> |
| 273 | </refsect1> |
| 274 | </refentry> |