mac-address max-mac-count

Syntax

mac-address max-mac-count count

undo mac-address max-mac-count

View

Layer 2 Ethernet interface view, port group view

Default level

2: System level

Parameters

count: Specifies the maximum number of MAC addresses that can be learned on a port. The value is in the range of 0 to 8192. When the argument takes 0, the VLAN is not allowed to learn MAC addresses.

Description

Use mac-address max-mac-count count to configure the maximum number of MAC addresses that can be learned on a port.

Use undo mac-address max-mac-count to restore the default maximum number of MAC addresses that can be learned on an Ethernet port.

By default, no MAC learning limit is configured.

If the command is executed in interface view, the configuration takes effect on the interface only. If the command is executed in port group view, the configuration takes effect on all ports in the port group.

Related commands: mac-address and mac-address timer.

Examples

# Set the maximum number of MAC addresses that can be learned on port Ethernet 1/0/1 to 600.

<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] mac-address max-mac-count 600