1 .\" $NetBSD: ndp.8,v 1.27 2014/06/05 16:06:49 roy Exp $
2 .\" $KAME: ndp.8,v 1.33 2005/10/19 14:57:42 suz Exp $
4 .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the project nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 .Nd control/diagnose IPv6 neighbor discovery protocol
65 .Op Ar expressions ...
68 .Fl I Op Ar interface | Li delete
71 .Fl s Ar nodename etheraddr
78 command manipulates the address mapping table
79 used by the Neighbor Discovery Protocol (NDP).
82 Dump the currently existing NDP entries.
83 The following information will be printed:
84 .Bl -tag -width NeighborXX
86 IPv6 address of the neighbor.
88 Linklayer address of the neighbor.
91 when the address is not available.
93 Network interface associated with the neighbor cache entry.
95 The time until expiry of the entry.
96 The entry could become
98 in which case it will never expire.
100 State of the neighbor cache entry, as a single letter:
102 .Bl -tag -width indent -compact
118 Unknown state (should never happen).
121 Flags on the neighbor cache entry, in a single letter.
122 They are: Router, proxy neighbor advertisement
124 The field could be followed by a decimal number,
125 which means the number of NS probes the node has sent during the current state.
135 Erase all the NDP entries.
137 Delete specified NDP entry.
139 Parse the file specified by
142 Harmonize consistency between the routing table and the default router
143 list; install the top entry of the list into the kernel routing table.
145 Shows the default interface used as the default route when
146 there is no default router.
147 .It Fl I Ar interface
148 Specifies the default
150 to be used when there is no interface specified even though required.
152 The current default interface will be deleted from the kernel.
153 .It Fl i Ar interface Op Ar expressions ...
154 View ND information for the specified interface.
155 If additional arguments
159 sets or clears the flags or variables for the interface as specified in
161 Each expression should be separated by white spaces or tab characters.
162 Possible expressions are as follows.
163 Some of the expressions can begin with the
166 which means the flag specified in the expression should be cleared.
174 .Bl -tag -width Ds -compact
176 Turn on or off NUD (Neighbor Unreachability Detection) on the
178 NUD is usually turned on by default.
180 Specify whether or not to accept Router Advertisement messages
183 Note that the kernel does not accept Router Advertisement messages,
186 is on, unless either the
187 .Li net.inet6.ip6.accept_rtadv
188 variable is non-0, or the flag
191 This flag is set to 1 by default.
192 .It Ic auto_linklocal
193 Specify whether or not to perform automatic link-local address configuration on
196 .Li net.inet6.ip6.auto_linklocal
198 .It Ic override_rtadv
199 Specify whether or not to override the
200 .Li net.inet6.ip6.accept_rtadv
202 If the flag is on, then it will suffice to set the flag
204 to make the kernel accept Router Advertisement messages on the
206 This flag is set to 0 by default.
208 Prefer addresses on the
210 as candidates of the source address for outgoing packets.
211 The default value of this flag is off.
212 For more details about the entire algorithm of source address
215 file supplied with the KAME kit.
217 Disable IPv6 operation on the interface.
218 When disabled, the interface discards any IPv6 packets
219 received on or being sent to the interface and any IPv6 addresses
220 on the interface are marked as
222 When the disabled flag is cleared, DAD will be performed.
223 In the sending case, an error of ENETDOWN will be returned to the
225 This flag is typically set automatically in the kernel as a result of
226 a certain failure of Duplicate Address Detection.
227 While the flag can be set or cleared by hand with the
229 command, it is not generally advisable to modify this flag manually.
230 .It Ic basereachable=(number)
231 Specify the BaseReachbleTimer on the interface in millisecond.
232 .It Ic retrans=(number)
233 Specify the RetransTimer on the interface in millisecond.
234 .It Ic curhlim=(number)
235 Specify the Cur Hop Limit on the interface.
238 Do not try to resolve numeric addresses to hostnames.
242 Flush all the entries in the prefix list.
244 Show default router list.
246 Flush all the entries in the default router list.
248 Register an NDP entry for a node.
249 The entry will be permanent unless the word
251 is given in the command.
254 is given, this system will act as a proxy NDP server,
255 responding to requests for
257 even though the host address is not its own.
259 Print timestamp on each entry,
260 making it possible to merge output with
262 Most useful when used with
269 command will exit with 0 on success, and non-zero on errors.
277 command first appeared in the WIDE Hydrangea IPv6 protocol stack kit.