R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101
41
To do… Use the command…
Remarks
Add or modify a
static or dynamic
MAC address entry
mac-address { dynamic | static }
mac-address vlan vlan-id
Required
Ensure that you have created the VLAN
and assign the interface to the 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 the entry. This aging mechanism ensures that the MAC address table could promptly
update to accommodate latest network changes.
Set the aging timer appropriately. Too long an aging interval may 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. Too short an interval may result in removal of valid entries,
causing unnecessary broadcasts, which may affect device performance.
Follow these steps to configure the aging timer for dynamic MAC address entries:
To do… Use the command…
Remarks
Enter system view system-view —
Configure the aging
timer for dynamic
MAC address
entries
mac-address timer { aging seconds |
no-aging }
Optional
300 seconds by default.
The no-aging keyword disables the aging
timer.
You can reduce broadcasts on a stable network by disabling the aging timer to prevent dynamic entries
from unnecessarily aging out. By reducing broadcasts, you improve not only network performance, but
also security, because the chances for a data packet to reach unintended destinations are reduced.
Displaying and maintaining MAC address tables
To do… Use the command…
Remarks
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 ] ]
Available in any view
Display the aging
timer for dynamic
MAC address
entries
display mac-address aging-time Available in any view
MAC address table configuration example
Network requirements
As shown in Figure 24: