Cisco SD-WAN TLOC Extension Explained: L2 vs L3 and When You Need It

TLOC extension lets one WAN edge borrow its neighbor's circuit over a routed link. In this 20.18 lab each edge already owns both colors, so BFD shows two color-matched sessions and no tloc-extension line: the baseline an extension changes.

Diagram: TLOC extension lets one WAN edge use a color attached to its neighbor over a dedicated link between the two routers

A dual-router branch is supposed to keep working when one circuit dies. That only happens if each WAN edge can reach both transports. In a lot of buildings, the MPLS handoff lands on one rack and the internet circuit lands on the other. Neither router has a second WAN port that can see the far circuit.

TLOC extension is how Cisco lets one edge borrow the other edge's transport. A Transport Locator, or TLOC, is the tuple of system-ip, color, and encapsulation that identifies an overlay next hop. Extending a TLOC means the router that does not own a color can still build tunnels of that color, using a link to its neighbor as the on-ramp.

Cisco Catalyst SD-WAN 20.18.2.1 with C8000v edges on IOS XE 17.18.02, built in my home lab. Part of the Cisco SD-WAN series; old names such as vManage and vSmart are in the name map. Scope: the two edges here are separate sites that each own both colors, so the extension config is Cisco's documented pattern and the lab output is the before picture.

The problem: one circuit per router

Picture a site with two WAN edges for redundancy. Edge A has the MPLS circuit. Edge B has the broadband circuit. If you leave it at that, A can only build mpls TLOCs and B can only build biz-internet TLOCs. When the MPLS link drops, A has no second color. When the internet link drops, B has none.

You could buy a second circuit for each router. TLOC extension is the cheaper pattern: connect the two edges to each other, and let each router use the neighbor as a way to reach the color it does not own. Think of it as a patch cable between two desks so each person can borrow the other person's phone line.

Cisco documents two flavors:

  • Layer 2 TLOC extension, where the two edges share a subnet on the extension interfaces.
  • Layer 3 TLOC extension, where an L3 hop sits between them and the extension rides GRE (tloc-extension-gre-to). L3 extension is an IOS XE feature. It is not supported on vEdge.

LTE can be a WAN color you extend. Cisco notes that LTE is not used as the extension interface between the two edges.

Diagram: Two sites each own mpls and biz-internet on their own ports, with no TLOC extension link between the edges

What this lab already proves without an extension

edge1 is site 100, system-ip 10.0.0.1. edge2 is site 200, system-ip 10.0.0.2. Each router has its own mpls color on GigabitEthernet2 and its own biz-internet color on GigabitEthernet3. There is no interface between the two boxes that could carry tloc-extension.

sdwan
 interface GigabitEthernet2
  tunnel-interface
   encapsulation ipsec
   color mpls restrict
   allow-service all
 interface GigabitEthernet3
  tunnel-interface
   encapsulation ipsec
   color biz-internet
   allow-service all

restrict on mpls keeps that private color from forming tunnels to a public color. That is color restrict, not TLOC extension.

BFD is up on matching colors only:

edge1#show sdwan bfd sessions
SYSTEM IP  SITE ID  STATE  COLOR         COLOR         SOURCE IP    DST PUBLIC IP
10.0.0.2   200      up     mpls          mpls          10.10.1.11   10.10.2.12
10.0.0.2   200      up     biz-internet  biz-internet  10.20.1.11   10.20.2.12

Those sessions have been up for about a day. Each TLOC is local to the router that owns the circuit. show sdwan omp tlocs lists 10.0.0.1 plus mpls/ipsec with public-ip 10.10.1.11, site-id 100, restrict 1, and region-id None. The matching biz-internet TLOC uses 10.20.1.11. edge2 advertises the same two colors from site 200.

A search of the running config for tloc-extension returns nothing. That is the baseline an extension changes.

How Cisco configures L2 TLOC extension

The documented L2 pattern uses a dedicated interface between the two edges. On the router that owns the real WAN circuit, that interface is not a tunnel-interface. It is marked as the extension of the WAN port:

sdwan
 interface GigabitEthernet3
  tloc-extension GigabitEthernet1

Here GigabitEthernet1 is the circuit you are sharing, and GigabitEthernet3 faces the neighbor. Cisco also has you put NAT or return routes on the real WAN so traffic that used the extension can get back.

On the router that does not own that circuit, the facing interface becomes an ordinary TLOC. It gets a color, an encapsulation, and a default route whose next hop is the neighbor's extension address:

sdwan
 interface GigabitEthernet3
  tunnel-interface
   encapsulation ipsec
   color custom1
ip route 0.0.0.0 0.0.0.0 10.1.19.16

Those addresses are from Cisco's example, not from this lab. After both sides are up, the borrowing router should show a TLOC of that color in show sdwan omp tlocs and a BFD session through the extension.

L3 extension adds a GRE destination (tloc-extension-gre-to <neighbor-ip>) so the two edges do not have to share a broadcast domain.

If you do this from Manager, the VPN Interface Ethernet feature template has a TLOC extension field in the advanced section. The WAN-facing template keeps the tunnel interface on. The extension-facing template keeps the tunnel interface off and points TLOC-Ext at the real WAN port. Configuration groups expose the same knobs under the transport interface.

What to check after you add it

TLOC extension needs two edges in the same site-id, one circuit each, and a routed link between them. Capture show sdwan omp tlocs and show sdwan bfd sessions on the borrowing router before and after. The proof is a new TLOC in the neighbor's color and a BFD session that leaves through the extension link. Keep a rollback plan that puts the original colors back.

Verify what you can without an extension

CheckCommandThis lab
Local colorsshow sdwan running-config sdwanmpls restrict on Gi2, biz-internet on Gi3, no tloc-extension
TLOCs and regionshow sdwan omp tlocsBoth colors present, region-id None
Data-plane tunnelsshow sdwan bfd sessionsTwo sessions up, color to matching color
Site-idshow sdwan running-config system100 on edge1, 200 on edge2
Ownershipshow sdwan system statusStill CLI-managed (vManaged false)

FAQ

What is a TLOC in Cisco SD-WAN? A Transport Locator is the system-ip, color, and encapsulation tuple that identifies an overlay next hop. Each WAN tunnel interface advertises one through OMP, and BFD runs between matching TLOCs.

What is the difference between L2 and L3 TLOC extension? L2 extension uses a direct link where both edges share a subnet. L3 extension crosses a routed hop and rides GRE with tloc-extension-gre-to. L3 extension is an IOS XE feature and is not supported on vEdge.

Can I use an SVI, a switchport, or a loopback for TLOC extension? No. Cisco requires routed Layer 3 interfaces for the TLOC and the extension, and TLOC extension does not work on transports bound to a loopback tunnel interface.

What breaks

  • Two edges, two site-ids, one shared LAN. That is not a dual-router site. TLOC extension assumes the pair belongs together.
  • No L2 or L3 link between the edges. There is nothing for tloc-extension to point at.
  • Using an SVI or a switchport as the WAN or extension interface. Cisco says TLOC and TLOC extension need routed L3 interfaces.
  • Binding the transport to a loopback tunnel interface. TLOC extension does not work on transports bound that way.
  • Forgetting return routing or NAT on the owning router. The borrowed color comes up in OMP and then data traffic cannot find its way back.

Key takeaways

  • TLOC extension lets a WAN edge use a color that is physically attached to its neighbor, over a dedicated L2 link or an L3 GRE extension.
  • This lab's edges already have both colors on their own ports, live in different sites, and have no extension link. BFD is up color-to-color without any tloc-extension line.
  • Verify an extension on the borrowing router: a TLOC in the borrowed color in show sdwan omp tlocs and a BFD session through the extension link.
  • Use it when two edges share a site and each has one circuit. When each edge already owns both colors, as here, you do not need it.

Previous: Service-side BGP and route redistribution loops · Next: Cisco SD-WAN VRRP with Track OMP · Series hub: Cisco SD-WAN series

Read next

Cisco SD-WAN Multi-Region Fabric (MRF) Explained

MRF keeps edge tunnels inside an access region and sends inter-region traffic through border routers in three hops. A flat 20.18 overlay shows what MRF off looks like: device-role edge-router, region-id-set N/A, and REGION ID None on every OMP path.