23
Configuring a static or dynamic MAC address table entry in
system view
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Add or modify a
dynamic or static MAC
address entry.
mac-address { dynamic | static }
mac-address interface interface-type
interface-number vlan vlan-id
By default, no MAC address
entry is configured.
Make sure that you have created
the VLAN and assigned the
interface to the VLAN.
Configuring a static or dynamic MAC address table entry in
interface view
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface
view.
interface interface-type
interface-number
N/A
3. Add or modify a static or
dynamic MAC address
entry.
mac-address { dynamic | static }
mac-address vlan vlan-id
By default, no MAC address entry is
configured.
Make sure that you have created the
VLAN and assigned the interface to the
VLAN.
Configuring a blackhole MAC address entry
Step Command Remarks
1. Enter system view.
system-view N/A
2. Add or modify a
blackhole MAC
address entry.
mac-address blackhole mac-address vlan vlan-id
By default, no MAC
address entry is
configured.
Make sure that you have
created 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 device is being attacked by a large amount of packets with
different source MAC addresses.
When MAC address learning is disabled, the learned MAC addresses remain valid until they age out.