22
Configure MAC
address table
entries
Configure static or
dynamic MAC
address table
entries
mac-address { dynamic | static } mac-
address interface interface-type
interface-number vlan vlan-id
Required
Use either command.
Make sure that you
have created the VLAN
and assign the
interface to the VLAN.
Configure
blackhole MAC
address table
entries
mac-address blackhole mac-address
vlan vlan-id
Follow these steps to add or modify a MAC address table entry in interface view:
interface interface-type interface-
number
Configure a MAC address table
entry
mac-address { dynamic | static }
mac-address vlan vlan-id
Required
Ensure that you have created the
VLAN and assign the interface to
the VLAN
Disabling MAC address learning
Sometimes, you might need to disable MAC address learning to prevent the MAC address table from
being saturated, for example, when your switch is being attacked by a large amount of packets with
different source MAC addresses.
Disabling global MAC address learning
Disabling global MAC address learning disables the learning function on all ports.
Follow these steps to disable MAC address learning:
Disable global MAC address
learning
mac-address mac-learning
disable
Required
Enabled by default.
NOTE:
When MAC address learning is disabled, the obtained MAC addresses remain valid until they age out.
Disabling MAC address learning on ports
After enabling global MAC address learning, you can disable the function on a single port, or on all
ports in a port group as needed.
Follow these steps to disable MAC address learning on an interface or a port group: