Table 191: Components of the Topology for Setting Up Q-in-Q Tunneling
(continued)
Description
Interface
Untagged customer-facing access port
ge-0/0/12.0
Untagged customer-facing access port
ge-0/0/13.0
Tagged S-VLAN trunk port
ge-0/0/14.0
Configuration
CLI Quick
Configuration
To quickly create and configure Q-in-Q tunneling, copy the following commands and
paste them into the switch terminal window:
[edit]
set vlans qinqvlan vlan-id 4001
set vlans qinqvlan dot1q-tunneling customer-vlans 1-100
set vlans qinqvlan dot1q-tunneling customer-vlans 201-300
set interfaces ge-0/0/11 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/11 unit 0 family ethernet-switching vlan members 4001
set interfaces ge-0/0/12 unit 0 family ethernet-switching port-mode access
set interfaces ge-0/0/12 unit 0 family ethernet-switching vlan members 4001
set interfaces ge-0/0/13 unit 0 family ethernet-switching port-mode access
set interfaces ge-0/0/13 unit 0 family ethernet-switching vlan members 4001
set interfaces ge-0/0/14 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/14 unit 0 family ethernet-switching vlan members 4001
set ethernet-switching-options dot1q-tunneling ether-type 0x9100
Step-by-Step
Procedure
To configure Q-in-Q tunneling:
1.
Set the VLAN ID for the S-VLAN:
[edit vlans]
user@switch#
set qinqvlan
vlan-id
4001
2.
Enable Q-in-Q tuennling and specify the customer VLAN ranges:
[edit vlans]
user@switch#
set qinqvlan dot1q-tunneling
customer-vlans
1-100
user@switch#
set qinqvlan dot1q-tunneling customer-vlans 201-300
3.
Set the port mode and VLAN information for the interfaces:
[edit interfaces]
user@switch#
set ge-0/0/11 unit 0 family ethernet-switching port-mode trunk
user@switch#
set ge-0/0/11 unit 0 family ethernet-switching vlan
members
4001
user@switch#
set ge-0/0/12 unit 0 family ethernet-switching port-mode access
user@switch#
set ge-0/0/12 unit 0 family ethernet-switching vlan members 4001
user@switch#
set ge-0/0/13 unit 0 family ethernet-switching port-mode access
user@switch#
set ge-0/0/13 unit 0 family ethernet-switching vlan members 4001
user@switch#
set ge-0/0/14 unit 0 family ethernet-switching port-mode trunk
user@switch#
set ge-0/0/14 unit 0 family ethernet-switching vlan members 4001
4.
Set the Q-in-Q Ethertype value:
[edit]
user@switch#
set ethernet-switching-options dot1q-tunneling ether-type 0x9100
Results
Check the results of the configuration:
Copyright © 2010, Juniper Networks, Inc.
1348
Complete Software Guide for Junos
®
OS for EX Series Ethernet Switches, Release 10.3
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...