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

mac-table-aging-time

date_range 03-May-24

Syntax

content_copy zoom_out_map
mac-table-aging-time (seconds | unlimited);

Hierarchy Level

content_copy zoom_out_map
[edit ethernet-switching-options],
[edit vlans vlan-name]

Description

You configure how long MAC addresses remain in the Ethernet switching table using the mac-table-aging-time statement in either the [edit ethernet-switching-options] or the[edit vlans] hierarchy, depending on whether you want to configure it for the entire device or only for specific VLANs.

If you specify the time as unlimited, entries are never removed from the table. Generally, use this setting only if the device or the VLAN has a fairly static number of end devices; otherwise the table will eventually fill up. You can use this setting to minimize traffic loss and flooding that might occur when traffic arrives for MAC addresses that have been removed from the table.

Note:

The mac-table-aging-time statement appears in the Junos OS CLI for devices that do not support the Enhanced Layer 2 Software (ELS) configuration style. If your device runs software that supports ELS, use the global-mac-table-aging-time statement, which appears in the [edit protocols l2-learning] hierarchy. For ELS details, see Using the Enhanced Layer 2 Software CLI.

Default

Entries remain in the Ethernet switching table for 300 seconds.

Options

seconds—Time that entries remain in the Ethernet switching table before being removed.

  • Range: 60 through 1,000,000 seconds

  • Default: 300 seconds

unlimited—Entries remain in the Ethernet switching table.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 9.0.

Statement updated in Junos OS Release 9.4 for EX Series switches to include [edit ethernet-switching-options] hierarchy level.

footer-navigation