F3215-HP Load Balancing Module Network Management Command Reference-6PW101
47
Usage guidelines
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 MAC address entries.
You can delete all the 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 MAC address entries.
The MAC address entries configuration cannot survive a reboot unless you save it. However, the dynamic
MAC address table entries are lost at next reboot regardless of whether you save the configuration or not.
Examples
# Add a static entry for MAC address 000f-e201-0101. All frames destined to this MAC address are sent
out of port GigabitEthernet 0/1 which belongs to VLAN 2.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface gigabitethernet 0/1 vlan 2
Related commands
display mac-address
mac-address timer
Use mac-address timer to configure the aging timer for dynamic MAC address entries.
Use undo mac-address timer to restore the default.
Syntax
mac-address timer { aging seconds | no-aging }
undo mac-address timer aging
Default
The aging timer for dynamic MAC address entries is 300 seconds.
Views
System view
Default command level
2: System level
Parameters
aging seconds: Sets an aging timer (in seconds) for dynamic MAC address entries. The value range is 10
to 630.
no-aging: Sets dynamic MAC address entries not to age.
Usage guidelines
Follow these guidelines to set the aging timer appropriately:
• A long aging interval may cause the MAC address table to retain outdated entries and fail to
accommodate the latest network changes.
• A short aging interval may result in removal of valid entries and unnecessary broadcasts that may
affect the performance of the device.