Cisco: Creating Site-to-Site VPN Links
I have found there is a lacking for some very straight forward guides on how to setup cisco devices for simple setups.
In this guide I want to show you how to create a very simply Site-to-Site VPN link using what Cisco calls Static Virtual Tunnel Interfaces or SVTIs for short.
First we will start by creating a ISAKMP policy, these policies need to be identical on both sites otherwise Phase 1 negotiation will fail, the policy number represents the order the policies are tried in negotiations however remember if negotiations take too long they may fail.
crypto isakmp policy 1
encr 3des
hash md5
authentication pre-share
group 2
lifetime 20000
Because we told it to use a pre-shared key for authentication we will now set the key for the other sites router
crypto isakmp key keygoeshere address xxx.xxx.xxx.xxx
Now we need to set the transform set, this basically sets the encryption method to use for the tunnel link
crypto ipsec transform-set ESP-3DES-SHA1 esp-3des esp-sha-hmac
One last configuration until we get onto the actual tunnel interface so hold with me here, basically the next bit configures a ipsec profile for use on the tunnel interface, this profile simple tells the system what transform set to use.
crypto ipsec profile Site-to-Site
set transform-set ESP-3DES-SHA1
Onto the good stuff I say, because its such a large code block I’ve added my comments into the code
interface Tunnel0
description --- Connection to Site X ---
!Set the IP address for the link, because it will be Point to Point use the smallest subnet possible
ip address yyy.yyy.yyy.yyy 255.255.255.252
!Set the IP where the connection will be made from
tunnel source Dialer1
!Set the destination in this case the other site
tunnel destination xxx.xxx.xxx.xxx
!Set the tunnel to use IPSEC rather then GRE
tunnel mode ipsec ipv4
tunnel path-mtu-discovery
!Set the profile we used earlier
tunnel protection ipsec profile Site-to-Site
Repeat the same on the other site and… CONGRATULATIONS! Your link should now be UP, UP