Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX4300] Commit fails with "error: interface-range 'all' is not defined" and "error: interface-ranges expansion failed" error messages

0

1

Article ID: KB32015 KB Last Updated: 23 Nov 2020Version: 2.0
Summary:

This article describes the following error messages and suggests workarounds for the same:

  • error: interface-range 'all' is not defined
  • error: interface-ranges expansion failed

 

Symptoms:

The following error messages are seen:

  • error: interface-range 'all' is not defined
  • error: interface-ranges expansion failed

 

Cause:

This issue might be seen under the following circumstances: 

  • On EX4300 Series platform (prior to Junos OS 15.1R1 release)
  • When interface "all" option is configured for xSTP (STP, RSTP, MSTP and VSTP)

 

Solution:

This is a known issue. The set protocols interface all option is not available in Junos OS versions prior to 15.1R1.

The following are the workarounds for Juniper EX4300 switches that are running Junos OS code prior to release 15.1.

Use an interface range to configure protocols on multiple interfaces, or use and apply groups with interface wildcards such as "ge-*/*/*" and "xe-*/*/*".

Test Results on EX4300 Device

This behavior was tested with Junos OS 14.1X53-D42.2.

root@jtac-ex4300-24T-r2007# show protocols

lldp {
    interface all;
}
layer2-control {
    nonstop-bridging;
}
{master:0}[edit]
root@jtac-ex4300-24T-r2007# set protocols rstp interface all

{master:0}[edit]
root@jtac-ex4300-24T-r2007# show | compare
[edit protocols]
+   rstp {
+       interface all;
+   }
{master:0}[edit]
root@jtac-ex4300-24T-r2007# commit
error: interface-range 'all' is not defined   >>> commit was not completed due to the error
error: interface-ranges expansion failed

Below are the workaround results:

Workaround 1:

{master:0}[edit]
root@jtac-ex4300-24T-r2007# wildcard range set protocols rstp interface ge-0/0/[0-23]
 
{master:0}[edit]
root@jtac-ex4300-24T-r2007# show | compare

+   rstp {
+       interface ge-0/0/0;
+       interface ge-0/0/1;
+       interface ge-0/0/2;
+       interface ge-0/0/3;
+       interface ge-0/0/4;
+       interface ge-0/0/5;
+       interface ge-0/0/6;
+       interface ge-0/0/7;

{master:0}[edit]
root@jtac-ex4300-24T-r2007# commit
configuration check succeeds
commit complete       >>> commit was successful 

root@jtac-ex4300-24T-r2007# show protocols
lldp {
  interface all;
}
layer2-control {
    nonstop-bridging;
}
rstp {
    interface ge-0/0/0;
    interface ge-0/0/1;
    interface ge-0/0/2;
    interface ge-0/0/3;
    interface ge-0/0/4;
    interface ge-0/0/5;
    interface ge-0/0/6;
    interface ge-0/0/7;
    interface ge-0/0/8;   >>> RSTP was enabled on the specified interfaces.

Workaround 2:

root@jtac-ex4300-24T-r2007# show protocols
lldp {
    interface all;
}
layer2-control {
    nonstop-bridging;
}
 
root@jtac-ex4300-24T-r2007# set interfaces interface-range TEST member-range ge-0/0/0 to ge-0/0/23
root@jtac-ex4300-24T-r2007# set protocols rstp interface TEST

{master:0}[edit]
root@jtac-ex4300-24T-r2007# commit
configuration check succeeds
commit complete    >>> commit was successful 

{master:0}[edit]
root@jtac-ex4300-24T-r2007# show protocols
lldp {
    interface all;
}
layer2-control {
    nonstop-bridging;
}
rstp {
    interface TEST;
}                  >>> RSTP was enabled on specified interface-range TEST.

Note: This feature is available in later versions from Junos OS 15.1R1.

Test Results

This behavior was tested with Junos OS 15.1R1.8:

{master:0}[edit]
root@SWITCH-2# show protocols
lldp {
    interface all;
}
 
{master:0}[edit]
root@SWITCH-2# set protocols rstp interface all
 
{master:0}[edit]

root@SWITCH-2# show | compare
[edit protocols]
+   rstp {
+       interface all;
+   }
 
{master:0}[edit]
root@SWITCH-2# commit
configuration check succeeds
commit complete      >>> commit was successful without error.

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search