Mac-Address Max-Mac-Count (Interface View) - HP 12500 Series Command Reference Manual

Routing, layer 2 - lan switching
Table of Contents

Advertisement

undo mac-address mac-learning enable
Default
MAC address learning is enabled.
Views
Layer 2 Ethernet interface view, VLAN view, Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
To prevent the MAC address table from becoming saturated, you can disable MAC address learning.
For example, a number of frames with different source MAC addresses reaching a device can affect
the MAC address table update. You can disable MAC address learning to avoid such attacks, but the
following guidelines apply:
If you disable MAC address learning, the device stops learning MAC addresses and cannot
dynamically update the MAC address table.
Because disabling MAC address learning can result in broadcast storms, enable broadcast
storm suppression after you disable MAC address learning. For more information about
broadcast storm suppression, see Interface Configuration Guide.
You can disable MAC address learning for the specific interface or VLAN.
The learned MAC address entries age out normally after MAC address learning is disabled.
Examples
# Disable MAC address learning on GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] undo mac-address mac-learning enable
# Disable MAC address learning for VLAN 10.
<Sysname> system-view
[Sysname] vlan 10
[Sysname-vlan10] undo mac-address mac-learning enable
# Disable MAC address learning on Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] undo mac-address mac-learning enable
Related commands
display mac-address mac-learning

mac-address max-mac-count (interface view)

Use mac-address max-mac-count to configure the maximum number of MAC addresses that can
be learned on an interface.
Use undo mac-address max-mac-count to restore the default.
8

Advertisement

Table of Contents
loading

Table of Contents