Configuring ipv6 nd, Configuring a static neighbor entry – H3C Technologies H3C S12500 Series Switches User Manual
Page 158

144
Configuring IPv6 ND
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 switch uniquely identifies a static neighbor entry according to the neighbor IPv6 address and the
local Layer 3 interface number. There are two configuration methods:
•
Associate a neighbor IPv6 address and link-layer address with the Layer 3 interface of the local
node.
•
Associate a neighbor IPv6 address and link-layer address with a port in a VLAN containing the
local node.
You can use either method above to configure a static neighbor entry for a VLAN interface.
•
After a static neighbor entry is configured by using the first method, the switch needs to resolve the
corresponding Layer 2 port information for the VLAN interface.
•
If you use the second method, make sure 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 switch associates the VLAN interface with the IPv6 address to
identify the static neighbor entry uniquely.
To configure a static neighbor entry:
Step Command
1.
Enter system view.
system-view
2.
Configure a static
neighbor entry.
ipv6 neighbor ipv6-address mac-address { vlan-id port-type port-number |
interface interface-type interface-number } [ vpn-instance vpn-instance-name ]
IMPORTANT:
In IRF mode, the
mac-address argument in a static neighbor entry cannot be the same as that in the
multi-port unicast MAC address entry. Otherwise, conflicts might occur. For more information about the
multi-port unicast MAC address entry, see
Layer 2—LAN Switching Configuration Guide.
Configuring the maximum number of neighbors dynamically
learned
The switch 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 might reduce the forwarding performance of
the switch. 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.
To configure the maximum number of neighbors dynamically learned: