1 .TH IP\-NEIGHBOUR 8 "20 Dec 2011" "iproute2" "Linux"
3 ip-neighbour \- neighbour/arp tables management.
12 .RI " { " COMMAND " | "
17 .BR "ip neigh" " { " add " | " del " | " change " | " replace " } { "
21 .BR nud " { " permanent " | " noarp " | " stale " | " reachable " } ] | " proxy
27 .BR "ip neigh" " { " show " | " flush " } [ " proxy " ] [ " to
40 objects that establish bindings between protocol addresses and
41 link layer addresses for hosts sharing the same link.
42 Neighbour entries are organized into tables. The IPv4 neighbour table
43 is also known by another name - the ARP table.
46 The corresponding commands display neighbour bindings
47 and their properties, add new neighbour entries and delete old ones.
51 add a new neighbour entry
54 change an existing entry
57 add a new entry or change an existing one
60 These commands create new neighbour records or update existing ones.
63 .BI to " ADDRESS " (default)
64 the protocol address of the neighbour. It is either an IPv4 or IPv6 address.
68 the interface to which this neighbour is attached.
71 .BI lladdr " LLADDRESS"
72 the link layer address of the neighbour.
79 the state of the neighbour entry.
81 is an abbreviation for 'Neighbour Unreachability Detection'.
82 The state can take one of the following values:
86 the neighbour entry is valid forever and can be only
87 be removed administratively.
90 the neighbour entry is valid. No attempts to validate
91 this entry will be made but it can be removed when its lifetime expires.
94 the neighbour entry is valid until the reachability
98 the neighbour entry is valid but suspicious.
101 does not change the neighbour state if it was valid and the address
102 is not changed by this command.
107 delete a neighbour entry
110 The arguments are the same as with
120 Attempts to delete or manually change a
122 entry created by the kernel may result in unpredictable behaviour.
123 Particularly, the kernel may try to resolve this address even
126 interface or if the address is multicast or broadcast.
131 list neighbour entries
134 .BI to " ADDRESS " (default)
135 the prefix selecting the neighbours to list.
139 only list the neighbours attached to this device.
143 list neighbour proxies.
147 only list neighbours which are not currently in use.
151 only list neighbour entries in this state.
153 takes values listed below or the special value
155 which means all states. This option may occur more than once.
156 If this option is absent,
158 lists all entries except for
166 flush neighbour entries
168 This command has the same arguments as
170 The differences are that it does not run when no arguments are given,
171 and that the default neighbour states to be flushed do not include
179 option, the command becomes verbose. It prints out the number of
180 deleted neighbours and the number of rounds made to flush the
181 neighbour table. If the option is given
184 also dumps all the deleted neighbours.
191 Shows the current neighbour table in kernel.
194 ip neigh flush dev eth0
196 Removes entries in the neighbour table on device eth0.
204 Original Manpage by Michail Litvak <mci@owl.openwall.com>