You can obtain the mappings between IPv6 addresses and MAC addresses of neighbors after configuring static neighbors. Neighbor entries represent the mappings between IPv6 addresses and MAC addresses of neighbors. If a device is not enabled to send ND protocol packets, it cannot obtain neighbor entries. In this case, you can configure static neighbors on the device to obtain neighbor entries.
The system view is displayed.
The interface view is displayed.
The IPv6 function is enabled.
To configure a static neighbor on a common Layer 3 interface, run the ipv6 neighbor ipv6-address mac-address command.
To configure a static neighbor on a VLANIF interface, run the ipv6 neighbor ipv6-address mac-address vid vlan-id interface-type interface-number command.
To configure a static neighbor on a sub-interface for QinQ VLAN tag termination or dot1q VLAN tag termination, run the ipv6 neighbor ipv6-address mac-address vid vid[ cevid cevid ] command.
After the function of sending ND protocol packets is enabled on a device, a common interface like a GE interface either automatically sends multicast NS packets to learn ND entries actively or respond to NS packets to learn ND entries passively. However, a sub-interface for QinQ VLAN tag termination or dot1q VLAN tag termination cannot send multicast NS packets but discards the multicast NS packets instead. Therefore, to enable a sub-interface for QinQ VLAN tag termination or dot1q VLAN tag termination to send multicast NS packets, run the ipv6 nd ns multicast-enable command on the sub-interface for QinQ VLAN tag termination or dot1q VLAN tag termination. This configuration enables the sub-interface for QinQ VLAN tag termination or dot1q VLAN tag termination to learn ND entries.
The configuration is committed.