
62
View
Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
count
: Sets the maximum number of MAC addresses that can be learned on a port. The value ranges
from 0 to 4096. When the argument takes 0, the VLAN is not allowed to learn MAC addresses.
Description
Use the
mac-address max-mac-count
count
command to configure the maximum number of MAC
addresses that can be learned on a port.
Use the
undo mac-address max-mac-count
command 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 current interface.
If the command is executed in port group view, the configuration takes effect on all ports belonging to 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 GigabitEthernet1/0/1 to
600..
<Sysname> system-view
[Sysname] interface GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] mac-address max-mac-count 600
mac-address timer
Syntax
mac-address timer
{
aging
seconds
|
no-aging
}
undo mac-address timer aging
View
System view
Default level
2: System level
Parameters
aging
seconds
: Sets an aging timer (in seconds) for dynamic MAC address entries. The value ranges
from 0 to 1000000 seconds, and the default value is 300 seconds.
no-aging
: Sets dynamic MAC address entries not to age.
Description
Use the
mac-address timer
command to configure the aging timer for dynamic MAC address entries.
Use the
undo mac-address timer
command to restore the default.