R2511-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V5)

7
mac-address max-mac-count
Use mac-address max-mac-count count to configure the maximum number of MAC addresses that can
be learned on a port.
Use mac-address max-mac-count disable-forwarding to disable the device from forwarding frames with
unknown source MAC addresses after the number of learned MAC addresses reaches the upper limit.
Use undo mac-address max-mac-count to restore the default maximum number of MAC addresses that
can be learned on an Ethernet port.
Use undo mac-address max-mac-count disable-forwarding to allow the device to forward frames
received on an Ethernet port with unknown source MAC addresses after the number of learned MAC
addresses reaches the upper limit.
Syntax
mac-address max-mac-count { count | disable-forwarding }
undo mac-address max-mac-count [ disable-forwarding ]
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, port group 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.
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 ports belonging to the port
group.
The following matrix shows the command and router compatibility: