R3303-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Configuration Guide

4
Disabling MAC address learning on ports
You can disable MAC address learning on a single port, or on all ports in a port group.
To disable MAC address learning on an interface or a port group:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view
or port group view.
Enter Layer 2 Ethernet or
aggregate interface view:
interface interface-type
interface-number
Enter port group view:
port-group manual
port-group-name
Use either command.
Settings in interface view take effect only on
the current interface. Settings in port group
view take effect on all member ports in the
port group.
For more information about port groups, see
"Configuring Ethernet interfaces."
3. Disable MAC
address learning.
mac-address mac-learning
disable
By default, MAC address learning is
enabled on each port.
Disabling MAC address learning on a VLAN
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter VLAN view.
vlan vlan-id N/A
3. Disable MAC address
learning on the VLAN.
mac-address mac-learning disable
By default, MAC address learning
is enabled on each VLAN.
Configuring the aging timer for dynamic MAC
address entries
The MAC address table uses an aging timer for dynamic MAC address entries for security and efficient
use of table space. If a dynamic MAC address entry has failed to update before the aging timer expires,
the device deletes that entry. This aging mechanism makes sure the MAC address table can promptly
update to accommodate the most recent network changes.
Set the aging timer appropriately. Too long an aging interval might cause the MAC address table to
retain outdated entries, exhaust the MAC address table resources, and fail to update its entries to
accommodate the most recent network changes. Too short an interval might result in removal of valid
entries, causing unnecessary floods, which could affect device performance.
To configure the aging timer for dynamic MAC address entries:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A