
arp | 47
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
arp
arp [options]
TCP/IP command. Clear, add to, or dump the kernel’s Address
Resolution Protocol (ARP) cache (/proc/net/arp). ARP is used to
translate protocol addresses to hardware interface addresses. Modi-
fying your ARP cache can change which interfaces handle specific
requests. ARP cache entries may be marked with the following
flags: C (complete), M (permanent), and P (publish). While arp
can create a proxy for a single system, subnet proxies are now
handled by the arp kernel module, arp(7). See the “Linux 2.4 or
later Advanced Routing HOWTO” for details.
Options
host option arguments may be given as either a hostname or an IP
address. With the -D option, they may also be given as a hardware
interface address (e.g., eth0, eth1).
-a [hosts], --display [hosts]
Display entries for hosts or, if none are specified, all entries.
-d host [pub], --delete host [pub]
Remove the specified host’s entry. To delete a proxy entry, add
the pub argument and specify the interface associated with the
proxy using -i.
-D, --use-device
Use the hardware address associated with the specified inter-
face. This may be used with -s when creating a proxy entry.
-f file, --file file
Read entries from file and add them.
-H type, --hw-type type, -t type
Search for type entries when examining the