|

Route Based IPsec Site-to-Site VPN

Route Based IPsec VPN

Summary Insights:
  • In last two post we had covered Policy based IPsec site to site VPN different scenarios configuration ,in this post we will explain Route Based IPsec site-to-site VPN configuration and will compare with policy based.
  • OSPF Dynamic routing configuration through ipsec site to site VPN will also cover.

Policy Based Vs Route Based IPsec VPN

Let me differentiate first ,There are two way to deploy IPsec site to site VPN

Policy Based : We need create ACL & Crypto map to match the subnets & interesting traffic then bind crypto map in outer physical interface.if traffic is not match with ACL it will not carry through tunnel.

  • If there are multiple subnets required communication need to edit ACL everytime
  • Best for small setup sites
  • Traffic carrying selection is on ACL base

you can learn Policy base IPsec VPN confgiuration here–> IPSec Site to Site VPN in our last post

Route Based: Its tunnel base need to create Virtual tunnel interface (VTI) or Tunnel interace to carry traffic ,IPsec profile will create no ACL required.

  • easy to carry multiple subnets
  • Used for Dynamic routing as well
  • Traffic will carry based on routing table not ACL
  • Best for SD-WAN & multiple sites connectivity

Route Based IPsec VPN Configurations:

Now let me start with one example configuration in EVE-NG LAB Below

route-based ipsec site to site VPN

In above topology first configure ip address on all interface ,if you need configuration file downalod in last of this post.

Configure isakmp policy ,Transform set and IPsec profile as below

ipsec profile configuration on cisco

Configure Tunnel interface , change mode to ipsec bydefault is GRE and call ipsec profile

Tunnel interface configuration on cisco

Configure static route for remote site LAN subnet on tunnel & default static router for tunnel ip reachability

Screenshot 4

IPsec phase-1 is active

Screenshot 5

Site-B LAB subnet is pingable from Site-A

Screenshot 7

if you want to downlaod complete LAB configuration , i have uplaoded file in last section of the post

This scenario also called GRE over IPSEC

OSPF Configuration on IPsec Route Base VPN:

Now let me do one other interesting configuration of OSPF on both site to advertise LAN subnet in OSPF through IPsec VPN.

First remove that Static route from tunnel interface & then configure OSPF as below

Advertise LAN & Tunnel subnet in OSPF AREA 0

Screenshot 8

OSPF neighbor state is full & up with tunnel interface 100

Screenshot 9

Site-B LAN subnet is learning through OSPF in routing table

Screenshot 10

This dynamic routing support we cannot achieve through policy base ipsec VPN thats also the main advantage of route base ipsec VPN to perfrom dynamic i-e OSPF,BGP & EIGRP.

Download Configuration File

Leave a Reply

Your email address will not be published. Required fields are marked *