show (interfaces) clear (mac-address-table) Use the clear mac-address-table privileged Exec command to remove a specified address (or set of addresses) from the MAC address table. clear mac-address-table [dynamic restricted static permanent] [address mac-address] [interface type module/port] Syntax Description dynamic Clears only dynamic addresses. restricted static Clears only restricted static addresses. permanent Clears only permanent addresses. address Clears only a specified address. mac-address Target MAC address. interface Clears all addresses for an interface. type Interface type: ethernet, fastethernet, fddi, atm, or port channel. module The module interface number.0 for fixed1 or A for module A2 or B for module B port Port interface number ranging from 1 to 28:1 to 25 Ethernet (fixed)26, 27 Fast Ethernet (fixed)Port channel
Default The dynamic addresses are cleared. Command Mode Privileged Exec Usage Guidelines If clear mac-address-table is invoked with no options, all dynamic addresses are removed. If you specify an address but do not specify an interface, the address is deleted from all interfaces. If you specify an interface but do not specify an address, all addresses on the specified interface are removed. If a targeted address is not present in the MAC forwarding table, the following error message appears: MAC address not found Example This example shows how to clear all dynamic addresses in the MAC forwarding table. hostname# clear mac-address-table
This command clears the permanent address 0040.C80A.2F07 on Ethernet port 1. hostname# clear mac-address-table permanent address 0040.C80A.2F07 interface ether 0/1 Related Commands mac-address-table (aging-time) mac-address-table (permanent) mac-address-table (restricted static) show (mac-address-table) show (mac-address-table security) clear (uplink-fast statistics) Use the clear uplink-fast statistics privileged Exec command to reset all Uplink Fast counter statistics to zero. clear uplink-fast statistics Syntax Description This command has no additional arguments or keywords. Command Mode Privileged Exec Usage Guidelines This command is not functional when bridge groups are enabled. Example This example shows how to reset all Uplink Fast counters to zero: