# 802.1Q Tunneling (Q-in-Q) Configuration Example

**URL:** https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086
**Category:** Lessons Discussion
**Created:** [December 26, 2016, 10:36pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086 "2016-12-26T22:36:09Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [December 26, 2016, 10:36pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/1 "2016-12-26T22:36:09Z")

</div>

This topic is to discuss the following lesson:

> **[802.1Q Tunneling (Q-in-Q) Configuration](https://networklessons.com/switching/802-1q-tunneling-q-q-configuration-example)**
>
> This lesson explains how 802.1Q tunneling works and how to configure it on Cisco IOS Catalyst Switches.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [March 13, 2014, 9:12am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/2 "2014-03-13T09:12:22Z")

</div>

Great post mate.

First came across this trying to get a CCIE lab set up. Was very useful for that.

Is this still a tech widely used in service providers ?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [March 17, 2014, 12:45pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/3 "2014-03-17T12:45:54Z")

</div>

Thanks Richie,

I haven’t seen it on a real network before and I doubt that it’s still used a lot. A lot of service providers use MPLS which can also transport L2 if you want.

Rene

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [March 18, 2014, 10:58am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/4 "2014-03-18T10:58:22Z")

</div>

Great post.

Thanks

---

<div class="post-metadata">

### Author: ![kgraman86](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/k/7ea924/32.png) [@kgraman86](https://forum.networklessons.com/u/kgraman86)
#### Post date: [April 9, 2014, 5:26am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/5 "2014-04-09T05:26:56Z")

</div>

Great site…to learn new things…

Thanks for sharing your knowledge…

Take care

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [April 14, 2014, 11:16am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/6 "2014-04-14T11:16:22Z")

</div>

You are welcome.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [April 23, 2014, 11:53am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/7 "2014-04-23T11:53:24Z")

</div>

excellent post. tx alot.

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [May 1, 2014, 12:11pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/8 "2014-05-01T12:11:04Z")

</div>

You are welcome.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [May 15, 2014, 10:41am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/9 "2014-05-15T10:41:11Z")

</div>

Nice article… thanks so much

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [May 22, 2014, 5:46pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/10 "2014-05-22T17:46:24Z")

</div>

Excellent post! I like the simple flow with which you explained it.  
Thank you!

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [May 23, 2014, 2:05pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/11 "2014-05-23T14:05:35Z")

</div>

Glad you like it!

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [June 13, 2014, 9:21am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/12 "2014-06-13T09:21:12Z")

</div>

I have a question.

What if I want to have WAN ports in between the customer sites. I mean, image SW3 is not there and fa0/19 of SW1 and fa0/21 of SW2 are replaced with WAN ports. How do we implement QinQ? Is that possible and accepted?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [June 25, 2014, 8:10am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/13 "2014-06-25T08:10:47Z")

</div>

You can’t do it with Q-in-Q because it’s not available on the switches, you could however use something like any transport over MPLS to get your VLANs from one side to the other.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [June 25, 2014, 12:54pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/14 "2014-06-25T12:54:09Z")

</div>

But I have topology something like this.

Router1 (F1) ------ (F3) Router2 (F8) -------- (F4) Router3 (F3) ---------- (F1) Router4

In above topology,

F1 from Router1 and Router4 are switchports.  
F3 from Router2 and Router3 are switchports.  
F8 from Router2 and F4 from Router3 are WAN ports.

Configured ‘dot1q-tunnel’ at F3 of Router2 and Router3.  
Configured 'encapsulation dot1q ’ at F8 of Router2 and F4 of Router3. (The only difference from your above post. Instead of trunk between Router2 and Router3, I have WAN with encapsulation dot1q config.)

Also I have bridged the F8 and Vlan35 under F3 of Router2 and also F4 and Vlan35 of F3 of Router3.

Ping is failing from Router1 to Router4. This I expect to work. 🙂

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [July 10, 2014, 9:57am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/15 "2014-07-10T09:57:40Z")

</div>

So nobody knows answer for the above question? Even to say it right or wrong!!!

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [October 8, 2014, 6:57pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/16 "2014-10-08T18:57:31Z")

</div>

Rene,  
Great article, but you might want to edit this little typo as Fa0/20 is not in your example diagrams:

```
SW3(config)#interface fastEthernet 0/20  
SW3(config-if)#switchport trunk encapsulation dot1q 
SW3(config-if)#switchport mode trunk

```

I knew what you meant, though, and again, great article!

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [October 17, 2014, 10:04am UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/17 "2014-10-17T10:04:38Z")

</div>

Thanks Matt, I just fixed it 🙂

Rene

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [October 24, 2014, 9:25pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/18 "2014-10-24T21:25:29Z")

</div>

Dear Rene!,

you deserve thanks from me. one of our customer in France ordered EVPL link but due to miss understanding of our project team, they configured MPLS L2 VPN. however, our customer requirement is EVPL which they are sending touble tags and they also want their other end End-user to see the inner tag here in Saudi arabia.  
The issue came to me and still working on QnQ. However, after studying your topin, i am more than clear now and i belive i can solve their issue tommorow.

Thank you so much.

---

<div class="post-metadata">

### Author: ![talk2seeni](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/t/8baadc/32.png) [@talk2seeni](https://forum.networklessons.com/u/talk2seeni)
#### Post date: [June 8, 2015, 3:53pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/19 "2015-06-08T15:53:00Z")

</div>

Hi Rene,  
In frame, Next to source mac will it be customer vlan tag or isp vlan tag?  
Router R1 and Router R2 near customer site is bit confusing , my understanding is router terminates all broadcast traffic. How come traffic for the same vlan goes through router to the other side of customer site ?  
Please correct me or point me to some links explain about these metro ethernet concepts in detail.  
Thanks,  
Srini

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [June 8, 2015, 6:23pm UTC](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086/20 "2015-06-08T18:23:13Z")

</div>

Hi Srini,

I used routers just to have some “customer” device that could do tagging for me in this example. In a real network, you would use customer switches instead.

The tag on the left side is the tag from the ISP, I should probably have used the same color for the customer tag.

Rene

[Next page](https://forum.networklessons.com/t/802-1q-tunneling-q-in-q-configuration-example/1086.md?page=2)
