Command Manual – MAC Address Table Management
H3C S7500E Series Ethernet Switches
Chapter 1 MAC Address Table Management
Configuration Commands
1-7
z
You may need to disable MAC address learning sometimes to prevent the MAC
address table from being saturated, for example, when your device is being
attacked by a great deal of packets with different source MAC addresses. This
somewhat affects update of the MAC address table.
z
As disabling MAC address learning may result in broadcast storms, you need to
enable broadcast storm suppression after you disable MAC address learning on a
port.
Related commands:
display mac-address mac-learning
.
Note:
When global MAC address learning is disabled, the learned MAC addresses remain
valid until they age out.
Examples
# Disable global MAC address learning.
<Sysname> system-view
[Sysname] mac-address mac-learning disable
# Disable MAC address learning on port Ethernet 2/0/1.
<Sysname> system-view
[Sysname] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] mac-address mac-learning disable
1.1.7 mac-address max-mac-count
Syntax
mac-address max-mac-count
count
undo mac-address max-mac-count
View
Ethernet port view, port group view
Parameters
count
: Maximum number of MAC addresses that can be learned on a port, in the range
0 to 4096. When the argument takes 0, the port is not allowed to learn MAC addresses.
Description
Use the
mac-address max-mac-count count
command to configure the maximum
number of MAC addresses that can be learned on an Ethernet port.