Berkeley copyright
[unix-history] / usr / src / usr.sbin / arp / arp.8
.\" Copyright (c) 1985 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms are permitted
.\" provided that the above copyright notice and this paragraph are
.\" duplicated in all such forms and that any documentation,
.\" advertising materials, and other materials related to such
.\" distribution and use acknowledge that the software was developed
.\" by the University of California, Berkeley. The name of the
.\" University may not be used to endorse or promote products derived
.\" from this software without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\" @(#)arp.8 6.3 (Berkeley) %G%
.\"
.TH ARP 8 ""
.UC 6
.SH NAME
arp \- address resolution display and control
.SH SYNOPSIS
.B arp
.I hostname
.br
.B arp -a
[
.I vmunix
] [
.I kmem
]
.br
.B arp -d
.I hostname
.br
.B arp -s
.I hostname ether_addr
[
.B temp
] [
.B pub
] [
.B trail
]
.br
.B arp -f
.I filename
.SH DESCRIPTION
The
.I arp
program displays and modifies the Internet-to-Ethernet address translation
tables used by the address resolution protocol
.RI ( arp (4p)).
.LP
With no flags, the program displays the current ARP entry for
.I hostname.
The host may be specified by name or by number,
using Internet dot notation.
With the
.B -a
flag, the program displays all of the current ARP entries by reading the table
from the file
.I kmem
(default /dev/kmem) based on the kernel file
.I vmunix
(default /vmunix).
.LP
With the
.B -d
flag, a super-user may delete an entry for the host called
.I hostname.
.LP
The
.B -s
flag is given to create an ARP entry for the host called
.I hostname
with the Ethernet address
.I ether_addr.
The Ethernet address is given as six hex bytes separated by colons.
The entry will be permanent unless the word
.B temp
is given in the command.
If the word
.B pub
is given, the entry will be "published"; i.e., this system will
act as an ARP server,
responding to requests for
.I hostname
even though the host address is not its own.
The word
.B trail
indicates that trailer encapsulations may be sent to this host.
.LP
The
.B -f
flag causes the file
.I filename
to be read and multiple entries to be set in the ARP tables. Entries
in the file should be of the form
.IP
.I hostname ether_addr
[
.B temp
] [
.B pub
] [
.B trail
]
.LP
with argument meanings as given above.
.SH "SEE ALSO"
inet(3), arp(4), ifconfig(8)