IPv6 neighbor discovery display and control.
ndp [ -n ] hostname
ndp [ -n ] -a
ndp [ -d ] hostname
ndp [ -i interface_index ] -s hostname addr [ temp ]
The ndp program displays and modifies the IPv6-to-Ethernet, IPv6-to-Fddi, or the IPv6-to-TokenRing address translation tables used by the IPv6 neighbor discovery protocol (ndp (4)).
With no flags, the program displays the current ndp entry for hostname. The host may be specified by name or by number, using IPv6 textual notation.
- a | The program displays all of the current ndp entries. |
- d | A super-user may delete an entry for the host called hostname with the -d flag. |
- i interface_index | Specify the index of the interface to use when an ndp entry is added with the - s flag (useful with the local-link interface). |
- n | Show network addresses as numbers (normally ndp attempts to display addresses symbolically). |
- s hostname addr | Create an ndp entry for the host called hostname with the Hardware address addr. The Hardware address is given as six hex bytes separated by colons. The entry will be permanent unless the word temp is given in the command. |
# ndp -a | |
e-crankv6 (::903:9182) at link#2 0:20:af:db:b8:cf | |
e-crankv6-11 (fe80:0:100::20:afdb:b8cf) at link#2 0:20:af:db:b8:cf | |
# ndp -d e-crankv6-11 | |
e-crankv6-11 (fe80:0:100::20:afdb:b8cf) deleted |
The ifconfig command.