Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

clear interfaces mac-database

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
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

content_copy zoom_out_map
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.

footer-navigation