1*d7bb57e0Skn.\" $OpenBSD: ndp.8,v 1.46 2019/08/23 15:41:59 kn Exp $ 25d6447e8Sitojun.\" $KAME: ndp.8,v 1.28 2002/07/17 08:46:33 itojun Exp $ 32ded093fSitojun.\" 43a06b6c9Sitojun.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 53a06b6c9Sitojun.\" All rights reserved. 63a06b6c9Sitojun.\" 73a06b6c9Sitojun.\" Redistribution and use in source and binary forms, with or without 83a06b6c9Sitojun.\" modification, are permitted provided that the following conditions 93a06b6c9Sitojun.\" are met: 103a06b6c9Sitojun.\" 1. Redistributions of source code must retain the above copyright 113a06b6c9Sitojun.\" notice, this list of conditions and the following disclaimer. 123a06b6c9Sitojun.\" 2. Redistributions in binary form must reproduce the above copyright 133a06b6c9Sitojun.\" notice, this list of conditions and the following disclaimer in the 143a06b6c9Sitojun.\" documentation and/or other materials provided with the distribution. 153a06b6c9Sitojun.\" 3. Neither the name of the project nor the names of its contributors 163a06b6c9Sitojun.\" may be used to endorse or promote products derived from this software 173a06b6c9Sitojun.\" without specific prior written permission. 183a06b6c9Sitojun.\" 193a06b6c9Sitojun.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 203a06b6c9Sitojun.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 213a06b6c9Sitojun.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 223a06b6c9Sitojun.\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 233a06b6c9Sitojun.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 243a06b6c9Sitojun.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 253a06b6c9Sitojun.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 263a06b6c9Sitojun.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 273a06b6c9Sitojun.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 283a06b6c9Sitojun.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 293a06b6c9Sitojun.\" SUCH DAMAGE. 303a06b6c9Sitojun.\" 31*d7bb57e0Skn.Dd $Mdocdate: August 23 2019 $ 323a06b6c9Sitojun.Dt NDP 8 33494fe9aaSitojun.Os 343a06b6c9Sitojun.Sh NAME 353a06b6c9Sitojun.Nm ndp 369b83bdb3Sjmc.Nd control/diagnose IPv6 Neighbor Discovery Protocol (NDP) 373a06b6c9Sitojun.Sh SYNOPSIS 383a06b6c9Sitojun.Nm ndp 394ce76853Sflorian.Op Fl acnt 409efca78aSjmc.Op Fl A Ar wait 419efca78aSjmc.Op Fl d Ar hostname 429efca78aSjmc.Op Fl f Ar filename 430e39def2Sflorian.Op Fl i Ar interface 44b1e26f8eSjca.Op Fl s Ar nodename ether_addr Oo Cm temp Oc Op Cm proxy 4585aa3881Sphessler.Op Fl V Ar rdomain 469efca78aSjmc.Op Ar hostname 473a06b6c9Sitojun.Sh DESCRIPTION 48742030deSitojunThe 493a06b6c9Sitojun.Nm 503a06b6c9Sitojuncommand manipulates the address mapping table 51fba84816Sitojunused by the Neighbor Discovery Protocol (NDP). 523a06b6c9Sitojun.Bl -tag -width Ds 539b83bdb3Sjmc.It Fl A Ar wait 549b83bdb3SjmcRepeat 559b83bdb3Sjmc.Fl a 569b83bdb3Sjmc.Pq dump NDP entries 579b83bdb3Sjmcevery 589b83bdb3Sjmc.Ar wait 599b83bdb3Sjmcseconds. 603a06b6c9Sitojun.It Fl a 613a06b6c9SitojunDump the currently existing NDP entries. 62fae7be87SitojunThe following information will be printed: 639efca78aSjmc.Bl -tag -width Ds -offset 3n 64fae7be87Sitojun.It Neighbor 659efca78aSjmcThe IPv6 address of the neighbor. 66fae7be87Sitojun.It Linklayer Address 679efca78aSjmcThe linklayer address of the neighbor. 689efca78aSjmcIf the address is not available, 699efca78aSjmcit will be displayed as 709efca78aSjmc.Dq (incomplete) . 71fae7be87Sitojun.It Netif 729efca78aSjmcThe network interface associated with the neighbor cache entry. 73fae7be87Sitojun.It Expire 74fba84816SitojunThe time until expiry of the entry. 759efca78aSjmcIf the entry is marked 769efca78aSjmc.Dq permanent , 779efca78aSjmcit will never expire. 78fae7be87Sitojun.It S 799efca78aSjmcThe state of the neighbor cache entry, as a single letter: 80fba84816Sitojun.Pp 819efca78aSjmc.Bl -tag -width Ds -offset 3n -compact 829efca78aSjmc.It D 839efca78aSjmcDelay 84fba84816Sitojun.It I 85fba84816SitojunIncomplete 869efca78aSjmc.It N 879efca78aSjmcNostate 889efca78aSjmc.It P 899efca78aSjmcProbe 90fba84816Sitojun.It R 91fba84816SitojunReachable 92fba84816Sitojun.It S 93fba84816SitojunStale 949efca78aSjmc.It W 959efca78aSjmcWaitdelete 96f7a0a450Sjmc.It \&? 97fba84816SitojunUnknown state (should never happen). 98fba84816Sitojun.El 99fba84816Sitojun.It Flags 100fae7be87SitojunFlags on the neighbor cache entry, in a single letter. 10148ccdf10SmpiThey are: local 10248ccdf10Smpi.Pq Sq l , 10348ccdf10SmpiRouter 1049efca78aSjmc.Pq Sq R 1059efca78aSjmcand proxy neighbor advertisement 1069efca78aSjmc.Pq Sq p . 1079efca78aSjmcThis field may be followed by a decimal number, 1089efca78aSjmcrepresenting the number of NS probes 1099efca78aSjmcthe node has sent during the current state. 110fae7be87Sitojun.El 1113a06b6c9Sitojun.It Fl c 1123a06b6c9SitojunErase all the NDP entries. 1139efca78aSjmc.It Fl d Ar hostname 1149efca78aSjmcDelete the specified NDP entry. 1159efca78aSjmc.It Fl f Ar filename 1161273c74cSjcaParse entries from 1171273c74cSjca.Ar file 1181273c74cSjcato be inserted in the neighbor cache. 1191273c74cSjcaSee the 1201273c74cSjca.Fl s 1211273c74cSjcaoption for a description of the file format. 1220e39def2Sflorian.It Fl i Ar interface 123d374aaacSitojunView ND information for the specified interface. 1243a06b6c9Sitojun.It Fl n 125*d7bb57e0SknDo not perform domain name resolution. 126*d7bb57e0SknIf a name cannot be resolved without DNS, an error will be reported. 1279efca78aSjmc.It Xo 128b1e26f8eSjca.Fl s Ar nodename ether_addr 1299efca78aSjmc.Op Cm temp 1309efca78aSjmc.Op Cm proxy 1319efca78aSjmc.Xc 1321273c74cSjcaRegister an NDP entry for the node called nodename with the Ether 1331273c74cSjcaaddress ether_addr. 1341273c74cSjcaThe Ethernet address is given as six hexadecimal bytes separated by 1351273c74cSjcacolons. 136a0f7b357SitojunThe entry will be permanent unless the word 1379efca78aSjmc.Cm temp 138a0f7b357Sitojunis given in the command. 139a0f7b357SitojunIf the word 1409efca78aSjmc.Cm proxy 1419f3b6cfbSjcais given, this system will act as an ND Proxy server, 142a0f7b357Sitojunresponding to requests for 1439f3b6cfbSjca.Ar nodename 1449f3b6cfbSjcaeven though the node address is not its own. 1453a06b6c9Sitojun.It Fl t 1469efca78aSjmcPrint a timestamp on each entry, 147fba84816Sitojunmaking it possible to merge output with 1489098900fSitojun.Xr tcpdump 8 . 1493a06b6c9SitojunMost useful when used with 1503a06b6c9Sitojun.Fl A . 151f6fe3c12Sjmc.It Fl V Ar rdomain 152e3e2e38bSbluhmSelect the routing domain. 1533a06b6c9Sitojun.El 154741b6f30Sjmc.Sh EXIT STATUS 1559efca78aSjmc.Ex -std ndp 1563a06b6c9Sitojun.Sh SEE ALSO 1579b83bdb3Sjmc.Xr ip6 4 , 1589b83bdb3Sjmc.Xr sysctl.conf 5 , 1599b83bdb3Sjmc.Xr arp 8 , 1609b83bdb3Sjmc.Xr sysctl 8 , 1619b83bdb3Sjmc.Xr tcpdump 8 1623a06b6c9Sitojun.Sh HISTORY 1633a06b6c9SitojunThe 1643a06b6c9Sitojun.Nm 1659098900fSitojuncommand first appeared in the WIDE Hydrangea IPv6 protocol stack kit. 166