30
Layer 2
This chapter describes commands to configure Layer 2 features.
This chapter contains:
•
MAC Addressing Commands
MAC Addressing Commands
The following commands are related to configuring, managing, and viewing MAC addresses.
clear mac-address-table
Clear the MAC address table.
Syntax
clear mac-address-table dynamic {address
mac-address
| all |
interface
interface
| vlan
vlan-id
}
Parameters
address
mac-
address
Enter the keyword
address
then a MAC address in
nn:nn:nn:nn:nn:nn format.
all
Enter the keyword
all
to delete all MAC address entries in
the MAC address table.
terface
interface
Enter the following keywords and slot/port or number
information:
• For a Port Channel interface, enter the keywords
port-
channel
then a number. The range is from 1 to 128.
• For a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet
then the slot/port information.
• For a 40-Gigabit Ethernet interface, enter the keyword
fortyGigE
then the slot/port information.
vlan
vlan-id
Enter the keyword
vlan
then a VLAN ID number from 1 to
4094.
Command
Modes
EXEC Privilege
846
Layer 2