Configuring a static neighbor entry
About static neighbor entries
A neighbor entry stores information about a link-local node. The entry can be created dynamically through NS and NA messages, or configured statically.
The device uniquely identifies a static neighbor entry by using the neighbor's IPv6 address and the number of the Layer 3 interface that connects to the neighbor. You can configure a static neighbor entry by using one of the following methods:
Method 1—Associate a neighbor's IPv6 address and link-layer address with the local Layer 3 interface.
Method 2—Associate a neighbor's IPv6 address and link-layer address with a Layer 2 port in a VLAN.
Restrictions and guidelines
You can use either of the methods to configure a static neighbor entry for a VLAN interface.
If you use Method 1, the device is required to resolve the Layer 2 port in the related VLAN.
If you use Method 2, make sure the Layer 2 port belongs to the specified VLAN and the corresponding VLAN interface already exists. After the configuration, the device associates the VLAN interface with the neighbor IPv6 address to identify the static neighbor entry.
Procedure
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 } [ vpn-instance vpn-instance-name ]
By default, no static neighbor entries exist.