# Stretch VLAN over L3 links switches

**URL:** https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617
**Category:** Routing & Switching
**Created:** [August 26, 2024, 8:45pm UTC](https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617 "2024-08-26T20:45:37Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![sean.solina](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@sean.solina](https://forum.networklessons.com/u/sean.solina)
#### Post date: [August 26, 2024, 8:45pm UTC](https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617/1 "2024-08-26T20:45:38Z")

</div>

What is the best method to stretch a VLAN trunk across routed links?

I’ve read L2TP-V3 is available or QinQ?

I’m running 3850’s in my lab.

---

<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: [August 27, 2024, 5:18am UTC](https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617/2 "2024-08-27T05:18:09Z")

</div>

If you only need to get it across a routed link between two switches, L2TPv3 or VXLAN:

> **[VXLAN Static Ingress Replication](https://networklessons.com/vxlan/vxlan-static-ingress-replication)**
>
> This lesson explains how to configure and verify VXLAN Static Ingress Replication on Cisco NX-OS 9000v switches.

Q-in-Q lets you tunnel VLANs over VLAN:

[https://networklessons.com/switching/802-1q-tunneling-q-q-configuration-example](https://networklessons.com/switching/802-1q-tunneling-q-q-configuration-example)

You won’t be able to do any of this on your 3850s though. They can do MPLS but I don’t think they can do pseudowires.

Rene

---

<div class="post-metadata">

### Author: ![sean.solina](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@sean.solina](https://forum.networklessons.com/u/sean.solina)
#### Post date: [August 27, 2024, 4:04pm UTC](https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617/3 "2024-08-27T16:04:36Z")

</div>

Thanks, Rene.

My 3850’s actually can do Psuedowire if you’re running IPServices. I just don’t know if they support MPLS.

Will MPLS also allow you to stretch a VLAN across routed links? I have a few buildings that are separated by 3850’s with configured routed ports between the buildings to shorten the STP trees.

The whole Plant used to be a single STP instance but we were getting too many issues with STP drops and recalcs which affected our Industrial network devices.

We have Ubiquiti Access Points but they don’t support L3 roaming, only L2 roaming. I wanted to keep a single VLAN for Tablet access but that crosses routed links so I needed a solution for that with the gear we already own.

The 3850s will do L2TPv3 but not vxLAN.

What if I have to hop 3 routes?

Thanks so much for your reply.

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [August 29, 2024, 5:02am UTC](https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617/6 "2024-08-29T05:02:04Z")

</div>

Hello Sean

> [@sean.solina](#):
>
> Will MPLS also allow you to stretch a VLAN across routed links? I have a few buildings that are separated by 3850’s with configured routed ports between the buildings to shorten the STP trees.

Yes, MPLS is able to span your VLAN across routing links. MPLS is a tunneling mechanism that allows you to tunnel multiple protocol types, including Ethernet. So you can create an L2 tunnel between remote sites and span you VLANs to wherever you want. However, its configuration is somewhat more involved than the other solutions that Rene suggested. If you’re interested, take a look at this introductory lesson to MPLS, as well as a lesson on L2 tunneling using MPLS:

> **[Introduction to MPLS](https://networklessons.com/mpls/introduction-to-mpls#What_is_MPLS)**
>
> This lesson explains why we use MPLS (Multi Protocol Label Switching) and how it works.

> **[Any Transport Over MPLS (AToM)](https://networklessons.com/mpls/any-transport-over-mpls-atom)**
>
> Any Transport Over MPLS (AToM) transports layer 2 frames like Ethernet or Frame-Relay over the MPLS Backbone. This lesson explains it all.

> [@sean.solina](#):
>
> What if I have to hop 3 routes?

You can use MPLS or L2TPv3 or VXLAN (or any L2 tunneling technology) over multiple router hops. These technologies essentially create a Layer 3 underlay network that can have multiple routers and multiple hops, that allows an L2 tunnel to be created between remote sites, thus allowing you to span your layer 2 network segments across multiple sites.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

### Author: ![sean.solina](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@sean.solina](https://forum.networklessons.com/u/sean.solina)
#### Post date: [August 29, 2024, 2:52pm UTC](https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617/7 "2024-08-29T14:52:44Z")

</div>

@lagapidis ,

 ![Screenshot 2024-08-28 114010](https://forum.networklessons.com/uploads/default/original/2X/2/2c51f20eed62957a29dbf2eaccfc8a3c08067be0.png)

My simple lab is this :

I have a L3 switch with all SVIs and VLANs created at the “core” switch. I need my PC to get any VLAN of my choosing.

How do I properly setup the “core” side since I can’t create an inbound interface for the xconnect statement?

---

<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: [August 29, 2024, 3:48pm UTC](https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617/8 "2024-08-29T15:48:30Z")

</div>

From some quick research, it seems the 3850 might support VXLAN since IOS-XE 16.12.5b. That might be worth looking into.

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [August 31, 2024, 4:34am UTC](https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617/9 "2024-08-31T04:34:13Z")

</div>

Hello Sean

Take a look at this response:

> [@L2TPv3 (Layer 2 Tunnel Protocol Version 3)](https://forum.networklessons.com/t/l2tpv3-layer-2-tunnel-protocol-version-3/2770/57):
>
> Hello Sean With the topology that you have shared, it wouldn’t make sense to employ L2TPv3. Since you are using switches here, you would simply create a trunk and span the VLANs to the TEST-Warehouse switch. L2TPv3 comes into play if you have a Layer 3 network composed of several routers, and you want to tunnel Layer 2 traffic over that. Something like this: (TEST-CORE-SW) -------(R1) -----[LAYER 3 NW FABRIC] -----(R2) -----(TEST-Warehouse-SW) The L2TPv3 would be configured on the ports on…

Laz

---

<div class="post-metadata">

### Author: ![sean.solina](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@sean.solina](https://forum.networklessons.com/u/sean.solina)
#### Post date: [August 31, 2024, 12:28pm UTC](https://forum.networklessons.com/t/stretch-vlan-over-l3-links-switches/51617/10 "2024-08-31T12:28:27Z")

</div>

@lagapidis

Hey dude. Did you happen to read my reply on my thread? I responded to your statements.

Thanks very much for your replies.
