Cisco SD-WAN OSPF Configuration

Cisco SD-WAN uses OMP in the overlay network for routing information, but within a site, it’s possible that you need OSPF (or BGP) to advertise routes with non-SD-WAN devices. In this lesson, I’ll explain how to configure OSPF on a vEdge router.

Configuration





This is the topology:

Cisco Sd Wan Ospf Topology

The two switches and the vEdge router are within a single site. SW1 and SW2 are Cisco IOS switches. I preconfigured these two with OSPF. Next, we’ll configure the vEdge1 router using device and feature templates. I’m using Cisco SD-WAN version 19.3.0.

Configurations

Want to take a look for yourself? Here you will find the startup configuration of each device.

vEdge1

system
 host-name               vEdge1
 system-ip               172.16.1.1
 site-id                 2
 sp-organization-name    nwl-lab-sdwan
 organization-name       nwl-lab-sdwan
 vbond 10.1.0.2
!
omp
 no shutdown
 graceful-restart
 advertise connected
 advertise static
!
vpn 0
 interface ge0/0
  ip address 10.65.91.1/24
  tunnel-interface
   encapsulation ipsec
   color biz-internet
   allow-service all
  !
  no shutdown
 !
 interface ge0/1
  ip address 10.65.92.1/24
  tunnel-interface
   encapsulation ipsec
   color public-internet
   allow-service all
  !
  no shutdown
 !
 ip route 10.1.0.0/24 10.65.91.100
!
vpn 10
 interface ge0/3
  ip address 10.2.1.1/24
  no shutdown
 !
 interface ge0/4
  ip address 10.2.2.1/24
  no shutdown
 !
 omp
  advertise connected
 !
!
vpn 512
 interface eth0
  shutdown

SW1

hostname SW1
!
ip cef
!
interface Loopback0
 ip address 11.11.11.11 255.255.255.255
!
interface GigabitEthernet0/0
 no switchport
 ip address 10.2.1.101 255.255.255.0
!
router ospf 1
 network 10.2.1.0 0.0.0.255 area 0
 network 11.11.11.11 0.0.0.0 area 0
!
end

SW2

hostname SW2
!
ip cef
!
interface Loopback0
 ip address 22.22.22.22 255.255.255.255
!
interface GigabitEthernet0/1
 no switchport
 ip address 10.2.2.102 255.255.255.0
!
router ospf 1
 network 10.2.2.0 0.0.0.255 area 1
 network 22.22.22.22 0.0.0.0 area 1
!
end

OSPF Feature Template

Go to Configuration > Templates > Feature > Add Template and select OSPF:

Cisco Sd Wan Feature Template Ospf

I’ll make a couple of changes here. First, we make the router ID device-specific:

Cisco Sd Wan Feature Template Ospf Router Id

Next, we’ll configure the areas. Click on New Area:

Cisco Sd Wan Feature Template Ospf Area

We’ll start with area 0. Set the number and click on Add Interface:

Cisco Sd Wan Feature Template Ospf Interface

Once again, click on Add Interface:

Cisco Sd Wan Feature Template Ospf Interface Add

I’ll make the Interface Name device-specific:

Cisco Sd Wan Feature Template Ospf Interface Name

For this example, I could have picked a global value. When you are doing labs, it’s tempting to create new templates all the time and only use global values. This gets the job done, but if you think about using device-specific variables, you’ll have a valuable exercise of how you can use templates in a production network.

Click on Add to continue. In the Area overview, you see that we now have one interface attached to area 0. Click on Add:

Cisco Sd Wan Feature Template Area 0

You now see this overview:

Cisco Sd Wan Feature Template Area Overview

Click again on New Area to create area 1. Specify the area number and click on Add Interface:

Cisco Sd Wan Feature Template Area 1

Once again, click on Add Interface:

Cisco Sd Wan Feature Template Ospf Interface Add

I’ll change the Interface Name so that it is device-specific:

Cisco Sd Wan Feature Template Ospf 1 Interface Name

Click on Add one more time so that you see this overview:

Cisco Sd Wan Feature Template Ospf Two Areas

Good. We now have two areas, each with an interface. That’s all we’ll configure for now. Click on Save to store the template.

Device Template

We can now attach the OSPF feature template to a device template. Go to Configuration > Templates > Device and edit the device template, which is attached to vEdge1:

Cisco Sd Wan Edit Vedge1 Device Template

Scroll down to Service VPN and select OSPF under Additional VPN Templates:

We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now!

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You’ve Ever Spent on Your Cisco Career!
  • Full Access to our 800 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)
518 Sign Ups in the last 30 days
satisfaction-guaranteed

  • 100% Satisfaction Guaranteed!
  • You may cancel your monthly membership at any time.
  • No Questions Asked!