ndp8
Control/diagnose ipv6 neighbor discovery protocol (ndp)
Usage
ndp [-acnt]
[-A
wait]
[-d
hostname]
[-f
filename]
[-i
interface]
[-s
nodename
ether_addr
[temp]
[proxy]]
[-V
rdomain]
[hostname]
Overview
The ndp command manipulates the address mapping table used by the Neighbor Discovery Protocol (NDP).
-
-A wait -
Repeat
-a(dump NDP entries) every wait seconds. -
-a -
Dump the currently existing NDP entries. The following information will be printed:
- Neighbor
-
The IPv6 address of the neighbor.
- Linklayer Address
-
The linklayer address of the neighbor. If the address is not available, it will be displayed as “(incomplete)”.
- Netif
-
The network interface associated with the neighbor cache entry.
- Expire
-
The time until expiry of the entry. If the entry is marked “permanent”, it will never expire.
- S
-
The state of the neighbor cache entry, as a single letter:
- D
-
Delay
- I
-
Incomplete
- N
-
Nostate
- P
-
Probe
- R
-
Reachable
- S
-
Stale
- W
-
Waitdelete
- ?
-
Unknown state (should never happen).
- Flags
-
Flags on the neighbor cache entry, in a single letter. They are: local (‘l’), Router (‘R’) and proxy neighbor advertisement (‘p’). This field may be followed by a decimal number, representing the number of NS probes the node has sent during the current state.
-
-c -
Erase all the NDP entries.
-
-d hostname -
Delete the specified NDP entry.
-
-f filename -
Parse entries from file to be inserted in the neighbor cache. See the
-soption for a description of the file format. -
-i interface -
View ND information for the specified interface.
-
-n -
Do not perform domain name resolution. If a name cannot be resolved without DNS, an error will be reported.
-
-snodename ether_addr [temp] [proxy] Register an NDP entry for the node called nodename with the Ether address ether_addr. The Ethernet address is given as six hexadecimal bytes separated by colons. The entry will be permanent unless the wordtempis given in the command. If the wordproxyis given, this system will act as an ND Proxy server, responding to requests for nodename even though the node address is not its own. -
-t -
Print a timestamp on each entry, making it possible to merge output with tcpdump(8). Most useful when used with
-A. -
-V rdomain -
Select the routing domain.
Exit status
The ndp utility exits 0 on success, and >0 if an error occurs.
Releases
55 releases since OpenBSD 2.7; the text changed 19 times.
- 2.7
- 2.8
- 2.9–3.1
- 3.2
- 3.3
- 3.4–3.6
- 3.7–3.9
- 4.0–4.1
- 4.2–4.3
- 4.4–4.8
- 4.9
- 5.0–5.3
- 5.4
- 5.5
- 5.6
- 5.7–5.8
- 5.9
- 6.0–6.1
- 6.2–6.5
- 6.6–8.0
-V since OpenBSD 5.5;
-i since OpenBSD 6.2.
-H until OpenBSD 6.1;
-I until OpenBSD 5.3;
-P until OpenBSD 6.1;
-R until OpenBSD 6.1;
-l until OpenBSD 2.8;
-p until OpenBSD 6.1;
-r until OpenBSD 6.1;
-s until OpenBSD 3.9.