H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – MAC Address Table
H3C S7500 Series Ethernet Switches
Chapter 1 MAC Address Table Configuration
Commands
1-7
Use the undo mac-address mac-learning disable command to re-enable the current
port to learn MAC addresses.
By default, the port is enabled to learn MAC addresses.
Note:
z Do not use the mac-address mac-learning disable command together with any
802.1x-related command in Ethernet port view.
z Do not use the mac-address mac-learning disable command together with the
mac-address max-mac-count command.
Examples
# Disable the port Ethernet 2/0/1 from learning MAC addresses.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet 2/0/1
[H3C-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
Parameters
count: Maximum number of MAC addresses a port can learn. This argument ranges
from 0 to 16,384. The value 0 means that the port is disabled from learning MAC
addresses.
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.