< Home

ipv6 nd learning strict

Function

The ipv6 nd learning strict command enables IPv6 neighbor discovery (ND) strict learning.

The undo ipv6 nd learning strict command disables IPv6 ND strict learning.

By default, IPv6 ND strict learning is disabled.

Format

In the system view:

ipv6 nd learning strict

undo ipv6 nd learning strict

In the interface view:

ipv6 nd learning strict { force-disable | force-enable | trust }

undo ipv6 nd learning strict

Parameters

Parameter Description Value
force-disable Disables IPv6 ND strict learning forcibly. -
force-enable Enables IPv6 ND strict learning forcibly. -
trust Inherits the global setting of IPv6 ND strict learning. -

Views

VLANIF interface view, VBDIF interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, system view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Generally, a device uses neighbor advertisement (NA) packets to establish neighbor entries. Run the ipv6 nd learning strict command to enable IPv6 ND strict learning. After you enable IPv6 ND strict learning on a device, the device uses NA packets only in response to neighbor solicitation (NS) packets to establish neighbor entries.

Prerequisites

Before using the ipv6 nd learning strict command to enable IPv6 neighbor discovery (ND) strict learning on an interface, ensure that the IPv6 function has been enabled on the interface using the ipv6 enable command.

Precautions

Before running this command in an Eth-Trunk view, run the undo portswitch command to switch the Eth-Trunk to a Layer 3 interface. For the models supporting switching between Layer 2 and Layer 3 modes, see portswitch.

After you run the ipv6 nd learning strict command on a device, the device synchronizes fake entries. Synchronizing a large number of fake entries affects device performance. Therefore, you are advised to use the command only for protocol consistency tests.

Example

# Enable IPv6 ND strict learning globally.

<HUAWEI> system-view
[HUAWEI] ipv6 nd learning strict

# Enable IPv6 ND strict learning on VLANIF 100 forcibly.

<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ipv6 enable
[HUAWEI-Vlanif100] ipv6 nd learning strict force-enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >