Course contents

Unit 4: VPNs and segmentationLesson 4.3 (3 of 5 in this unit)23 of 62 in the Cisco SD-WAN course

Service VPN/VRF architecture

How service VPNs separate user traffic: one routing table per segment, VPN labels and OMP, and keeping segments apart end to end.

Intermediate · 9 min read

You'll learn to explain what a service VPN is, how it separates user groups end to end, and how a prefix in one VPN is kept from appearing in another.

Technical definition

Service VPN is a VPN, other than 0 and 512, that holds user-side interfaces and routes. Each one is a separate routing table, so a prefix in one service VPN is not visible in another unless policy leaks it. The same VPN number at different sites forms one network across the fabric.

One network, several segments

A company often needs to keep groups apart: staff, guests, payment systems, building controls. In Cisco SD-WAN each group gets a service VPN. On each WAN Edge the VPN is a separate routing table. Across the fabric, the same VPN number joins the sites into one segment.

Diagram
A prefix in a service VPN
A prefix in a service VPN

How a user prefix reaches another site.

  1. Learnprefix in VPN 10
  2. Advertisethrough OMPwith VPN label
  3. Installin VPN 10 only
  4. Forwardlabel selects VPN
The label keeps the segment separate on the wire.
Diagram
Example segment plan
Example segment plan
VPNUsed forSites
10StaffBR-01 and HUB-01
20GuestsBR-01 only
30Payment systemsHUB-01 only
Numbers and uses are examples for the lesson. Choose your own plan and keep it identical at every site.

How segments stay separate

  • Each VPN has its own routing table on the device, so overlapping addresses in different VPNs do not conflict.
  • OMP carries the VPN with each route, so a route learned for VPN 10 is installed only in VPN 10 on the receiver.
  • The data packet carries a label for the VPN, so the receiving device delivers it into the right table.
  • Nothing moves between VPNs unless a policy deliberately leaks routes, covered in a later lesson.
Diagram
Without and with segmentation
Without and with segmentation

One shared table versus separate tables.

One tableAll users see all routes
Service VPNsEach group has its own routes
Segmentation limits what a compromised host can reach.
vpn 10 interface ge0/1 ip address 192.168.10.1/24 no shutdown vpn 20 interface ge0/2 ip address 192.168.20.1/24 no shutdown

Fragment of an example vEdge-style configuration for BR-01, shortened. Interface names and syntax differ on IOS XE. Prefixes are private example addresses.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan omp routes
VPN    PREFIX              FROM PEER   STATUS
10     192.168.10.0/24     10.255.1.1  C,I,R
10     192.168.11.0/24     10.255.1.1  C,I,R
Each route is listed under its VPN. The prefixes shown belong to VPN 10, so they are installed only in that VPN. The real output has more columns, such as the label and the TLOC.

Learn more: VPN 0: Transport InterfacesOMP Peers and ExchangesTemplates and Configuration Groups

Test yourself

Predict · scenario 1

Staff are VPN 10 at BR-01 and HUB-01. A staff host at BR-01 reaches a staff server at HUB-01. What makes this work?

Predict · scenario 2

Guests (VPN 20) must not reach payment systems (VPN 30). What provides the separation?

FAQ

What is the difference between a service VPN and a VRF?
On IOS XE devices a service VPN is implemented as a VRF. The word VPN names the segment across the fabric and VRF names the routing table on one device.
How does the far end know which VPN a packet belongs to?
The IPsec packet carries a VPN label. OMP advertises each prefix with its VPN and label, so the receiving WAN Edge delivers the packet into the correct VPN.
Do VPN numbers have to match between sites?
Yes for traffic to connect. The number is the shared name of the segment, so staff must be the same VPN number at every site where staff exist.