The mac-address hash-bucket-mode command sets the hash bucket size of the MAC address table.
The undo mac-address hash-bucket-mode command restores the default hash bucket size of the MAC address table.
By default, the hash bucket size of the MAC address table is 4.
Only the S5720-LI, S5720S-LI, S5720I-SI, S5720-SI, and S5720S-SI support this command.
mac-address hash-bucket-mode { size4 | size8 | size12 | size16 }
undo mac-address hash-bucket-mode
Parameter |
Description | Value |
---|---|---|
size4 |
Indicates that the hash bucket size of the MAC address table is 4. |
- |
size8 |
Indicates that the hash bucket size of the MAC address table is 8. |
- |
size12 |
Indicates that the hash bucket size of the MAC address table is 12. |
- |
size16 |
Indicates that the hash bucket size of the MAC address table is 16. |
- |
Usage Scenario
To improve the MAC address forwarding performance, the MAC address table of the device is saved using a hash link. When the same key value is obtained for multiple MAC addresses according to the hash algorithm, some MAC addresses may be not learned. That is, the MAC address hash conflict occurs. When the MAC address hash conflict occurs, traffic with this destination MAC address can only be broadcast. This occupies device bandwidth and resources.
When the MAC address hash conflict aggravates, run this command to increase the hash bucket size of the MAC address table.
Precautions
A larger hash bucket size will lower device forwarding performance.
When the hash bucket size becomes small, you need to restart the device.