HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
n
ndp(1M) ndp(1M)
The use of -d, -F,
-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, or PROBE. An entry is in an INCOM-
PLETE 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
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), or P (published). A depre-
cated 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.
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
fe80::210:83ff:fef7:3a21 0:10:83:f7:3a:21 lan1 REACHABLE LP fe80::210:83ff:fef7:7a9d
0:10:83:f7:7a:9d lan3 REACHABLE LP
To show Neighbor Discovery cache entries for a host:
# ndp fe80::210:83ff:fef7:3a21
Destination Physical Address Interface State Flags fe80::210:83ff:fef7:3a21 0:10:83:f7:3a:21
lan1 REACHABLE LP
To show Neighbor Discovery cache entries for an interface:
# ndp -n -i lan3 -a
Destination Physical Address Interface State Flags fe80::210:83ff:fef7:7a9d 0:10:83:f7:7a:9d
lan3 REACHABLE LP
To delete a Neighbor Discovery cache entries for a host and an interface:
# ndp -i lan1 -d fe80::202:fdff:fe36:8720
fe80::202:fdff:fe36:8720 (fe80::202:fdff:fe36:8720) deleted.
To show the prefix list:
# ndp -p
Prefix List Interface Valid Preferred Flags
Entries Lifetime Lifetime
fec0:0:0:9::/64 lan1 167 107 A
HP-UX 11i Version 1: September 2005 − 2 − Hewlett-Packard Company Section 1M−−555