Complete Software Guide for Junos
Configuring Q-in-Q Tunneling (CLI Procedure)
Related
Documentation
Configuring GVRP (J-Web Procedure)
1608
®
OS for EX Series Ethernet Switches, Release 10.4
Verifying That a Private VLAN Is Working on page 1623
Understanding Private VLANs on EX Series Switches on page 1507
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.
Before you begin configuring Q-in-Q tunneling, make sure you set up your VLANs. See
"Configuring VLANs for EX Series Switches (CLI Procedure)" on page 1600 or "Configuring
VLANs for EX Series Switches (J-Web Procedure)" on page 1597.
To configure Q-in-Q tunneling:
Enable Q-in-Q tunneling on the S-VLAN:
1.
[edit vlans]
user@switch# set s-vlan-name dot1q-tunneling
Set the allowed C-VLANs on the S-VLAN (optional). Here, the C-VLANs are identified
2.
by VLAN range:
[edit vlans]
user@switch# set s-vlan-name dot1q-tunneling customer-vlans range
Change the global Ethertype value (optional):
3.
[edit]
user@switch# set ethernet-switching-options dot1q-tunneling ether-type
ether-type-value
Disable MAC address learning on the S-VLAN (optional):
4.
[edit vlans]
user@switch# set s-vlan-name no-mac-learning
Example: Setting Up Q-in-Q Tunneling on EX Series Switches on page 1568
Verifying That Q-in-Q Tunneling Is Working on page 1622
Understanding Q-in-Q Tunneling on EX Series Switches on page 1514
As a network expands and the number of clients and VLANs increases, VLAN
administration becomes complex, and the task of efficiently configuring VLANs on multiple
EX Series switches becomes increasingly difficult. To automate VLAN administration,
you can enable GARP VLAN Registration Protocol (GVRP) on the network.
GVRP learns VLANs on a particular 802.1Q trunk port and adds the corresponding trunk
interface to the VLAN if the advertised VLAN is preconfigured or already exists on the
switch. For example, a VLAN named "sales" is advertised to trunk interface 1 on the
Copyright © 2010, Juniper Networks, Inc.