(Optional) Configuring Strict Prefix Learning for Dynamic Neighbor Entries

You can configure the strict prefix learning function for dynamic neighbor entries to determine whether an interface learns valid NS messages carrying different network prefixes.

Context

When a device receives a valid NS message on an interface, the device checks whether IPv6 addresses with the same network prefix exist on the interface. If so, the device replies with an NA message and generates dynamic neighbor entries. If not, the device performs the following operations:
  • If the strict prefix learning function for dynamic neighbor entries is enabled on the interface, the device simply discards the NS message and does not generate dynamic neighbor entries.
  • If the strict prefix learning function for dynamic neighbor entries is disabled on the interface, the device replies with an NA message and generates dynamic neighbor entries.

In the system view, the strict prefix learning function works on all device interfaces. In the interface view, the strict prefix learning function works only for the specified interface. The configuration of this function in the interface view has a higher priority than that in the system view.

By default, an interface is not enabled with the strict prefix learning function for dynamic neighbor entries. The interface behavior is consistent with the configuration in the system view.

Perform the following operations as required:

Procedure

  • To disable the strict prefix learning function for dynamic neighbor entries on interfaces in batches, perform the following operations:
    1. Run system-view

      The system view is displayed.

    2. Run ipv6 nd learning prefix strict disable

      The strict prefix learning function for dynamic neighbor entries is disabled on all interfaces.

      The interfaces (such as the Dot1q termination sub-interface, QinQ termination sub-interface, VLANIF interface, and VBDIF interface) that need to generate host routes do not support disabling of the strict prefix learning function for dynamic neighbor entries. The configuration in the system view does not take effect for such interfaces.

    3. Run interface interface-type interface-number

      The interface view is displayed.

    4. Run ipv6 enable

      The IPv6 function is enabled.

    5. Run ipv6 nd learning prefix strict enable

      The strict prefix learning function for dynamic neighbor entries is enabled.

    6. Run commit

      The configuration is committed.

  • To enable the strict prefix learning function for dynamic neighbor entries on interfaces in batches, perform the following operations:
    1. Run system-view

      The system view is displayed.

    2. Run undo ipv6 nd learning prefix strict disable

      The strict prefix learning function for dynamic neighbor entries is enabled on all interfaces.

    3. Run interface interface-type interface-number

      The interface view is displayed.

    4. Run ipv6 enable

      The IPv6 function is enabled.

    5. Run ipv6 nd learning prefix strict disable

      The strict prefix learning function for dynamic neighbor entries is disabled.

    6. Run commit

      The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >