13-5
As your MAC address entries configuration cannot survive a reboot, save it after completing the
configuration. The dynamic entries however will be lost whether you save the configuration or not.
Related commands:
display mac-address
.
Examples
# Add a static entry for MAC address 000f-e201-0101. All frames destined to this MAC address are
sent out of port GigabitEthernet 1/0/1 which belongs to VLAN 2.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface gigabitethernet 1/0/1 vlan 2
mac-address mac-learning disable
Syntax
mac-address mac-learning disable
undo mac-address mac-learning disable
View
VLAN view
Default Level
2: System level
Parameters
None
Description
Use the
mac-address mac-learning disable
command to disable MAC address learning on a VLAN.
Use the
undo mac-address mac-learning disable
command to enable MAC address learning on a
VLAN.
By default, MAC address learning is enabled on all VLANs.
Note that:
z
You may need to disable MAC address learning sometimes to prevent the MAC address table
from being saturated, for example, when your device is being attacked by a great deal of packets
with different source MAC addresses. This somewhat affects update of the MAC address table.
z
As disabling MAC address learning may result in broadcast storms, you need to enable broadcast
storm suppression after you disable MAC address learning on a port.
Related commands:
display mac-address mac-learning
.
Once MAC learning is disabled in a VLAN, all MAC address entries learnt in the VLAN are removed.
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 ...