Description

Customer is trying to achieve no mac-address aging on one of their EX4k switches and the below command fails with syntax error in Junos:

"set vlans <name>switch-options mac-table-aging-time 0"

Symptoms

Here's the relevant difference between aging commands:

 

  • "set vlans <name> switch-options mac-table-aging-time x", is the legacy way of configuring it on EX switches, so this is no longer valid on any ELS platforms.

 

  • “set vlans <name> mac-table-aging-time x”, this is the way to configure it on Legacy platforms QFX3500/QFX3600.

 

  • “set protocols l2-learning global-mac-table-aging-time x”, applies globally and is only supported on QFX with support for Enhanced L2 software (ELS). Notice that minimum aging timer that can be accepted is 60s, thus, not a viable command to prevent mac aging:

{master:0}[edit]

root@switch# set protocols l2-learning global-mac-table-aging-time 0
                                                                   ^
Value 0 is not within range (60..1000000) at '0'

 

Solution

  • "set vlans <name> switch-options no-mac-aging", is the newer command to disable mac aging on EX/QFX per vlan.

 

Modification History

2026-02-27 : Article Created