vlan-id-range
Syntax
vlan-id-range vlan-id–vlan-id
Hierarchy Level
[edit interfaces interface-name unit logical-unit-number], [edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number]
Description
Bind a range of VLAN IDs to a logical interface.
Options
number
—The first number is
the lowest VLAN ID in the range the second number is the highest VLAN
ID in the range.
Range: 1 through 4094
On SRX240, SRX300, SRX320, SRX340, SRX345, SRX550M, and SRX650 devices, the VLAN range from 1 to 4094 on inet interfaces and the VLAN range from 1 to 3967 on Ethernet switching interfaces. On Ethernet switching interfaces, the VLAN range from 3968 to 4094 falls under the reserved VLAN address range, and the user is not allowed to configure VLANs in this range.
Configuring vlan-id-range
with the entire vlan-id
range is an unnecessary waste of system resources and is not best
practice. It should be used only when a subset of VLAN IDs (not the
entire range) needs to be associated with a logical interface. If
you specify the entire range (1-4094), it has the same result as not
specifying a range; however, it consumes PFE resources such as VLAN
lookup tables entries, and so on.
The following examples illustrate this further:
Inefficient
[edit interfaces interface-name] vlan-tagging; unit number { vlan-id-range 1-4094; }
Best Practice
[edit interfaces interface-name] unit 0;
VLAN ID 0 is reserved for tagging the priority of frames.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 8.4.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.