other versions
other sections
conflicting packages
ARP(8) | Linux Programmer's Manual | ARP(8) |
NAME¶
arp - manipulate the system ARP cacheSYNOPSIS¶
arp [-vn] [-H type] [-i if] [-a] [hostname] arp [-v] [-i if] -d hostname [pub] arp [-v] [-H type] [-i if] -s hostname hw_addr [temp] arp [-v] [-H type] [-i if] -s hostname hw_addr [netmask nm] pub arp [-v] [-H type] [-i if] -Ds hostname ifname [netmask nm] pub arp [-vnD] [-H type] [-i if] -f [filename]DESCRIPTION¶
Arp manipulates or displays the kernel's IPv4 network neighbour cache. It can add entries to the table, delete one or display the current content.MODES¶
arp with no mode specifier will print the current content of the table. It is possible to limit the number of entries printed, by specifying an hardware address type, interface name or host address.OPTIONS¶
- -v, --verbose
- Tell the user what is going on by being verbose.
- -n, --numeric
- shows numerical addresses instead of trying to determine symbolic host, port or user names.
- -H type, --hw-type type
- When setting or reading the ARP cache, this optional parameter tells arp which class of entries it should check for. The default value of this parameter is ether (i.e. hardware code 0x01 for IEEE 802.3 10Mbps Ethernet). Other values might include network technologies such as ARCnet (arcnet) , PROnet (pronet) , AX.25 (ax25) and NET/ROM (netrom).
- -a
- Use alternate BSD style output format (with no fixed columns).
- -D, --use-device
- Instead of a hw_addr, the given argument is the name of an interface. arp will use the MAC address of that interface for the table entry. This is usually the best option to set up a proxy ARP entry to yourself.
- -i If, --device If
- Select an interface. When dumping the ARP cache only
entries matching the specified interface will be printed. When setting a
permanent or temp ARP entry this interface will be associated with
the entry; if this option is not used, the kernel will guess based on the
routing table. For pub entries the specified interface is the
interface on which ARP requests will be answered.
- -f filename, --file filename
- Similar to the -s option, only this time the address
info is taken from file filename. This can be used if ARP entries
for a lot of hosts have to be set up. The name of the data file is very
often /etc/ethers, but this is not official. If no filename is
specified /etc/ethers is used as default.
EXSAMPLES¶
/usr/sbin/arp -i eth0 -Ds 10.0.0.2 eth1 pubFILES¶
/proc/net/arpSEE ALSO¶
rarp(8), route(8), ifconfig(8), netstat(8)AUTHORS¶
Fred N. van Kempen <waltje@uwalt.nl.mugnet.org>, Bernd Eckenfels <net-tools@lina.inka.de>.2007-12-01 | net-tools |