1.6 ARP

Purpose

Use at the server console to display and modify the IP-to-Ethernet address translation table used by the address resolution protocol (ARP). The hostname can be specified by name or IP address and is associated with an interface.

Syntax



arp [-n] -i interface_name hostname  



arp [-n] -a  arp -d -i interface_name hostname  



arp -d -a  arp -s -i interface_name hostname ether_addr [temp]  arp -S -i interface_name hostname ether_addr [temp]  arp -f filename

Option

Use To

-n

Show IP addresses as numbers to save DNS lookup time. (Normally, ARP attempts to display addresses symbolically.)

-a

Display or delete (with -d option) all of the current ARP entries.

-d

Delete an entry for the host named hostname. It can be combined with the -a option to delete all entries.

-s

Create an ARP entry for the host named hostname (if an ARP entry does not already exist for this hostname) with the Ethernet address ether_addr. The Ethernet address is given as six hex bytes separated by colons ( : ). The entry will be permanent unless the word temp is given in the command.

-S

Similar to -s, except that any existing ARP entry for the hostname will be deleted first.

-f

Cause the filename to be read and multiple entries to be set in the ARP table. Entries in the file should be of the form of interface_name hostname ether_addr [temp].