Disabling Mac Address Learning - HP A5120 EI Series Configuration Manual

Lan switching
Hide thumbs Also See for A5120 EI Series:
Table of Contents

Advertisement

To do...
Enter system view
Configure MAC
address table
entries
Follow these steps to add or modify a MAC address table entry in interface view:
To do...
Enter system view
Enter interface view
Configure a MAC address table
entry

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:
To do...
Enter system view
Disable global MAC address
learning
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:
Use the command...
system-view
Configure static or
mac-address { dynamic | static } mac-
dynamic MAC
address interface interface-type
address table
interface-number vlan vlan-id
entries
Configure
blackhole MAC
mac-address blackhole mac-address
address table
vlan vlan-id
entries
Use the command...
system-view
interface interface-type interface-
number
mac-address { dynamic | static }
mac-address vlan vlan-id
Use the command...
system-view
mac-address mac-learning
disable
Remarks
Required
Ensure that you have created the
VLAN and assign the interface to
the VLAN
22
Remarks
Required
Use either command.
Make sure that you
have created the VLAN
and assign the
interface to the VLAN.
Remarks
Required
Enabled by default.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents