xref: /netbsd-src/usr.sbin/arp/arp.8 (revision 76dfffe33547c37f8bdd446e3e4ab0f3c16cea4b)
1.\"	$NetBSD: arp.8,v 1.7 1995/03/01 11:50:59 chopps Exp $
2.\"
3.\" Copyright (c) 1985, 1991, 1993
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"	This product includes software developed by the University of
17.\"	California, Berkeley and its contributors.
18.\" 4. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"	from: @(#)arp.8	8.1 (Berkeley) 6/6/93
35.\"
36.Dd June 6, 1993
37.Dt ARP 8
38.Os BSD 4.3
39.Sh NAME
40.Nm arp
41.Nd address resolution display and control
42.Sh SYNOPSIS
43.Nm arp
44.Op Fl n
45.Ar hostname
46.Nm arp
47.Op Fl n
48.Fl a
49.Nm arp
50.Fl d Ar hostname
51.Nm arp
52.Fl s Ar hostname ether_addr
53.Op Ar temp
54.Op Ar pub
55.Nm arp
56.Fl f Ar filename
57.Sh DESCRIPTION
58The
59.Nm arp
60program displays and modifies the Internet-to-Ethernet address translation
61tables used by the address resolution protocol
62.Pq Xr arp 4 .
63With no flags, the program displays the current
64.Tn ARP
65entry for
66.Ar hostname .
67The host may be specified by name or by number,
68using Internet dot notation.
69.Pp
70Available options:
71.Bl -tag -width Ds
72.It Fl a
73The program displays all of the current
74.Tn ARP
75entries.
76.It Fl d
77A super-user may delete an entry for the host called
78.Ar hostname
79with the
80.Fl d
81flag.
82.It Fl n
83Show network addresses as numbers (normally
84.Nm arp
85attempts to display addresses symbolically).
86.It Fl s Ar hostname ether_addr
87Create an
88.Tn ARP
89entry for the host called
90.Ar hostname
91with the Ethernet address
92.Ar ether_addr .
93The Ethernet address is given as six hex bytes separated by colons.
94The entry will be permanent unless the word
95.Ar temp
96is given in the command.
97If the word
98.Ar pub
99is given, the entry will be "published"; i.e., this system will
100act as an
101.Tn ARP
102server,
103responding to requests for
104.Ar hostname
105even though the host address is not its own.
106.It Fl f
107Causes the file
108.Ar filename
109to be read and multiple entries to be set in the
110.Tn ARP
111tables.  Entries
112in the file should be of the form
113.Pp
114.Bd -filled -offset indent -compact
115.Ar hostname ether_addr
116.Op Ar temp
117.Op Ar pub
118.Ed
119.Pp
120with argument meanings as given above.
121.El
122.Sh SEE ALSO
123.Xr inet 3 ,
124.Xr arp 4 ,
125.Xr ifconfig 8
126.Sh HISTORY
127The
128.Nm
129command appeared in
130.Bx 4.3 .
131