vlan-tags (Stacked VLAN Tags)
Syntax
vlan-tags inner tpid.vlan-id inner-list value inner-range vid1—vid2 outer tpid.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 TPIDs and 802.1Q VLAN tag IDs to a logical interface. TPID fields are used to identify the frame as an IEEE 802.1Q-tagged frame.
Options
inner
tpid.vlan-id |
A TPID and a valid VLAN identifier. TPID is a 16-bit field set to a value of 0x8100 in order to identify the frame as an IEEE 802.1Q-tagged frame.
|
|
inner-list value |
List or a set of VLAN identifiers. You can configure a maximum of 32 inner-lists for an interface. |
Note:
This is supported on MX Series routers with Trio-based FPCs. |
inner-range tpid.
vid1–vid2 |
Specify a TPID and a range of VLAN IDs where vid1 is the start of the range and vid2 is the end of the range. Note:
On the network-to-network (NNI) or egress interfaces of provider edge
(PE) routers, you cannot configure the
|
|
outer
tpid.vlan-id |
A TPID and a valid VLAN identifier.
Note:
Configuring The following examples illustrate this further:
|
Configuring inner-range
with the entire vlan-id range consumes
system resources and is not a best practice. The inner-range
must be used only when a subset of VLAN IDs of inner tag (not the entire range)
needs to be associated with a logical interface. If you specify the entire range
(1 through 4094), it has the same result as not specifying a range; however, it
consumes Packet Forwarding Engine resources such as VLAN lookup table entries,
and so on.
The following examples illustrate this further:
-
Inefficient
[edit interfaces interface-name] stacked-vlan-tagging; unit number { vlan-tags outer vid inner-range 1-4094; }
-
Best Practice
[edit interfaces interface-name] vlan-tagging; unit number { vlan-id vid; }
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.