HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
n
ndp(1M) ndp(1M)
-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
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), or P (published). 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.
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
38 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: February 2007