Mac-Address Mac-Learning Disable - HP 3100 v2 Series Command Reference Manual

Hide thumbs Also See for 3100 v2 Series:
Table of Contents

Advertisement

A static or blackhole MAC address entry will not be overwritten by a dynamic MAC address entry. A
dynamic MAC address entry can be overwritten by a static or blackhole MAC address entry.
If you execute the undo mac-address command without specifying any parameters, this command
deletes all unicast MAC address entries and static multicast MAC address entries.
You can delete all the MAC address entries (including unicast MAC address entries and static
multicast MAC address entries) of a VLAN, or you can choose to delete a specific type (dynamic,
static, or blackhole) of MAC address entries only. You can single out certain ports and delete the
corresponding unicast MAC address entries, but not the corresponding static multicast MAC address
entries.
The MAC address entries configuration cannot survive a reboot unless you save it. The dynamic
MAC address table entries, however, are lost at next reboot regardless of whether or not you save
the configuration.
Related commands: display mac-address.
Examples
# Add a static entry for MAC address 000f-e201-0101. All frames destined to this MAC address are
sent out of port Ethernet 1/0/1 which belongs to VLAN 2.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface ethernet 1/0/1 vlan 2

mac-address mac-learning disable

Syntax
mac-address mac-learning disable
undo mac-address mac-learning disable
View
Layer 2 Ethernet interface view, VLAN view (available only on the HPE 3100 v2 EI), port group view,
Layer 2 aggregate interface view
Default level
2: System level
Parameters
None
Description
Use mac-address mac-learning disable to disable MAC address learning. Depending on the view
that you entered, you can disable it on a Layer 2 interface or a group of Ethernet ports, or on a VLAN.
Use undo mac-address mac-learning disable to enable MAC address learning. Depending on the
view that you entered, you can disable it on a Layer 2 interface or a group of Ethernet ports, or on a
VLAN.
By default, MAC address learning is enabled.
Follow these guidelines when you configure MAC address learning:
Only the HPE 3100 v2 EI switch supports disabling MAC address learning on a VLAN.
You may need to disable MAC address learning to prevent the MAC address table from being
saturated. For example, when your device is being attacked by many packets with different
source MAC addresses, it affects the update of the MAC address table.
Because disabling MAC address learning may result in broadcast storms, enable broadcast
storm suppression after you disable MAC address learning on a port.
Related commands: display mac-address mac-learning.
56

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents