Reference Guide
• all — (Optional) Clear all dynamic entries.
• address mac_address — (Optional) Clear a MAC address entry.
• vlan vlan-id — (Optional) Clear a MAC address table entry from a VLAN number (1 to 4094).
• ethernet node/slot/port[:subport] — (Optional) Clear an Ethernet interface entry.
• port—channel number — (Optional) Clear a port-channel number (1 to 128).
Clear MAC Address Table
OS10# clear mac address-table dynamic vlan 20 interface ethernet 1/2/20
MAC Commands
clear mac address-table dynamic
Clears L2 dynamic address entries from the MAC address table.
Syntax
clear mac address-table dynamic {all | address mac_addr | vlan vlan-id |
interface {ethernet node/slot/port[:subport] | port-channel number}}
Parameters
• all — (Optional) Delete all MAC address table entries.
• address mac_addr — (Optional) Delete a congured MAC address from the address table
(nn:nn:nn:nn:nn:nn format).
• vlan vlan-id — (Optional) Delete all entries based on the VLAN number from the address table (1 to
4094).
•
interface — (Optional) Clear the interface type:
• ethernet node/slot/port[:subport] — Delete the Ethernet interface conguration from the
address table.
• port-channel channel-number — Delete the port-channel interface conguration from the address
table (1 to 128).
Default Not congured
Command Mode EXEC
Usage Information Use the all parameter to remove all dynamic entries from the address table.
Example
OS10# clear mac address-table dynamic all
Example (VLAN)
OS10# clear mac address-table dynamic vlan 20
Supported Releases 10.2.0E or later
mac address-table aging-time
Congures the aging time for entries in the L2 address table.
Syntax
mac address-table aging-time seconds
Parameters seconds — Enter the aging time for MAC table entries in seconds (0 to 1000000).
Default 1800 seconds
Layer 2 165