ARP is commonly used to translate the protocol addresses to hardware interface addresses. Modifying the ARP cache can change which interfaces handles the 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 can be handled by the arp kernel module.
arp [-evn] [-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 ifa [netmask nm] pub
arp [-vnD] [-H type] [-i if] -f [filename]
-a [hosts] , --display [hosts]
Removes 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 host [pub] , --delete host [pub]
Use the hardware address associated with the specified interface. This may be used with -s when creating a proxy entry.-D, --use-device
Read the entries from a file and add them.-f file, --file file
Search for type entries when examining the ARP cache. type is usually ether (Ethernet), which is the default, but may be ax25 (AX.25 packet radio), arcnet (ARCnet), pronet (PROnet), or netrom (NET/ROM).-H type, --hw-type type, -t type
Select an interface. If you need to dump the ARP cache, this option will cause the command to display the entries using that interface. When setting entries, this will cause the interface to be associated with that entry. If you do not use this option when setting an entry, the kernel will guess.-i interface, --device interface
Display host IP addresses instead of their domain names.-n, --numeric
It Adds a permanent entry for host at hardware-address. A hardware-address for type ether hardware is 6 hexadecimal bytes, colon-separated. The pub argument can be used to set the publish flag, creating a proxy entry.-s host hardware-address [netmask mask] [pub] , --set host hardware-address [pub]
Verbose mode.-v, --verbose
Here are all the possible states for entries in the neighbor table.
Table 2.1. Active ARP cache entry states
ARP cache entry state meaning action if used permanent never expires; never verified reset use counter noarp normal expiration; never verified reset use counter reachable normal expiration reset use counter stale still usable; needs verification reset use counter; change state to delay delay schedule ARP request; needs verification reset use counter probe sending ARP request reset use counter incomplete first ARP request sent send ARP request failed no response received send ARP request
Post a Comment