Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring Q-in-Q Tunneling (CLI Procedure)

Note: This task uses Junos OS for EX Series switches that does not support the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs software that supports ELS, see Configuring Q-in-Q Tunneling (CLI Procedure). For ELS details, see Getting Started with Enhanced Layer 2 Software.

Q-in-Q tunneling allows service providers on Ethernet access networks to segregate or bundle customer traffic into different VLANs by adding another layer of 802.1Q tags. You can configure Q-in-Q tunneling on EX Series switches.

Note: You cannot configure 802.1X user authentication on interfaces that have been enabled for Q-in-Q tunneling.

Before you begin configuring Q-in-Q tunneling, make sure you set up your VLANs. See Configuring VLANs for EX Series Switches (CLI Procedure) or Configuring VLANs for EX Series Switches (J-Web Procedure).

To configure Q-in-Q tunneling:

  1. Enable Q-in-Q tunneling on the S-VLAN:
    [edit vlans]
    user@switch# set s-vlan-name dot1q-tunneling (VLANs)
  2. Set the allowed C-VLANs on the S-VLAN (optional). Here, the C-VLANs are identified by VLAN range:
    [edit vlans]
    user@switch# set s-vlan-name dot1q-tunneling customer-vlans range
  3. Change the global Ethertype value (optional):
    [edit]
    user@switch# set ethernet-switching-options dot1q-tunneling ether-type ether-type-value
  4. Disable MAC address learning on the S-VLAN (optional):
    [edit vlans]
    user@switch# set s-vlan-name no-mac-learning (Q-in-Q VLANs)

Published: 2014-04-23