Specifications

clear mac-address-table
206
clear mac-address-table
Clears the information in the MAC address table registered dynamically through MAC
address learning.
Syntax
clear mac-address-table [-f]
Input mode
User mode and administrator mode
Parameters
-f
Clears information in the MAC address table without displaying a confirmation
message.
Operation when this parameter is omitted:
A confirmation message is displayed.
Example
Figure 15-3 Clearing information in the MAC address table
> clear mac-address-table
Do you wish to clear mac-address-table? (y/n): y
>
If y is entered, the information in the MAC address table is cleared.
If n is entered, the information in the MAC address table is not cleared.
Display items
None
Impact on communication
Frames are flooded until learning is completed again. Execute this command at a time
when flooding will have a minimal impact.
Response messages
Table 15-4 List of response messages for the clear mac-address-table command
Message Description
Can't execute. The command could not be executed. Re-execute the
command.
There is no information. ( mac-address-table ) There is no information in the MAC address table.
Notes
This command clears all information in the MAC address table with the exception of static
entries. During clear processing, learning is not performed for the MAC address table.
Processing by this command might take as much as 10 seconds or more.