Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring the Q-in-Q Tunnel on the Aggregation Switch (EX Series Ethernet Switch)

    Note: This procedure assumes you are using a Juniper Networks EX Series Ethernet Switch for the aggregation switch.

    To configure the Q-in-Q tunnel:

    1. Configure the physical and logical interfaces for the subscriber’s Ethernet LAN.
      1. Configure the physical and logical interface.
        [edit]user@host# edit interfaces ge-0/0/2 unit 0
      2. Configure the protocol family for the logical interface on the switch.
        [edit interfaces ge-0/0/2 unit 0]user@host# edit family ethernet-switching
      3. Configure the interface to operate in access mode.
        [edit interfaces ge-0/0/2 unit 0 family ethernet-switching]user@host# set port-mode access
      4. Bind the subscriber VLAN to the logical interface.
        [edit interfaces ge-0/0/2 unit 0 family ethernet-switching]user@host# set vlan members qinq-1000
    2. Configure the VLAN trunk port for the WAN link.
      1. Configure the physical and logical interface.
        user@host# topuser@host# edit interfaces ge-0/0/23 unit 0
      2. Configure the protocol family.
        [edit interfaces ge-0/0/23 unit 0]user@host# edit family ethernet-switching
      3. Configure the WAN link as a trunk interface.
        [edit interfaces ge-0/0/23 unit 0 family ethernet-switching]user@host# set port-mode trunk
      4. Configure the subscriber VLAN on the trunk interface.
        [edit interfaces ge-0/0/23 unit 0 family ethernet-switching]user@host# set vlan members qinq-1000
    3. Configure the switching options for the tunnel.
      user@host# top[edit]user@host# set ethernet-switching-options dot1q-tunneling ether-type 0x8100
    4. Configure the subscriber VLANs.
      1. Configure the VLAN name.
        [edit]user@host# edit vlans qinq-1000
      2. Configure the VLAN ID.
        [edit vlans qinq-1000]user@host# set vlan-id 1000
      3. Configure the interfaces for the VLAN.
        [edit vlans qinq-1000]user@host# set interface ge-0/0/2.0user@host# set interface ge-0/0/23.0
      4. Enable Q-in-Q tunneling on the subscriber VLANs.
        [edit vlans qinq-1000]user@host# set dot1q-tunneling customer-vlans 105user@host# set dot1q-tunneling customer-vlans 106

    Modified: 2015-10-29