ndp.1m (2010 09)
n
ndp(1M) ndp(1M)
If pub is specified, the entry is published, which means that this system will respond to
Neighbor Solicitation for the specified "host" even though the host address is not its own.
If anycast is specified, it means that the published entry refers to an anycast address.
This parameter can only be specified when the parameter
pub is specified.
-f filename
Create Neighbor Discovery cache entries from the specifications found in the file specified
by filename . Each entry in this file specifies the interface , host , hw_addr, and optionally
the
pub flag. For example, the content of this file can be:
lan0 nodea 1:2:3:4:5:6
lan1 nodeb 2:3:4:5:6:7 pub
lan1 nodec 3:4:5:6:7:8 pub anycast
The use of -d, -F,
-P, -s, and -f options requires root privileges.
Contents
A Neighbor Discovery cache entry includes the following fields:
• host (neighbor’s host name or IP address)
• hardware address (link layer address) of host
• interface name
• state
• flags
The state of an entry can be
INCOMPLETE, REACHABLE, STALE, DELAY,orPROBE
.
• An entry is in an
INCOMPLETE state if address resolution is in progress and the hardware
address of the neighbor has not been determined.
• An entry is in a
REACHABLE state if the neighbor is known to have been reachable recently.
• An entry is in a
STALE state if the neighbor is no longer known to be reachable. However, no
attempt has been made to verify its reachability because no traffic has been sent to this neighbor.
• An entry is in a
DELAY state if the neighbor is no longer known to be reachable, and traffic has
recently been sent to the neighbor.
• An entry is in a
PROBE state if the neighbor is no longer known to be reachable, and unicast
Neighbor Solicitation probes have been sent to verify reachability.
The flags can be
D (Deprecated),
L (Local), P (Published), T (Temporary), A (Auto), or a
(anycast). A
deprecated address can be used for receiving packets, but it should not be used for sending packets
because its validity is expected to expire soon. The local flag indicates that this Neighbor Discovery cache
entry corresponds to an interface on this host. The published flag indicates that the host will respond to
Neighbor Solicitations on this IPv6 address. The temporary flag indicates that the address has a ran-
domly generated interface identifier which changes over time. The autonomous flag indicates that the
prefix for the address came from stateless address autoconfiguration. The anycast flag indicates that the
address is an anycast address.
DIAGNOSTICS
ndp returns a non-zero value to indicate errors. A zero return value indicates success.
EXAMPLES
The following
netstat output shows the local interfaces and the IP addresses assigned to them.
# netstat -inf inet6
Name Mtu Address/Prefix Ipkts Opkts
lan1 1500 fe80::210:83ff:fef7:3a21/10 982 759
lan1:1 1500 fec0::9:210:83ff:fef7:3a21/64 0 0
lan3 1500 fe80::210:83ff:fef7:7a9d/10 0 0
lo0 4136 ::1/128 57 57
To display the entire Neighbor Discovery cache:
# ndp -a -n
Destination Physical Address Interface State Flags
fe80::202:fdff:fe36:8720 0:2:fd:36:87:20 lan1 STALE -
fec0::9:210:83ff:fef7:3a21 0:10:83:f7:3a:21 lan1:1 REACHABLE LP
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010