Dell Command Line Reference Guide for the S4048–ON System


mac learning-limit

Limit the maximum number of MAC addresses (static + dynamic) learned on a selected interface.

mac learning-limit address_limit [vlan vlan-id] [station-move-violation [dynamic]] [dynamic [no-station-move| station-move]]
Enter the maximum number of MAC addresses that can be learned on the interface. The range is from 1 to 1000000.
vlan vlan-id
Enter the keyword then the VLAN ID. The range is from 1 to 4094.
(OPTIONAL) Enter the keyword dynamic to allow aging of MACs even though a learning limit is configured.
(OPTIONAL) Enter the keywords station-move to allow a station move on learned MAC addresses.
  • On S-Series, the default behavior is dynamic.
NOTE: “Static” means manually entered addresses, which do not age.
Command Modes
Command History

This guide is platform-specific. For command information about other platforms, see the relevant Dell EMC Networking OS Command Line Reference Guide.

Introduced on the S6010-ON and S4048T-ON.
Introduced on the S3148.
Introduced on the S6100–ON.
Introduced on the S3100 series.
Introduced on the Z9100–ON.
Introduced on the S4048-ON.
Introduced on the S3048-ON.
Introduced on the S6000-ON.
Introduced on the Z9500.
Introduced on the S6000.
Introduced on the S4820T.
Introduced on the Z9000.
Deprecated the no-station-move command (replaced by the mac-learning-limit mac-address-sticky command).
Introduced on the S4810.
Added the vlan option on the E-Series.
Introduced on the S-Series.
Introduced on the C-Series. Added the station-move option.
Added support for MAC Learning-Limit on the LAG.
Usage Information

This command and its options are supported on physical interfaces, static LAGs, LACP LAGs, and VLANs.

If you do not specify the vlan option, the MAC address counters are not VLAN-based. That is, the sum of the addresses learned on all VLANs (not having any learning limit configuration) is counted against the MAC learning limit.

MAC Learning Limit violation logs and actions are not available on a per-VLAN basis.

With the keyword no-station-move option, MAC addresses learned through this feature on the selected interface persist on a per-VLAN basis, even if received on another interface. Enabling or disabling this option has no effect on already learned MAC addresses.

After the MAC address learning limit is reached, the MAC addresses do not age out unless you add the dynamic option. To clear statistics on MAC address learning, use the clear counters command with the learning-limit parameter.

NOTE: If you configure this command on an interface in a routed VLAN, and after the MAC addresses learned reaches the limit set in the mac learning-limit command, IP protocols are affected. For example, VRRP sets multiple VRRP Masters and OSPF may not come up.

When a channel member is added to a port-channel and there is not enough ACL CAM space, the MAC limit functionality on that port-channel is undefined. When this occurs, un-configure the existing configuration first and then reapply the limit with a lower value.

Related Commands

Rate this content

Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\