Configuring the maximum number of neighbors dynamically learned

The device can dynamically acquire the link-layer address of a neighboring node through NS and NA messages and add it into the neighbor table. A large table can reduce the forwarding performance of the device. You can restrict the size of the neighbor table by setting the maximum number of neighbors that an interface can dynamically learn. When the number of dynamically learned neighbors reaches the threshold, the interface will stop learning neighbor information.

To configure the maximum number of neighbors dynamically learned:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Configure the maximum number of neighbors dynamically learned by an interface.

ipv6 neighbors max-learning-num number

Optional.

By default, a Layer 2 interface does not limit the number of neighbors dynamically learned, and a Layer 3 interface can learn up to 8192 neighbors dynamically.