H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – MAC Address Table Management
H3C S7500E Series Ethernet Switches
Chapter 1 MAC Address Table Management
Configuration
1-3
1.2.1 Configuring MAC Address Entries
Follow these steps to add, modify, or remove entries in the MAC address table:
To do… Use the command… Remarks
Enter system view
system-view
mac-address blackhole
mac-address vlan vlan-id
Add/modify a MAC
address entry
mac-address { dynamic | static }
mac-address interface interface-type
interface-number vlan vlan-id
Required
Enter Ethernet interface
view
interface interface-type
interface-number
Add/modify MAC address
entries under the
specified interface view
mac-address { dynamic | static }
mac-address vlan vlan-id
Required
Note:
Do not configure a static or dynamic MAC address entry on an aggregation port.
1.2.2 Disabling Global MAC Address Learning
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.
Disabling global MAC address learning disables the learning function on all ports.
Follow these steps to disable MAC address learning:
To do… Use the command… Remarks
Enter system view
system-view
Disable global MAC
address learning
mac-address
mac-learning disable
Required
Enabled by default.
Note:
When global MAC address learning is disabled, the learned MAC addresses remain
valid until they age out.