F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
71
Default
The maximum number of MAC addresses that can be learned on a port varies with device models, and
frames received are forwarded when the upper limit is reached.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Default command level
2: System level
Parameters
count: Sets the maximum number of MAC addresses that can be learned on a port. When the argument
takes 0, the port is not allowed to learn MAC addresses. The value ranges from 0 to 1024.
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.
The following matrix shows the mac-address max-mac-count command and firewalls and UTM devices
compatibility:
Hardware Command com
p
atible
F1000-A-EI/F1000-S-EI No
F1000-E No
F5000 No
Firewall module No
U200-A Yes
U200-S Yes
Examples
# Set the maximum number of MAC addresses that can be learned on port GigabitEthernet 0/1 to 600.
After this upper limit is reached, frames received with unknown source MAC addresses on the port are
not forwarded.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] mac-address max-mac-count 600
[Sysname-GigabitEthernet0/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.