.\" 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: (1) source distributions retain this entire copyright notice and .\" comment, and (2) distributions including binaries display the following .\" acknowledgement: ``This product includes software developed by the .\" University of California, Berkeley and its contributors'' in the .\" documentation or other materials provided with the distribution and in .\" all advertising materials mentioning features or use of this software. .\" Neither the name of the University nor the names of its contributors may .\" 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 .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" .\" @(#)arp.8 6.4 (Berkeley) 6/24/90 .\" .TH ARP 8 "June 24, 1990" .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)