New here? Start with our CCNA Foundations skill path to build a solid networking base.

Security
Intermediate

Site-to-Site IPsec VPN Overview Lab

Overview

Configure a basic site-to-site IPsec VPN tunnel between two routers, verify encryption and tunnel status.

Prerequisites

Understanding of encryption concepts, ACLs, basic routing

Topology

Two sites (Site A and Site B) each with a router and internal LAN. Routers connected via simulated Internet cloud.

VPN
IPsec
Security
Encryption

Lab Steps

Step 1Configure ISAKMP policy (Phase 1)

Define IKE Phase 1 parameters: encryption, hash, DH group, authentication method.

Checklist:

  • ISAKMP policy created
  • Pre-shared key configured
  • Parameters match on both sides
Step 2Configure IPsec transform-set (Phase 2)
Step 3Define crypto ACL
Step 4Create and apply crypto map
Step 5Bring up tunnel and verify

Configurations

Site A VPN Configuration
SiteA-Router
SiteA-Routercisco
crypto isakmp policy 10
 encr aes 256
 hash sha256
 authentication pre-share
 group 5
!
crypto isakmp key MyS3cr3tK3y address 203.0.113.2
!
crypto ipsec transform-set MY_TSET esp-aes 256 esp-sha-hmac
 mode tunnel
!
access-list 100 permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
!
crypto map MY_MAP 10 ipsec-isakmp
 set peer 203.0.113.2
 set transform-set MY_TSET
 match address 100
!
interface g0/1
 crypto map MY_MAP

Verification

Verify VPN tunnel status

Commandscisco
show crypto isakmp sa
show crypto ipsec sa
show crypto session

Expected Output:

Outputcisco
Interface: GigabitEthernet0/1
    Session status: UP-ACTIVE
    Peer: 203.0.113.2 port 500
      Phase1_id: 203.0.113.2
      IPSEC FLOW: permit ip 192.168.1.0/255.255.255.0 192.168.2.0/255.255.255.0

Common Issues