|
NAMEndisc6 - ICMPv6 Neighbor Discovery toolSYNOPSISndisc6 [-1mnqv] [-r attempts] [-s source_ip] [-w wait_ms] <IPv6 address> <iface>DESCRIPTONNDisc6 is an Unix program which implements the ICMPv6 Neighbor Discovery in userland (it is normally done by the kernel). It is used to lookup the link-layer address (layer 2 address, MAC in the case of Ethernet) of any on-link IPv6 node.The IPv6 address of the node must be specified, as well as the networking interface on which to perform the lookup. OPTIONS
If ndisc6 does not receive any response after the specified number of attempts waiting for wait_ms milliseconds each time, it will exit with code 2. On error, it exits with code 1. Otherwise it exits with code 0. This makes it possible to use the exit code to see if a host is on-link or not. DIAGNOSTICSIf you get no response while you know the remote host is up, it is most likely that it is not on-link, that is to say, you must cross one or more routers to reach it. By design, IPv6 nodes ignore ICMPv6 Neighbor Discovery packets received from nodes not on the same link (i.e. Ethernet segment), for the sake of security. Technically, that is done by ensuring that the Hop limit (TTL) is 255.Note that you cannot use ndisc6 to lookup the local host's link-layer address. SECURITYndisc6 should be setuid root to allow use by non-privileged users. It will drop its root privileges before any attempt is made to send or receive data from the network to reduce the possible impact of a security vulnerability.SEE ALSOping6(8), rdisc6(8), ipv6(7)AUTHORRémi Denis-Courmont <remi at remlab dot net>http://www.remlab.net/ndisc6/
Visit the GSP FreeBSD Man Page Interface. |