fixes for typesetting
[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.\"
5.\" @(#)arp.8 6.1 (Berkeley) %G%
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
31]
32.br
33.B arp -f
34.I filename
35.SH DESCRIPTION
36The
37.I arp
38program displays and modifies the Internet-to-Ethernet address translation
39tables used by the address resolution protocol (
40.IR arp (4p)).
41.LP
42With no flags, the program displays the current ARP entry for
43.I hostname.
44With the
45.B -a
46flag, the program displays all of the current ARP entries by reading the table
47from the file
48.I kmem
49(default /dev/kmem) based on the kernel file
50.I vmunix
51(default /vmunix).
52.LP
53With the
54.B -d
55flag, a super-user may delete an entry for the host called
56.I hostname.
57.LP
58The
59.B -s
60flag is given to create an ARP entry for the host called
61.I hostname
62with the Ethernet address
63.I ether_addr.
64The Ethernet address is given as six hex bytes separated by colons.
65The entry will be permanent unless the word
66.B temp
67is given in the command.
68If the word
69.B pub
70is given, the entry will be "published", e.g., this system will
71respond to ARP requests for
72.I hostname
73even though the hostname is not its own.
74.LP
75The
76.B -f
77flag causes the file
78.I filename
79to be read and multiple entries to be set in the ARP tables. Entries
80in the file should be of the form
81.IP
82.I hostname ether_addr
83[
84.B temp
85] [
86.B pub
87]
88.LP
89with argument meanings as given above.
90.SH "SEE ALSO"
91arp(4p), ifconfig(8c)