13-6
Examples
# Disable MAC address learning on VLAN 10.
<Sysname> system-view
[Sysname] vlan 10
[Sysname-vlan10] mac-address mac-learning disable
mac-address max-mac-count (Interface view)
Syntax
mac-address max-mac-count
count
undo mac-address max-mac-count
View
Ethernet interface view, port group view
Default Level
2: System level
Parameters
count
: Maximum number of MAC addresses that can be learned on a port, ranging from 0 to 4096.
When the argument takes 0, the VLAN is not allowed to learn MAC addresses.
disable-forwarding
: Disables forwarding of 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 will be forwarded normally.
Description
Use the
mac-address max-mac-count count
command to configure the maximum number of MAC
addresses that can be learned on an Ethernet 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, the maximum number of MAC addresses that can be learned on an Ethernet port is not
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
,
mac-address timer
.
Examples
# Set the maximum number of MAC addresses that can be learned on port GigabitEthernet 1/0/1 to
600. After this upper limit is reached, frames received with unknown source MAC addresses on the
port will not be forwarded.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mac-address max-mac-count 600
[Sysname-GigabitEthernet1/0/1] mac-address max-mac-count disable-forwarding
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...