Configuring ND
Overview
Function Introduction
Nodes (hosts and routers) use Neighbor Discovery to determine the link-layer addresses for neighbors known to reside on attached links and to quickly purge cached values that become invalid.
Hosts also use Neighbor Discovery to find neighboring routers that are willing to forward packets on their behalf.
Finally, nodes use the protocol to actively keep track of which neighbors are reachable and which are not, and to detect changed link-layer addresses. When a router or the path to a router fails, a host actively searches for functioning alternates.
Principle Description
N/A
Configuration
NDP
In this example, interface eth-0-1 assigned with ipv6 address 3000::1/64, on subnet 3000::/64, there are two hosts, and their IP addresses are 3000::2, 3000::3, MAC address are 0058-3F11-eca2, 0058-3F11-eca3. Neighbor entry of host 3000::2 is added manually, the entry of host 3000::3 is added dynamically. The reachable time of neighbor entries for interface eth-0-1 configure to 10 minutes, NS interval on interface eth-0-1 configure to 2 seconds.
step 1 Enter the configure mode
Switch# configure terminal
step 2 Enter the interface configure mode and set the attributes of the interface
Switch(config)# interface eth-0-1
Switch(config-if)# no switchport
Switch(config-if)# no shutdown
Switch(config-if)# ipv6 address 3000::1/64
Switch(config-if)# ipv6 nd reachable-time 600
Switch(config-if)# ipv6 nd ns-interval 2000
Switch(config-if)# exit
step 3 Add a static neighbor entry
Switch(config)# ipv6 neighbor 3000::2 0058.3f11.eca2
step 4 Exit the configure mode
Switch(config)# end
step 5 Validation
Switch# show ipv6 neighbors
IPv6 address Age Link-Layer Addr State Interface
3000::2 - 0058-3F11-eca2 REACH eth-0-1
3000::3 6 0058-3F11-eca3 REACH eth-0-1
fe80::6d8:e8ff:fe4c:e700 6 0058-3F11-eca3 STALE eth-0-1
Application cases {application-cases-86}
N/A