clear interfaces mac-database
Syntax
clear interfaces mac-database (interface-name | aex) <mac-address mac-address>
Description
Clear learned media access control (MAC) addresses from the hardware and MAC database for Gigabit Ethernet IQ2 interfaces or aggregated Ethernet interfaces. Static MAC addresses configured by the operator are not cleared.
Options
interface-name | Name of a physical or logical interface. When you clear a physical interface, all learned MAC addresses on all the logical interfaces under the physical interface are cleared. |
aex | Name of aggregated Ethernet interface. |
mac-address mac-address | (Optional) Clear only the specified MAC address. |
Required Privilege Level
view
Output Fields
This command produces no output.
Sample Output
clear interfaces mac-database
user@host> clear interfaces mac-database ge-0/0/0.0
Release Information
Command introduced in Junos OS Release 8.3.
Support for statement
with the aex
option introduced in
Junos OS Release 15.1.