Command Line Interface
6731553-KDU 137 365 Uen D 2006-06-16
• The no mac-learning command immediately stops the ECN330-
switch from learning new MAC addresses on the specified port, and all
MAC addresses that have learned on this port will be flushed.
• The mac-learning commands cannot be used if any of the following
conditions exist:
• Security has been enabled on a port with the port security
command (section 7.7.31 on page 670).
• 802.1x Port Authentication has been globally enabled on the
ECN330-switch with the dot1x system-auth-control
command (section 7.7.34 on page 675).
• GVRP has been enabled on a port with the switchport gvrp
command (section 7.17.1.3 on page 844).
Example
The following example disables MAC address learning for port 2:
Related Commands
show mac-learning (section 7.7.33 on page 673)
show interfaces status (section 7.9.11 on page 749)
7.7.33 show mac-learning
This command displays the status of MAC address learning status for all ports..
Command Mode
Privileged Exec
Console(config)#interface ethernet 1/2
Console(config-if)#no mac-learning
Console(config-if)#