ipv6 neighbor
Function
The ipv6 neighbor command configures static neighbor entries.
The undo ipv6 neighbor command deletes static neighbor entries.
By default, no static neighbor entry is configured.
Format
ipv6 neighbor ipv6-address mac-address vid vlan-id interface-type interface-number
undo ipv6 neighbor ipv6-address
Parameters
Parameter | Description | Value |
---|---|---|
ipv6-address | Specifies the IPv6 address of a static neighbor entry. | The value consists of 128 octets, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format X:X:X:X:X:X:X:X. |
mac-address | Specifies the MAC address of a static neighbor entry. | The value is in the H-H-H format. An H contains four hexadecimal numbers. |
vid vlan-id | Specifies the ID of the VLAN to which the interface belongs. | The value is an integer that ranges from 1 to 4094. |
interface-type interface-number | Specifies the interface type and number of a physical interface. | - |
Usage Guidelines
Usage Scenario
To filter invalid packets, you can create static neighbor entries, binding the destination IPv6 addresses of these packets to nonexistent MAC addresses.
Prerequisites
The IPv6 function has been enabled on the interface using the ipv6 enable command in the interface view.
Precautions
A neighbor entry enters the REACHABLE state after being created, indicating that the interface connected to this neighbor is Up.
The static neighbor entries overwrite the neighbor entries dynamically learnt by device. That is, static neighbor entries are of higher priorities than dynamically learnt neighbor entries.
If the IPv6 address or MAC address specified in the ipv6 neighbor command is incorrect, communication with this neighbor fails.