Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
94fb2fce
Commit
94fb2fce
authored
Dec 01, 2007
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup man page (arp.8 2007-12-01)
parent
c59ba337
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
97 additions
and
62 deletions
+97
-62
man/en_US/arp.8
man/en_US/arp.8
+97
-62
No files found.
man/en_US/arp.8
View file @
94fb2fce
.TH ARP 8 "200
5-05-16
" "net-tools" "Linux Programmer's Manual"
.TH ARP 8 "200
7-12-01
" "net-tools" "Linux Programmer's Manual"
.SH NAME
.SH NAME
arp \- manipulate the system ARP cache
arp \- manipulate the system ARP cache
.SH SYNOPSIS
.SH SYNOPSIS
.B arp
.B arp
.RB [ \-vn ]
.RB [ \-vn ]
.RB [ "\-H type" ]
.RB [ \-H
.RB [ "-i if" ]
.IR type ]
.B -a
.RB [ \-i
.RB [ hostname ]
.IR if ]
.RB [ \-a ]
.RI [ hostname ]
.PP
.PP
.B arp
.B arp
.RB [ \-v ]
.RB [ \-v ]
.RB [ "\-i if" ]
.RB [ \-i
.B "\-d hostname"
.IR if ]
.B \-d
.I hostname
.RB [ pub ]
.RB [ pub ]
.PP
.PP
.B arp
.B arp
.RB [ \-v ]
.RB [ \-v ]
.RB [ "\-H type" ]
.RB [ \-H
.RB [ "\-i if" ]
.IR type ]
.B -s hostname hw_addr
.RB [ \-i
.IR if ]
.B \-s
.I hostname hw_addr
.RB [ temp ]
.RB [ temp ]
.PP
.PP
.B arp
.B arp
.RB [ \-v ]
.RB [ \-v ]
.RB [ "\-H type" ]
.RB [ \-H
.RB [ "\-i if" ]
.IR type ]
.B -s hostname hw_addr
.RB [ \-i
.RB [ "netmask nm" ]
.IR if ]
.B \-s
.I hostname hw_addr
.RB [ netmask
.IR nm ]
.B pub
.B pub
.PP
.PP
.B arp
.B arp
.RB [ \-v ]
.RB [ \-v ]
.RB [ "\-H type" ]
.RB [ \-H
.RB [ "\-i if" ]
.IR type ]
.B -Ds hostname ifa
.RB [ \-i
.RB [ "netmask nm" ]
.IR if ]
.B \-Ds
.I hostname
.I ifname
.RB [ netmask
.IR nm ]
.B pub
.B pub
.PP
.PP
.B arp
.B arp
.RB [ \-vnD ]
.RB [ \-vnD ]
.RB [ "\-H type" ]
.RB [ \-H
.RB [ "-i if" ]
.IR type ]
.B -f [filename]
.RB [ \-i
.IR if ]
.B \-f
.RI [ filename ]
.SH DESCRIPTION
.SH DESCRIPTION
.B Arp
.B Arp
manipulates the kernel's ARP cache in various ways. The primary options
manipulates or displays the kernel's IPv4 network neighbour cache. It can add
are clearing an address mapping entry and manually setting up one. For
entries to the table, delete one or display the current content.
debugging purposes, the
.B ARP
stands for Address Resolution Protocol, which is used to find the media
access control address of a network neighbour for a given IPv4 Address.
.SH MODES
.B arp
.B arp
program also allows a complete dump of the ARP cache.
with no mode specifier will print the current content of the table. It is
possible to limit the number of entries printed, by specifying an hardware
address type, interface name or host address.
.B arp -d
.I address
will delete a ARP table entry. Root or netadmin priveledge is required to do
this. The entry is found by IP address. If a hostname is given, it will be
resolved before looking up the entry in the ARP table.
.B arp -s
.I address hw_addr
is used to set up a new table entry. The format of the
.I hw_addr
parameter is dependent on the hardware class, but for most classes one can
assume that the usual presentation can be used. For the Ethernet class,
this is 6 bytes in hexadecimal, separated by colons. When adding proxy arp
entries (that is those with the
.BR pub lish
flag set a
.B netmask
may be specified to proxy arp for entire subnets. This is not good
practice, but is supported by older kernels because it can be
useful. If the
.B temp
flag is not supplied entries will be permanent stored into the ARP
cache. To simplyfy setting up entries for one of your own network interfaces, you can use the
.B "arp \-Ds"
.I address ifname
form. In that case the hardware address is taken from the interface with the
specified name.
.br
.SH OPTIONS
.SH OPTIONS
.TP
.TP
.B "\-v, \-\-verbose"
.B "\-v, \-\-verbose"
...
@@ -76,21 +131,13 @@ Other values might include network technologies such as
...
@@ -76,21 +131,13 @@ Other values might include network technologies such as
and
and
.RB "NET/ROM (" netrom ")."
.RB "NET/ROM (" netrom ")."
.TP
.TP
.B "\-a [hostname], \-\-display [hostname]"
.B \-a
Shows the entries of the specified hosts. If the
Use alternate BSD style output format (with no fixed columns).
.B hostname
parameter is not used,
.B all
entries will be displayed.
.TP
.B "\-d hostname, \-\-delete hostname"
Remove any entry for the specified host. This can be used if the
indicated host is brought down, for example.
.TP
.TP
.B "\-D, \-\-use-device"
.B "\-D, \-\-use-device"
Use the interface
Instead of a hw_addr, the given argument is the name of an interface.
.B
R ifa "'s"
.B
arp
hardware address
.
will use the MAC address of that interface for the table entry. This is usually the best option to set up a proxy ARP entry to yourself
.
.TP
.TP
.B "\-i If, \-\-device If"
.B "\-i If, \-\-device If"
Select an interface. When dumping the ARP cache only entries matching
Select an interface. When dumping the ARP cache only entries matching
...
@@ -106,27 +153,6 @@ be answered.
...
@@ -106,27 +153,6 @@ be answered.
.B NOTE:
.B NOTE:
This has to be different from the interface to which the IP
This has to be different from the interface to which the IP
datagrams will be routed.
datagrams will be routed.
.TP
.B "\-s hostname hw_addr, \-\-set hostname"
Manually create an ARP address mapping entry for host
.B hostname
with hardware address set to
.B hw_addr
. The format of the hardware address is dependent on the hardware
class, but for most classes one can assume that the usual presentation
can be used. For the Ethernet class, this is 6 bytes in hexadecimal,
separated by colons. When adding proxy arp entries (that is those with
the
.BR pub lish
flag set a
.B netmask
may be specified to proxy arp for entire subnets. This is not good
practice, but is supported by older kernels because it can be
useful. If the
.B temp
flag is not supplied entries will be permanent stored into the ARP
cache.
.br
.B NOTE:
.B NOTE:
As of kernel 2.2.0 it is no longer possible to set an ARP entry for an
As of kernel 2.2.0 it is no longer possible to set an ARP entry for an
entire subnet. Linux instead does automagic proxy arp when a route
entire subnet. Linux instead does automagic proxy arp when a route
...
@@ -170,8 +196,18 @@ flag. Permanent entries are marked with
...
@@ -170,8 +196,18 @@ flag. Permanent entries are marked with
and published entries have the
and published entries have the
.B P
.B P
flag.
flag.
.SH EXSAMPLES
.B /usr/sbin/arp -i eth0 -Ds 10.0.0.2 eth1 pub
This will answer ARP requests for 10.0.0.2 on eth0 with the MAC address for
eth1.
.B /usr/sbin/arp -i eth1 -d 10.0.0.1
Delete the ARP table entry for 10.0.0.1 on interface eth1. This will match
published proxy ARP entries and permanent entries.
.SH FILES
.SH FILES
.I /proc/net/arp
,
.I /proc/net/arp
.br
.br
.I /etc/networks
.I /etc/networks
.br
.br
...
@@ -181,5 +217,4 @@ flag.
...
@@ -181,5 +217,4 @@ flag.
.SH SEE ALSO
.SH SEE ALSO
rarp(8), route(8), ifconfig(8), netstat(8)
rarp(8), route(8), ifconfig(8), netstat(8)
.SH AUTHORS
.SH AUTHORS
Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> with a lot of improvements
Fred N. van Kempen <waltje@uwalt.nl.mugnet.org>, Bernd Eckenfels <net-tools@lina.inka.de>.
from net-tools Maintainer Bernd Eckenfels <net-tools@lina.inka.de>.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment