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
Define IKE Phase 1 parameters: encryption, hash, DH group, authentication method.
Checklist:
- ISAKMP policy created
- Pre-shared key configured
- Parameters match on both sides
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_MAPVerification
Verify VPN tunnel status
Commandscisco
show crypto isakmp sa
show crypto ipsec sa
show crypto sessionExpected 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