The ipv6 nd neighbor-limit vlan command configures the maximum number of dynamic ND entries related to a Layer 2 interface that the VLANIF interface corresponding to the Layer 2 interface can learn.
The undo ipv6 nd neighbor-limit vlan command restores the default configuration.
By default, if a VLANIF interface contains only one Layer 2 interface, it can learn a maximum of 16384 dynamic ND entries related to the Layer 2 interface; if a VLANIF interface contains multiple Layer 2 interfaces, it can learn a maximum of 16384 or less dynamic ND entries related to each Layer 2 interface.
Parameter | Description | Value |
---|---|---|
to vlanEndValue |
Specifies an end VLAN ID. |
The value is an integer ranging from 1 to 4094. |
maximum limit-number |
Specifies the maximum number of each dynamic ND entry related to a Layer 2 interface that the VLANIF interface corresponding to the Layer 2 interface can learn. |
The value is an integer ranging from 0 to 65536. The value range of this parameter is controlled by the PAF. After the PAF is loaded, the value range of this parameter is from 0 to 147456. |
vlan vlanBegValue |
Specifies a start VLAN ID. |
The value is an integer ranging from 1 to 4094. |
Usage Scenario
When an attacker sends a large number of ND messages to a Layer 2 interface, the VLANIF interface corresponding to the Layer 2 interface learns dynamic ND entries. If the number of dynamic ND entries learned by the VLANIF interface reaches the allowed maximum value, the VLANIF interface cannot learn dynamic ND entries related to the other Layer 2 interfaces in it, affecting authorized users' access to the network. To resolve this issue, run the ipv6 nd neighbor-limit command to configure the maximum number of dynamic ND entries related to a Layer 2 interface that the VLANIF interface corresponding to the Layer 2 interface can learn.
Precautions
<HUAWEI> system-view [~HUAWEI] interface Eth-Trunk 1 [*HUAWEI-Eth-Trunk1] portswitch [*HUAWEI-Eth-Trunk1] ipv6 nd neighbor-limit vlan 10 to 20 maximum 30