Command Manual (For Soliton) – MAC Address Table Management
H3C S3100 Series Ethernet Switches
Chapter 1 MAC Address Table
Management Configuration Commands
1-7
Description
Use the
mac-address max-mac-count
command to set the maximum number of MAC
addresses an Ethernet port can learn.
Use the
undo mac-address max-mac-count
command to cancel the limitation on the
number of MAC addresses an Ethernet port can learn.
By default, the number of MAC addresses an Ethernet port can learn is unlimited.
When you use the
mac
-
address max-mac-count
command, the port stops learning
MAC addresses after the number of MAC addresses it learned reaches the value of the
count
argument you provided. You can use the
undo
command to cancel this limit so
that the port can learn MAC addresses without the number limitation. By default, no
number limitation is set to the port for MAC address learning.
To prevent illegal devices from accessing the network through a port, you can configure
static MAC addresses and disable MAC address learning for the port. Thus, only the
packets destined for the configured MAC addresses can be forwarded out the port.
Related commands:
mac-address
,
mac-address timer
.
Examples
# Set the maximum number of MAC addresses Ethernet 1/0/3 port can learn to 600.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/3
[Sysname-Ethernet1/0/3] mac-address max-mac-count 600
1.1.6 mac-address max-mac-count 0
Syntax
mac-address max-mac-count 0
undo mac-address max-mac-count
View
VLAN view
Parameter
None
Description
Use the
mac-address max-mac-count 0
command to disable a switch from learning
MAC address in a VLAN.
Use the
undo mac-address max-mac-count
command to enable a switch to learn
MAC address in a VLAN.