Configuring Static Neighbors
Context
To communicate with a destination host, a host needs to obtain the destination host's link-layer address. The link-layer address of a neighbor node can be obtained using the neighbor discovery mechanism, or by manually configuring static neighbor entries. A device identifies a static neighbor entry based on the IPv6 address of this neighbor and number of the Layer 3 interface connected to this neighbor. To filter invalid packets, you can create static neighbor entries, binding the destination IPv6 addresses of these packets to nonexistent MAC addresses.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The specified interface view is displayed.
- Run one of the following commands based on the interface type:
Run ipv6 neighbor ipv6-address mac-address
Static neighbor entries are configured on common Layer 3 interfaces.
Run ipv6 neighbor ipv6-address mac-address vid vlan-id interface-type interface-number
Static neighbor entries are configured on VLANIF interfaces.
Run ipv6 neighbor ipv6-address mac-address vid vlan-id [ cevid cevid ]
Static neighbor entries are configured on a QinQ or Dot1q termination subinterface.
If dynamic QinQ is enabled, static neighbor entries cannot be configured.