1 .\" $OpenBSD: ndp.8,v 1.29 2013/03/11 14:02:37 mpi Exp $
2 .\" $KAME: ndp.8,v 1.28 2002/07/17 08:46:33 itojun 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
31 .Dd $Mdocdate: March 11 2013 $
37 .Nd control/diagnose IPv6 Neighbor Discovery Protocol (NDP)
48 .Op Fl i Ar interface Op Ar flag ...
49 .Op Fl s Ar nodename etheraddr Oo Ic temp Oc Op Ic proxy
56 command manipulates the address mapping table
57 used by the Neighbor Discovery Protocol (NDP).
67 Dump the currently existing NDP entries.
68 The following information will be printed:
69 .Bl -tag -width Ds -offset 3n
71 The IPv6 address of the neighbor.
73 The linklayer address of the neighbor.
74 If the address is not available,
75 it will be displayed as
78 The network interface associated with the neighbor cache entry.
80 The time until expiry of the entry.
81 If the entry is marked
85 The state of the neighbor cache entry, as a single letter:
87 .Bl -tag -width Ds -offset 3n -compact
103 Unknown state (should never happen).
106 Flags on the neighbor cache entry, in a single letter.
109 and proxy neighbor advertisement
111 This field may be followed by a decimal number,
112 representing the number of NS probes
113 the node has sent during the current state.
116 Erase all the NDP entries.
118 Delete the specified NDP entry.
120 Parse the file specified by
123 Harmonize consistency between the routing table and the default router
124 list; install the top entry of the list into the kernel routing table.
125 .It Fl i Ar interface Op Ar flag ...
126 View ND information for the specified interface.
127 If additional arguments are given,
129 sets or clears the specified flags for the interface.
130 Each flag should be separated by whitespace or tab characters.
131 Possible flags are as follows.
132 All of the flags can begin with the
135 which means the flag should be cleared.
138 would be needed before
144 Turn on or off NUD (Neighbor Unreachability Detection) on the
146 NUD is usually turned on by default.
148 Specify whether or not to accept Router Advertisement messages
151 Note that the kernel does not accept Router Advertisement messages
153 .Li net.inet6.ip6.accept_rtadv
154 variable is non-0, even if the flag is on.
155 This flag is set to 1 by default.
160 for further details on how to set the
161 .Li net.inet6.ip6.accept_rtadv
166 .\"Prefer addresses on the
168 .\"as candidates of the source address for outgoing packets.
169 .\"The default value of this flag is off.
170 .\"For more details about the entire algorithm of source address
171 .\"selection, see the
172 .\".Pa IMPLEMENTATION
173 .\"file supplied with the KAME kit.
176 Do not try to resolve numeric addresses to hostnames.
178 Flush all the entries in the prefix list.
180 Show the prefix list.
182 Flush all the entries in the default router list.
184 Show the default router list.
186 .Fl s Ar nodename etheraddr
190 Register an NDP entry for a node.
191 The entry will be permanent unless the word
193 is given in the command.
196 is given, this system will act as a proxy NDP server,
197 responding to requests for
199 even though the host address is not its own.
201 Print a timestamp on each entry,
202 making it possible to merge output with
204 Most useful when used with
220 command first appeared in the WIDE Hydrangea IPv6 protocol stack kit.