Mac-Address Max-Mac-Count 0 - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

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

mac-address max-mac-count 0

This command is available to only S3100-EI series Ethernet switches.
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.
By default, a switch learns MAC addresses in any VLAN.
Example
# Disable the switch from learning MAC address in VLAN 3.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] vlan 3
[Sysname-vlan3] mac-address max-mac-count 0
1-6

Advertisement

Table of Contents
loading

Table of Contents