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