HP MSR2000/3000/4000 Router Series Layer 2 - LAN Switching Configuration Guide
4
Step Command Remarks
2. Enter Layer 2 Ethernet
interface view.
interface interface-type
interface-number
N/A
3. Disable MAC address
learning on the interface.
undo mac-address mac-learning
enable
By default, MAC address learning
on the interface is enabled.
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 the entry. This aging mechanism makes sure the MAC address table could promptly
update to accommodate latest network topology changes.
Set the aging timer appropriately. A stable network requires a longer aging interval and an unstable
network requires a shorter aging interval. A too long 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 latest network changes. A too short interval might result in removal of valid entries,
causing unnecessary floods, which might increase network burden.
You can reduce floods on a stable network by setting a long aging timer or disabling the aging timer to
prevent dynamic entries from unnecessarily aging out. By reducing floods, you improve not only network
performance, but also security, because the chances for a data frame to reach unintended destinations
are reduced.
To configure the aging timer for dynamic MAC address entries:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Configure the aging timer for
dynamic MAC address
entries.
mac-address timer { aging seconds
| no-aging }
By default, the aging timer for
dynamic MAC address entries is
300 seconds.
Displaying and maintaining the MAC address table
Execute display commands in any view.
Task Command
Display MAC address table
information.
display mac-address [ mac-address [ vlan vlan-id ] | [ [ dynamic |
static ] [ interface interface-type interface-number ] | blackhole ]
[ vlan vlan-id ] [ count ] ]
Display the aging timer for dynamic
MAC address entries.
display mac-address aging-time
Display the system or interface MAC
address learning state.
display mac-address mac-learning [ interface interface-type
interface-number ]