R21xx-HP FlexFabric 11900 Layer 2 LAN Switching Command Reference

64
Syntax
mac-address max-mac-count { count | enable-forwarding }
undo mac-address max-mac-count [ enable-forwarding ]
Default
The maximum number of MAC addresses that can be learned on an interface is not configured. When
the upper limit is reached, the received frames are forwarded.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
count: Sets the maximum number of MAC addresses that can be learned on an interface. The value
range is 0 to 4096. When the argument takes 0, the interface is not allowed to learn MAC addresses.
enable-forwarding: Enables the device to forward frames with unknown source MAC addresses after the
number of learned MAC addresses reaches the upper limit. Frames that have the source MAC addresses
listed in the MAC address table are forwarded.
Usage guidelines
This command limits the number of MAC address entries for a device. When the number of MAC address
entries learned by an interface reaches the limit, the interface stops learning MAC address entries.
Examples
# Configure interface Ten-GigabitEthernet 1/0/1 to learn up to 600 MAC address entries. Disable the
device from forwarding frames with unknown source MAC addresses after the number of learned MAC
addresses reaches the upper limit.
<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] undo mac-address max-mac-count enable-forwarding
Related commands
mac-address
mac-address multiport
mac-address multiport (interface view)
Use mac-address multiport to add the specified interface to a multiport unicast MAC address entry.
Use undo mac-address multiport to remove the specified interface from a multiport unicast MAC address
entry.
Syntax
mac-address multiport mac-address vlan vlan-id
undo mac-address multiport mac-address vlan vlan-id
Default
No multiport unicast MAC address entry is configured for an interface.