l2protocol all learn-disable
Use this command to disable MAC address learning from all Layer 2 protocol data units (BPDUs) received on the device. When configured, the device does not learn the source MAC addresses of Layer 2 control protocol packets, including xSTP, LACP, EAP, LLDP, EFM, SyncE, and ELMI, on any interface.
If the source MAC address of a Layer 2 BPDU has already been learned before this command is applied, it must be manually cleared by the user.
Use no form of this command to enable MAC address learning.
Command Syntax
l2protocol all learn-disable
no l2protocol all learn-disable
Parameters
None
Default
Enabled
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 6.5.4.
Examples
Disable MAC learning from all Layer 2 BPDUs
#configure terminal
(config)#l2protocol all learn-disable
Re-enable MAC learning (default behavior)
(config)#no l2protocol all learn-disable