One Day One GNU/Linux Command
=============================
arp -- Manipulate the Address Resolution Protocol cache
Summary :
ARP is used to find a MAC Address corresponding to an IP Address.
After resolving the address, the result will be stored in kernel
cache. The 'arp' command is used to view/add/del kernel ARP Cache
table entries.
Example:
$ arp -- Show ARP Cache table.
$ arp -v -- For detailed output.
$ arp -n -- Show Address in numeric. Don't try to resolve the names.
$ arp wify -- Show the ARP entry for wify host.
$ arp -a wify -- Same as above.
$ arp -t ether -- Only show ether HW class entries.
$ arp -i eth0 -- Show ARP entries of eth0 interface.
# arp -d 192.168.1.100 -- Delete the ARP entry for this IP.
# arp -s 192.168.1.200 00:0B:22:33:44:55 -- Add a new entry.
# arp -f arps.txt -- Same as above. Here data will be taken from
the arps.txt file.
Read: man arp
HTH :)
--
Bharathi S