
15-14
Configuring IPv6 NDP
Configuring a Static Neighbor Entry
The IPv6 address of a neighboring node can be resolved into a link-layer address dynamically
through NS and NA messages or through a manually configured static neighbor entry.
The device uniquely identifies a static neighbor entry by the neighbor's IPv6 address and the
local Layer 3 interface number. There are two configuration methods:
z
Associate a neighbor IPv6 address and link-layer address with the Layer 3 interface of the
local node.
z
Associate a neighbor IPv6 address and link-layer address with a port in a VLAN containing
the local node.
Follow these steps to configure a static neighbor entry:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Configure a static
neighbor entry
ipv6 neighbor ipv6-address mac-address
{
vlan-id
port-type
port-number
|
interface
interface-type
interface-number
}
Required
You can use either method above to configure a static neighbor entry for a VLAN interface.
z
After a static neighbor entry is configured by using the first method, the device needs to
resolve the corresponding Layer 2 port information of the VLAN interface.
z
If you use the second method, ensure that the corresponding VLAN interface exists and
that the Layer 2 port specified by
port-type
port-number
belongs to the VLAN specified by
vlan-id
. After a static neighbor entry is configured, the device associates the VLAN
interface with the IPv6 address to identify the static neighbor entry uniquely.
Configuring the Maximum Number of Neighbors Dynamically Learned
The device can dynamically acquire the link-layer address of a neighboring node through NS
and NA messages and add it into the neighbor table. A large table may reduce the forwarding
performance of the device. You can restrict the size of the neighbor table by setting the
maximum number of neighbors that an interface can dynamically learn. When the number of
dynamically learned neighbors reaches the threshold, the interface will stop learning neighbor
information.
Follow these steps to configure the maximum number of neighbors dynamically learned: