Step
3.
Add the interface to a
multiport unicast MAC
address entry.
Disabling MAC address learning
MAC address learning is enabled by default. To prevent the MAC address table from being saturated
when the device is experiencing attacks, disable MAC address learning. For example, you can disable
MAC address learning to prevent the device from being attacked by a large amount of frames with
different source MAC addresses.
When MAC address learning is disabled, the learned MAC addresses remain valid until they age out.
Disabling global MAC address learning
Step
1.
Enter system view.
2.
Disable global MAC address
learning.
Disabling global MAC address learning disables MAC address learning on all interfaces.
The global MAC address learning configuration does not take effect in a TRILL network, in a VPLS VSI, or
for an S-channel. For information about TRILL, see TRILL Configuration Guide. For information about VSIs,
see MPLS Configuration Guide. For information about S-channels, see EVB Configuration Guide.
Disabling MAC address learning on interfaces
When global MAC address learning is enabled, you can disable MAC address learning on a single
interface.
To disable MAC address learning on an interface:
Step
1.
Enter system view.
Command
mac-address multiport
mac-address vlan vlan-id
Command
system-view
undo mac-address mac-learning
enable
Command
system-view
26
Remarks
By default, no multiport unicast
MAC address entry is configured
on an interface.
Make sure you have created the
VLAN and assigned the interface
to the VLAN.
Do not configure an interface as
the output interface of a multiport
unicast MAC address entry if the
interface receives frames destined
for the multiport unicast MAC
address. Otherwise, the frames are
flooded in the VLAN to which they
belong.
Remarks
N/A
By default, global MAC address
learning is enabled.
Remarks
N/A