1 .\" Copyright (c) 2012 Apple Inc. All rights reserved.
3 .\" @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 .\" This file contains Original Code and/or Modifications of Original Code
6 .\" as defined in and that are subject to the Apple Public Source License
7 .\" Version 2.0 (the 'License'). You may not use this file except in
8 .\" compliance with the License. The rights granted to you under the License
9 .\" may not be used to create, or enable the creation or redistribution of,
10 .\" unlawful or unlicensed copies of an Apple operating system, or to
11 .\" circumvent, violate, or enable the circumvention or violation of, any
12 .\" terms of an Apple operating system software license agreement.
14 .\" Please obtain a copy of the License at
15 .\" http://www.opensource.apple.com/apsl/ and read it before using this file.
17 .\" The Original Code and all software distributed under the License are
18 .\" distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
19 .\" EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
20 .\" INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
21 .\" FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
22 .\" Please see the License for the specific language governing rights and
23 .\" limitations under the License.
25 .\" @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 .\" Copyright (c) 1985, 1991, 1993
28 .\" The Regents of the University of California. All rights reserved.
30 .\" Redistribution and use in source and binary forms, with or without
31 .\" modification, are permitted provided that the following conditions
33 .\" 1. Redistributions of source code must retain the above copyright
34 .\" notice, this list of conditions and the following disclaimer.
35 .\" 2. Redistributions in binary form must reproduce the above copyright
36 .\" notice, this list of conditions and the following disclaimer in the
37 .\" documentation and/or other materials provided with the distribution.
38 .\" 4. Neither the name of the University nor the names of its contributors
39 .\" may be used to endorse or promote products derived from this software
40 .\" without specific prior written permission.
42 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
43 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
44 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
45 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
46 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
47 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
48 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
49 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
50 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
51 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 .\" @(#)arp.8 8.1 (Berkeley) 6/6/93
55 .\" $FreeBSD: src/usr.sbin/arp/arp.8,v 1.25.2.1 2008/04/25 16:38:14 sam Exp $
62 .Nd address resolution display and control
76 .Op Cm ifscope interface
82 .Fl s Ar hostname ether_addr
87 .Op Cm ifscope interface
89 .Fl S Ar hostname ether_addr
94 .Op Cm ifscope interface
100 utility displays and modifies the Internet-to-Ethernet address translation
101 tables used by the address resolution protocol
103 With no flags, the program displays the current
107 The host may be specified by name or by number,
108 using Internet dot notation.
111 .Bl -tag -width indent
113 The program displays or deletes all of the current
117 A super-user may delete an entry for the host called
124 keyword is specified, only the
128 for this host will be deleted.
131 keyword is specified, the entry specific to the interface will be deleted.
135 flag may be combined with the
137 flag to delete all entries.
138 .It Fl i Ar interface
139 Limit the operation scope to the
143 Applicable only to the following operations:
144 display one, display all, delete all.
146 Show link-layer reachability information.
148 Show network addresses as numbers (normally
150 attempts to display addresses symbolically).
151 .It Fl s Ar hostname ether_addr
154 entry for the host called
156 with the Ethernet address
158 The Ethernet address is given as six hex bytes separated by colons.
159 The entry will be permanent unless the word
161 is given in the command.
164 is given, the entry will be
166 i.e., this system will
170 responding to requests for
172 even though the host address is not its own.
177 in which case the interfaces on this host will be examined,
178 and if one of them is found to occupy the same subnet, its
179 Ethernet address will be used.
182 keyword is also specified, this will create a
183 .Dq "published (proxy only)"
185 This type of entry is created automatically if
187 detects that a routing table entry for
193 keyword is specified the entry will be marked so that traffic to
194 the host will be discarded and the sender will be notified the
198 keyword is similar in that traffic is discarded but the sender is
200 These can be used to block external traffic to a host without
205 keyword is specified, the entry will set with an additional property that
206 strictly associate the entry to the interface. This allows
207 for the presence of mutiple entries with the same destination
208 on different interfaces.
209 .It Fl S Ar hostname ether_addr
214 entry for this host will be deleted first.
218 to be read and multiple entries to be set in the
222 in the file should be of the form
224 .Bd -ragged -offset indent -compact
225 .Ar hostname ether_addr
227 .Op Cm pub Op Cm only
228 .Op Cm ifscope interface
231 with argument meanings as given above.
232 Leading whitespace and empty lines are ignored.
235 character will mark the rest of the line as a comment.
237 Show extended link-layer reachability information in addition to that shown by