ipv6 neighbor

Function

The ipv6 neighbor command configures a static entry in the IPv6 neighbor discovery cache.

The undo ipv6 neighbor command deletes a static entry from the IPv6 neighbor discovery cache.

By default, no static entry is configured.

Format

ipv6 neighbor ipv6-address mac-address

undo ipv6 neighbor ipv6-address

Parameters

Parameter Description Value
ipv6-address

Specifies the IPv6 address of a static entry.

The address 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 static entry.

The value is in the format of H-H-H. Each H is a 4-digit hexadecimal number, such as 00e0. If you enter fewer than four digits, the system pads 0s before the input digits. For example, if you enter e0, the system changes it to 00e0.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, PW-VE interface view, VE sub-interface view, Management interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nd write

Usage Guidelines

Usage Scenario

To filter the illegal packets, you can create static ND entries, binding the destination IPv6 addresses of these packets to nonexistent MAC addresses.

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 routers. That is, static ND entries are of higher priorities than dynamically learnt ND entries.

Precautions

You can configure a maximum of 16K static ND entries on an interface.

If the IPv6 address or MAC address specified in the ipv6 neighbor command is incorrect, communication with this neighbor fails.

You can run the reset ipv6 neighbors command to delete dynamic ND entries.

Example

# Configure static entries in the IPv6 neighbor discovery cache on GE0/1/1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/1] ipv6 neighbor 2001:db8::1 fe-e0-89
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >