NDP(8)
π¦ NDP(8) π¦
hey bestie!! welcome to the System Manager's Manual page for ndp β the command that controls/diagnoses the IPv6 neighbor discovery protocol. itβs giving network-admin main character energy, no cap. π
β¨
β¨ NAME β¨
ndp β control/diagnose IPv6 neighbor discovery protocol
πΈ SYNOPSIS πΈ
okay so hereβs the lineup, line by line, exactly as it goes:
ndp -a [-lntx]
ndp -A wait [-nt]
ndp -c [-nt]
ndp -d [-nt] hostname
ndp -f [-nt] filename
ndp -H
ndp -i interface [flags...]
ndp -I [delete | interface]
ndp -p
ndp -P
ndp -r
ndp -R
ndp -s nodename etheraddr [temp] [proxy]
ndp -w
ndp -W cfgfile
ndp -z [-n]
π DESCRIPTION π
okay so the ndp command manipulates the address mapping table used by the Neighbor Discovery Protocol (NDP). thatβs the whole vibe. now letβs get into every flag, because we are not skipping any of them. π«Ά
-aβ dump the currently existing NDP entries. the following information will be printed:- Neighbor β IPv6 address of the neighbor.
- Linklayer Address β Linklayer address of the neighbor. It could be
(incomplete)when the address is not available. - Netif β Network interface associated with the neighbor cache entry.
- Expire β The time until expiry of the entry. The entry could become
permanent, in which case it will never expire. - S β State of the neighbor cache entry, as a single letter:
Nβ NostateWβ WaitdeleteIβ IncompleteRβ ReachableSβ StaleDβ DelayPβ Probe?β Unknown state (should never happen).
- Flags β Flags on the neighbor cache entry, in a single letter. They are:
Router, proxy neighbor advertisement (p). The field could be followed by a decimal number, which means the number of NS probes the node has sent during the current state.
-Await β repeat-a(dump NDP entries) every wait seconds.-cβ erase all the NDP entries.-dhostname β delete specified NDP entry.-ffilename β cause the file filename to be read and multiple entries to be set in the NDP table. entries in the file should be of the form:
hostname ether_addr [temp] [proxy]
with argument meanings as given above. leading whitespace and empty lines are ignored. a # character will mark the rest of the line as a comment.
-Hβ harmonize consistency between the routing table and the default router list; install the top entry of the list into the kernel routing table.-Iβ shows the default interface used as the default route when there is no default router.-Iinterface β specifies the default interface used as the default route when there is no default router. the interface will be used as the default.-Ideleteβ the current default interface will be deleted from the kernel.-iinterface [expressions ...] β view ND information for the specified interface. if additional arguments expressions are given,ndpsets or clears the flags or variables for the interface as specified in the expression. each expression should be separated by white spaces or tab characters. possible expressions are as follows. some of the expressions can begin with the special character-, which means the flag specified in the expression should be cleared. note that you need--before-fooin this case.nudβ turn on or off NUD (Neighbor Unreachability Detection) on the interface. NUD is usually turned on by default.disabledβ disable IPv6 operation on the interface. when disabled, the interface discards any IPv6 packets received on or being sent to the interface. in the sending case, an error ofENETDOWNwill be returned to the application. this flag is typically set automatically in the kernel as a result of a certain failure of Duplicate Address Detection. if theauto_linklocalper-interface flag is set, automatic link-local address configuration is performed again when this flag is cleared.proxy_prefixesβ the interface is enabled to proxy neighbor discovery for global scope prefixes matching those on link at other interfaces.insecureβ do not use cryptographically generated addresses (CGA) on this interface.replicatedβ Address autoconfiguration proceeds under the assumption that interface configuration is replicated by a sleep proxy at another node on the link. Disables optimistic DAD and sends unsolicited NA withO=1when DAD completes. Ignores DAD failures from other hardware addresses.
-lβ show link-layer reachability information.-nβ do not try to resolve numeric addresses to hostnames.-pβ show prefix list. the following information will be printed:ifβ the network interface associated with this prefix.flagsβ the status of the prefix, expressed by a combination of the following letters:Aβ this prefix can be used for stateless address autoconfiguration.L, Oβ this prefix can be used for on-link determination; that is, it can be used to determine whether a given destination address is on-link.Dβ there are no reachable routers advertising this prefix.
vltimeβ Valid lifetime; the length of time for which the prefix and a stateless autoconfigured address generated from this prefix can be used for the source or destination address of a packet.pltimeβ Preferred lifetime; the length of time for which the prefix and a stateless autoconfigured address generated from this prefix can be used by upper-layer protocols unrestrictedly.expireβ this is the remaining time that the prefix is in the valid state.refβ the number of kernel references held for this prefix.
-Pβ flush all the entries in the prefix list.-rβ show default router list.-Rβ flush all the entries in the default router list.-sβ register an NDP entry for a node. the entry will be permanent unless the wordtempis given in the command. if the wordproxyis given, this system will act as a proxy NDP server, responding to requests forhostnameeven though the host address is not its own.-tβ print timestamp for each entry, to make it possible to merge the output withtcpdump(1). most useful when used with-A.-wβ show the cryptographically generated address (CGA) parameters for the node.-Wcfgfile β set the cryptographically generated address (CGA) parameters for the node.-xβ show extended link-layer reachability information in addition to that shown by the-lflag.-zβ dump the RTI list.
π₯ RETURN VALUES π₯
the ndp command will exit with 0 on success, and non-zero on errors. periodt. π
π«Ά SEE ALSO π«Ά
arp(8) β go give it a lil read too, bestie. π
π HISTORY π
the ndp command first appeared in WIDE Hydrangea IPv6 protocol stack kit. iconic origin story fr fr. β¨
mwah π β source/version: Debian; date: May 17, 1998.
π¦ where this page comes from
- nixpkgs unstable: network_cmds 741.100.2
- Copyright (c) 2012-2025 Apple Inc. All rights reserved
- Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms