1dea673e9SRodney W. Grimes.\" Copyright (c) 1985, 1991, 1993 2dea673e9SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 3dea673e9SRodney W. Grimes.\" 4dea673e9SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 5dea673e9SRodney W. Grimes.\" modification, are permitted provided that the following conditions 6dea673e9SRodney W. Grimes.\" are met: 7dea673e9SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 8dea673e9SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 9dea673e9SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 10dea673e9SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 11dea673e9SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 12fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 13dea673e9SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 14dea673e9SRodney W. Grimes.\" without specific prior written permission. 15dea673e9SRodney W. Grimes.\" 16dea673e9SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17dea673e9SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18dea673e9SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19dea673e9SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20dea673e9SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21dea673e9SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22dea673e9SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23dea673e9SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24dea673e9SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25dea673e9SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26dea673e9SRodney W. Grimes.\" SUCH DAMAGE. 27dea673e9SRodney W. Grimes.\" 28aeeff830SGordon Bergling.Dd July 13, 2020 29dea673e9SRodney W. Grimes.Dt ARP 8 30a4c37c81SRuslan Ermilov.Os 31dea673e9SRodney W. Grimes.Sh NAME 32dea673e9SRodney W. Grimes.Nm arp 33dea673e9SRodney W. Grimes.Nd address resolution display and control 34dea673e9SRodney W. Grimes.Sh SYNOPSIS 35e97407b4SRuslan Ermilov.Nm 36a2ac74c1SRenato Botelho.Op Fl -libxo Ar options 37c72049e4SPhilippe Charnier.Op Fl n 38b9de94e9SYaroslav Tykhiy.Op Fl i Ar interface 39dea673e9SRodney W. Grimes.Ar hostname 40e97407b4SRuslan Ermilov.Nm 41a2ac74c1SRenato Botelho.Op Fl -libxo Ar options 42c72049e4SPhilippe Charnier.Op Fl n 43b9de94e9SYaroslav Tykhiy.Op Fl i Ar interface 44dea673e9SRodney W. Grimes.Fl a 45e97407b4SRuslan Ermilov.Nm 46dea673e9SRodney W. Grimes.Fl d Ar hostname 47e97407b4SRuslan Ermilov.Nm 488dc4b495SJulian Elischer.Fl d 4908369852SBrooks Davis.Op Fl i Ar interface 508dc4b495SJulian Elischer.Fl a 51e97407b4SRuslan Ermilov.Nm 52dea673e9SRodney W. Grimes.Fl s Ar hostname ether_addr 533054b088SRuslan Ermilov.Op Cm temp 542293dac2STom Rhodes.Op Cm blackhole No \&| Cm reject 559711a168SGleb Smirnoff.Op Cm pub 56e97407b4SRuslan Ermilov.Nm 57a42a667dSPoul-Henning Kamp.Fl S Ar hostname ether_addr 583054b088SRuslan Ermilov.Op Cm temp 592293dac2STom Rhodes.Op Cm blackhole No \&| Cm reject 609711a168SGleb Smirnoff.Op Cm pub 61e97407b4SRuslan Ermilov.Nm 62dea673e9SRodney W. Grimes.Fl f Ar filename 63dea673e9SRodney W. Grimes.Sh DESCRIPTION 64dea673e9SRodney W. GrimesThe 65c72049e4SPhilippe Charnier.Nm 66490d5836SPhilippe Charnierutility displays and modifies the Internet-to-Ethernet address translation 67dea673e9SRodney W. Grimestables used by the address resolution protocol 68dea673e9SRodney W. Grimes.Pq Xr arp 4 . 69dea673e9SRodney W. GrimesWith no flags, the program displays the current 70dea673e9SRodney W. Grimes.Tn ARP 71dea673e9SRodney W. Grimesentry for 72dea673e9SRodney W. Grimes.Ar hostname . 73dea673e9SRodney W. GrimesThe host may be specified by name or by number, 74dea673e9SRodney W. Grimesusing Internet dot notation. 75dea673e9SRodney W. Grimes.Pp 76dea673e9SRodney W. GrimesAvailable options: 773054b088SRuslan Ermilov.Bl -tag -width indent 78a2ac74c1SRenato Botelho.It Fl -libxo 79a2ac74c1SRenato BotelhoGenerate output via 80a2ac74c1SRenato Botelho.Xr libxo 3 81a2ac74c1SRenato Botelhoin a selection of different human and machine readable formats. 82a2ac74c1SRenato BotelhoSee 83a2ac74c1SRenato Botelho.Xr xo_parse_args 3 84a2ac74c1SRenato Botelhofor details on command line arguments. 85dea673e9SRodney W. Grimes.It Fl a 86aeeff830SGordon BerglingThe program displays or, if it is used with the 87aeeff830SGordon Bergling.Fl d 88aeeff830SGordon Berglingflag, deletes all of the current 89dea673e9SRodney W. Grimes.Tn ARP 90dea673e9SRodney W. Grimesentries. 91dea673e9SRodney W. Grimes.It Fl d 92dea673e9SRodney W. GrimesA super-user may delete an entry for the host called 93dea673e9SRodney W. Grimes.Ar hostname 94dea673e9SRodney W. Grimeswith the 95dea673e9SRodney W. Grimes.Fl d 96e03bb411SArchie Cobbsflag. 973f844a22SRuslan Ermilov.Pp 98*cd917a17SLexi WinterThe 993f844a22SRuslan Ermilov.Fl d 1003f844a22SRuslan Ermilovflag may be combined with the 1018dc4b495SJulian Elischer.Fl a 1028dc4b495SJulian Elischerflag to delete all entries. 103b9de94e9SYaroslav Tykhiy.It Fl i Ar interface 104b9de94e9SYaroslav TykhiyLimit the operation scope to the 105b9de94e9SYaroslav Tykhiy.Tn ARP 106b9de94e9SYaroslav Tykhiyentries on 107b9de94e9SYaroslav Tykhiy.Ar interface . 10881cd89bdSYaroslav TykhiyApplicable only to the following operations: 10981cd89bdSYaroslav Tykhiydisplay one, display all, delete all. 110c72049e4SPhilippe Charnier.It Fl n 111c72049e4SPhilippe CharnierShow network addresses as numbers (normally 112c72049e4SPhilippe Charnier.Nm 113c72049e4SPhilippe Charnierattempts to display addresses symbolically). 114dea673e9SRodney W. Grimes.It Fl s Ar hostname ether_addr 115dea673e9SRodney W. GrimesCreate an 116dea673e9SRodney W. Grimes.Tn ARP 117dea673e9SRodney W. Grimesentry for the host called 118dea673e9SRodney W. Grimes.Ar hostname 119dea673e9SRodney W. Grimeswith the Ethernet address 120dea673e9SRodney W. Grimes.Ar ether_addr . 121dea673e9SRodney W. GrimesThe Ethernet address is given as six hex bytes separated by colons. 122dea673e9SRodney W. GrimesThe entry will be permanent unless the word 1233054b088SRuslan Ermilov.Cm temp 124dea673e9SRodney W. Grimesis given in the command. 125dea673e9SRodney W. GrimesIf the word 1263054b088SRuslan Ermilov.Cm pub 1273f844a22SRuslan Ermilovis given, the entry will be 1283f844a22SRuslan Ermilov.Dq published ; 1293f844a22SRuslan Ermilovi.e., this system will 130dea673e9SRodney W. Grimesact as an 131dea673e9SRodney W. Grimes.Tn ARP 132dea673e9SRodney W. Grimesserver, 133dea673e9SRodney W. Grimesresponding to requests for 134dea673e9SRodney W. Grimes.Ar hostname 135dea673e9SRodney W. Grimeseven though the host address is not its own. 1363054b088SRuslan ErmilovIn this case the 1373054b088SRuslan Ermilov.Ar ether_addr 1383054b088SRuslan Ermilovcan be given as 1393054b088SRuslan Ermilov.Cm auto 140a42a667dSPoul-Henning Kampin which case the interfaces on this host will be examined, 141a42a667dSPoul-Henning Kampand if one of them is found to occupy the same subnet, its 1423054b088SRuslan ErmilovEthernet address will be used. 143e653f1f0SSam Leffler.Pp 144e653f1f0SSam LefflerIf the 145e653f1f0SSam Leffler.Cm reject 146e653f1f0SSam Lefflerkeyword is specified the entry will be marked so that traffic to 147e653f1f0SSam Lefflerthe host will be discarded and the sender will be notified the 148e653f1f0SSam Lefflerhost is unreachable. 149e653f1f0SSam LefflerThe 150e653f1f0SSam Leffler.Cm blackhole 1513d172894SRuslan Ermilovkeyword is similar in that traffic is discarded but the sender is 152e653f1f0SSam Lefflernot notified. 153e653f1f0SSam LefflerThese can be used to block external traffic to a host without 154e653f1f0SSam Lefflerusing a firewall. 155a42a667dSPoul-Henning Kamp.It Fl S Ar hostname ether_addr 156a42a667dSPoul-Henning KampIs just like 157a42a667dSPoul-Henning Kamp.Fl s 1583054b088SRuslan Ermilovexcept any existing 1593054b088SRuslan Ermilov.Tn ARP 1603054b088SRuslan Ermiloventry for this host will be deleted first. 1617dfa1182SGiorgos Keramidas.It Fl f Ar filename 162490d5836SPhilippe CharnierCause the file 163dea673e9SRodney W. Grimes.Ar filename 164dea673e9SRodney W. Grimesto be read and multiple entries to be set in the 165dea673e9SRodney W. Grimes.Tn ARP 16607bfccd7SRuslan Ermilovtables. 16707bfccd7SRuslan ErmilovEntries 168dea673e9SRodney W. Grimesin the file should be of the form 169dea673e9SRodney W. Grimes.Pp 17046eea498SRuslan Ermilov.Bd -ragged -offset indent -compact 171dea673e9SRodney W. Grimes.Ar hostname ether_addr 1723054b088SRuslan Ermilov.Op Cm temp 1732293dac2STom Rhodes.Op Cm blackhole No \&| Cm reject 1749711a168SGleb Smirnoff.Op Cm pub 175dea673e9SRodney W. Grimes.Ed 176dea673e9SRodney W. Grimes.Pp 177dea673e9SRodney W. Grimeswith argument meanings as given above. 17844acbc1aSRuslan ErmilovLeading whitespace and empty lines are ignored. 17944acbc1aSRuslan ErmilovA 18044acbc1aSRuslan Ermilov.Ql # 18144acbc1aSRuslan Ermilovcharacter will mark the rest of the line as a comment. 182dea673e9SRodney W. Grimes.El 183dea673e9SRodney W. Grimes.Sh SEE ALSO 184dea673e9SRodney W. Grimes.Xr inet 3 , 185a2ac74c1SRenato Botelho.Xr libxo 3 , 186a2ac74c1SRenato Botelho.Xr xo_parse_args 3 , 187dea673e9SRodney W. Grimes.Xr arp 4 , 188113eaf9bSDaniel Gerzo.Xr ifconfig 8 , 189113eaf9bSDaniel Gerzo.Xr ndp 8 190dea673e9SRodney W. Grimes.Sh HISTORY 191dea673e9SRodney W. GrimesThe 192dea673e9SRodney W. Grimes.Nm 193490d5836SPhilippe Charnierutility appeared in 194dea673e9SRodney W. Grimes.Bx 4.3 . 195