Switch 7700 Configuration Guide

MAC Address Table Management 9
Perform the following configuration in system view.
When deleting the dynamic address table entries, the learned entries will be
deleted simultaneously.
Disable/Enable Global MAC Address Learning
With the address learning function, an Ethernet switch can learn new MAC
addresses. After received a packet destined some already learned MAC address,
the switch will forward it directly with the hardware, instead of broadcasting.
Sometimes for the sake of security, it is necessary to disable the address learning
function. A common threat is from hackers who attack the switch with packets
from different source MAC addresses, thereby exhausting the address table
resources and making it impossible for the switch to update the MAC address
table according to the network changes. Such attack can be avoided by disabling
the MAC address learning function.
You can use the following commands to disable/enable the MAC address learning
globally.
Perform the following configuration in system view.
By default, the MAC address learning function is enabled.
Disable/Enable MAC Address Learning on a Port
After the MAC address learning has been enabled globally, you can disable it on
individual ports.
Use the following commands to disable the MAC address learning on a specified
port.
Perform the following configurations in the ethernet port view.
By default, the MAC address learning function is enabled.
Tabl e 15 Set MAC Address Table Entries
Operation Command
Add/Modify an address entry mac-address { static | dynamic } hw-addr interface {
interface-name | interface-type interface-num }
Delete an address entry undo mac-address [ static | dynamic ] [ [ hw-addr ]
interface [interface-name | interface-type interface-num
] ]
Tabl e 16 Disable/Enable the MAC Address Learning
Operation Command
Disable the MAC address learning mac-address mac-learning disable
Enable the MAC address learning undo mac-address mac-learning disable
Tabl e 17 Disable/Enable the MAC Address Learning
Operation Command
Disable the MAC address learning mac-address mac-learning disable
Enable the MAC address learning undo mac-address mac-learning disable