Man Pages (1MTSOL): Maintenance and Administration Commands
只搜尋這本書
以 PDF 格式下載這本書

NAME

arp - Display and control address resolution

SYNOPSIS

/usr/sbin/arp hostname
/usr/sbin/arp -a
/usr/sbin/arp -d hostname
/usr/sbin/arp -f filename
/usr/sbin/arp -s hostname ether_address [ temp ] [ pub ] [ trail ]

AVAILABILITY

SUNWcsu

DESCRIPTION

The arp program displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol. [See arp (7P).]
With no flags, the program displays the current ARP entry for hostname. The host may be specified by name or by number, using Internet dot notation.

OPTIONS

-a
Display all the current ARP entries. These are the definitions for the flags in the table:
P
Publish; includes IP address for the machine and the addresses that have explicitly been added by the -s option. ARP will respond to ARP requests for this address.
S
Static; not learned for the ARP protocol
U
Unresolved; waiting for ARP response
M
Mapping; used only for the multicast entry for 224.0.0.0
This option must be run at a sensitivitly label of ADMIN_HIGH and effective uid of 0 . This restriction can be overridden by inheriting the file_mac_read and file_dac_read privileges.
-d
Delete an entry for the host called hostname.
-f
Read the file named filename and set multiple entries in the ARP tables. Entries in the file should take the form
hostname ether_address [ temp ] [ pub ] [ trail ]
(The description for the -s option shows the argument definitions.)
-s
Create an ARP entry for the host called hostname with the Ethernet address ether_address. The Ethernet address is given as six hexadecimal bytes separated by colons. The entry will be permanent unless the word temp is given in the command. If the word pub is given, the entry will be published. For instance, this system will respond to ARP requests for hostname even though the hostname is not its own. The word trail indicates that trailer encapsulations may be sent to this host. arp -s can be used for a limited form of proxy ARP when a host on one of the directly attached networks is not physically present on the subnet. Another machine can then be configured to respond to ARP requests using arp -s. This
respomse is useful in certain SLIP or PPP configurations.

SUMMARY OF TRUSTED

To run, options -d, -f, and -s need to inherit the sys_net_config privilege. Option -a needs to be run at a sensitivity label of ADMIN_HIGH and effective uid of 0 ;this restriction can be overridden by inheriting the file_mac_read and file_dac_read privileges.

SOLARIS CHANGES

SEE ALSO

ifconfig (1MTSOL),arp (7P)