Configuring the switch to filter untagged traffic

Enter this command to configure the switch not to learn CDP, LLDP, or EAPOL traffic for a set of interfaces.

Syntax:


[no] ignore-untagged-mac <port-list>
Prevents MAC addresses from being learned on the specified ports when the VLAN is untagged and the destination MAC address is one of the following:
  • 01000C-CCCCCC (CDP)

  • 0180c2- 00000e (LLDP)

  • 0180c2-000003 (EAPOL)

Configuring the switch to ignore packet MAC address learns for an untagged VLAN

switch(config) ignore-untagged-mac 1-2