The ipv6 neighbor command configures the static neighbors in the neighbor discovery cache.
The undo ipv6 neighbor command deletes the static neighbors from the cache.
By default, no static neighbor is configured in the cache.
ipv6 neighbor ipv6-address mac-address
ipv6 neighbor ipv6-address mac-address vid vlan-id interface-type interface-number
undo ipv6 neighbor ipv6-address
| Parameter | Description | Value |
|---|---|---|
ipv6-address |
Specifies the IPv6 address of the neighbor. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
mac-address |
Specifies the data link layer address of the neighbor. |
It is a 48 bit address in the format of H-H-H. |
vid vlan-id |
Specifies the VLAN ID of the VLANIF interface. |
The value is an integer ranging from 1 to 4094. |
interface-type interface-number |
Specifies the corresponding physical interface type and interface number of the VLANIF interface. |
- |
Ethernet interface view, Eth-Trunk interface view, Tunnel interface view, VLANIF interface view, BDIF interface view
Application Environment
The ipv6 neighbor command is applicable to GE interfaces and GE sub-interfaces, Eth-Trunk interfaces and Eth-Trunk sub-interfaces, and tunnel interfaces. Through this command configures the mapping between the IPv6 address and MAC address for a neighbor. An ND entry is an entry indicating the mapping between an IPv6 address and a MAC address.
To filter the illegal packets, you can create static ND entries, binding the destination IPv6 addresses of these packets to nonexistent MAC addresses.
To configure a static neighbor entry on a common Layer 3 interface, run the ipv6 neighbor ipv6-address mac-address command.
To configure a static neighbor entry on a VLANIF interface, run the ipv6 neighbor ipv6-address mac-address vid vlan-id interface-type interface-number command.
Prerequisites
Before running the ipv6 neighbor command to configure a static entry, you need to run the ipv6 enable command in the interface view to enable the IPv6 function on the interface.
Configuration Impact
An ND entry enters the REACHABLE state after being created, indicating that the interface connected to this neighbor is Up. If the interface connected to this neighbor turns Down, the ND entry needs to be deleted.
The static ND entries overwrite the ND entries dynamically learnt by FWs. That is, static ND entries are of higher priorities than dynamically learnt ND entries.
Precautions
If the IPv6 address or MAC address specified in the ipv6 neighbor command is incorrect, communication with this neighbor fails.
You can run the undo ipv6 neighbor command to delete static ND entries
and the reset ipv6 neighbors command to delete dynamic ND entries.