add Berkeley specific header
[unix-history] / usr / src / usr.sbin / arp / arp.8
CommitLineData
55270cae
KM
1.\" Copyright (c) 1985 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
1350878a 5.\" @(#)arp.8 6.2 (Berkeley) %G%
55270cae
KM
6.\"
7.TH ARP 8C ""
8.UC 6
9.SH NAME
10arp \- address resolution display and control
11.SH SYNOPSIS
12.B arp
13.I hostname
14.br
15.B arp -a
16[
17.I vmunix
18] [
19.I kmem
20]
21.br
22.B arp -d
23.I hostname
24.br
25.B arp -s
26.I hostname ether_addr
27[
28.B temp
29] [
30.B pub
1350878a
MK
31] [
32.B trail
55270cae
KM
33]
34.br
35.B arp -f
36.I filename
37.SH DESCRIPTION
38The
39.I arp
40program displays and modifies the Internet-to-Ethernet address translation
1350878a
MK
41tables used by the address resolution protocol
42.RI ( arp (4p)).
55270cae
KM
43.LP
44With no flags, the program displays the current ARP entry for
45.I hostname.
1350878a
MK
46The host may be specified by name or by number,
47using Internet dot notation.
55270cae
KM
48With the
49.B -a
50flag, the program displays all of the current ARP entries by reading the table
51from the file
52.I kmem
53(default /dev/kmem) based on the kernel file
54.I vmunix
55(default /vmunix).
56.LP
57With the
58.B -d
59flag, a super-user may delete an entry for the host called
60.I hostname.
61.LP
62The
63.B -s
64flag is given to create an ARP entry for the host called
65.I hostname
66with the Ethernet address
67.I ether_addr.
68The Ethernet address is given as six hex bytes separated by colons.
69The entry will be permanent unless the word
70.B temp
71is given in the command.
72If the word
73.B pub
1350878a
MK
74is given, the entry will be "published"; i.e., this system will
75act as an ARP server,
76responding to requests for
55270cae 77.I hostname
1350878a
MK
78even though the host address is not its own.
79The word
80.B trail
81indicates that trailer encapsulations may be sent to this host.
55270cae
KM
82.LP
83The
84.B -f
85flag causes the file
86.I filename
87to be read and multiple entries to be set in the ARP tables. Entries
88in the file should be of the form
89.IP
90.I hostname ether_addr
91[
92.B temp
93] [
94.B pub
1350878a
MK
95] [
96.B trail
55270cae
KM
97]
98.LP
99with argument meanings as given above.
100.SH "SEE ALSO"
1350878a 101inet(3N), arp(4P), ifconfig(8C)