This article describes the following error messages and suggests workarounds for the same:
The following error messages are seen:
This issue might be seen under the following circumstances:
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.