66
Parameters
count
: Sets the maximum number of MAC addresses that can be learned on an interface. When the
argument is set to 0, the interface cannot learn MAC addresses. The value range for this argument varies
with devices. For more information, see
About the Command References for HP Unified Wired-WLAN
Products
.
disable-forwarding
: Disables the device from forwarding frames with unknown source MAC addresses
after the number of learned MAC addresses reaches the upper limit. Frames with the source MAC
addresses listed in the MAC address table are forwarded.
Usage guidelines
If the command is executed in interface view, the configuration takes effect on the interface. If the
command is executed in port group view, the configuration takes effect on all interfaces belonging to the
port group.
Examples
# Set the maximum number of MAC addresses that can be learned on Ten-GigabitEthernet 1/0/1 to
600. After this upper limit is reached, frames received with unknown source MAC addresses on the
interface are not forwarded.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] mac-address max-mac-count 600
[Sysname-Ten-GigabitEthernet1/0/1] mac-address max-mac-count disable-forwarding
Related commands
•
mac-address timer
•
mac-address
(interface view)
•
mac-address
(system view)
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 is 300 seconds.
Views
System view
Default command level
2: System level
Parameters
aging
seconds
: Sets an aging timer for dynamic MAC address entries, in the range of 10 to 630
seconds.