Technical Documentation

vlan-tags (Stacked VLAN Tags)

Syntax

vlan-tags inner tpid.vlan-id inner-range vid1vid2 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]

Release Information

Statement introduced before JUNOS Release 7.4.

Description

For Gigabit Ethernet IQ and IQE interfaces only, binds TPIDs and 802.1Q VLAN tag IDs to a logical interface. You must include the stacked-vlan-tagging statement at the [edit interfaces interface-name] hierarchy level.

Note: The inner-range vid1–vid2 option is supported on MX Series with IQE PICs only.

Options

inner tpid.vlan-id—A TPID and a valid VLAN identifier.

Range: For VLAN ID, 1 through 4094. VLAN ID 0 is reserved for tagging the priority of frames.

inner-range vid1–vid2—For MX Series routers with Enhanced IQ (IQE) PICs only; specify a range of VLAN IDs where vid1 is the start of the range and vid2 is the end of the range.

Range: For VLAN ID, 1 through 4094. VLAN ID 0 is reserved for tagging the priority of frames.

outer tpid.vlan-id—A TPID and a valid VLAN identifier.

Range: For VLAN ID, 1 through 511 for normal interfaces, and 512 through 4094 for VLAN CCC interfaces. VLAN ID 0 is reserved for tagging the priority of frames.

Note: Configuring inner-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 of inner tag (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 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.


Published: 2010-04-20