Asav s2s
Asav s2s
Asav s2s
_____________________________________________
Author Uldis Dzerkals
EVE-NG Pro, 2020
S2S IPSEC VPN IKEv2 Lab
EVE-PRO, 2020
__________________________________________________________________________________
Contents
I. Lab nodes ........................................................................................................................................ 3
II. Lab objective................................................................................................................................... 3
III. Solution ....................................................................................................................................... 4
1. Configure ASAv1 and ASAv2 Interfaces and default route ......................................................... 4
2. Creating ASAv objects ................................................................................................................. 4
3. Configure DHCP Pools for inside network .................................................................................. 5
5. Permit intra and inter security traffic ......................................................................................... 5
6. Configure NAT ............................................................................................................................. 5
7. Configure IPSEC IKEv2. ................................................................................................................ 6
IV. Verification ................................................................................................................................. 7
1. Ping from Host-PC1 to Host-PC2 ................................................................................................. 7
2. Verify traffic encryption .............................................................................................................. 7
__________________________________________________________________________________
Created by Uldis Dzerkals, EVE-NG Ltd, 2020 2
S2S IPSEC VPN IKEv2 Lab
EVE-PRO, 2020
__________________________________________________________________________________
Preface: Site-to-Site IPSec IKEv2 VPN Tunnel is used to allow the secure transmission of data, voice
and video between two sites (e.g offices or branches). The VPN tunnel is created over the Internet
public network and encrypted using a number of advanced encryption algorithms to provide
confidentiality of the data transmitted between the two sites.
I. Lab nodes
1. Image versions used in lab.
• ASAv 9.14.2
• Router: i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018
• Switches: i86bi_linux_l2-adventerprisek9-ms.SSA.high_iron_20190423.bin
• VPCS Node as host
2. Initial configurations
Router, switches and hosts configurations are preloaded in the lab. (Startup configuration).
NOTE: before start the lab, make sure your all nodes has set proper IOL image. Use side bar More
Options/Wipe all nodes.
__________________________________________________________________________________
Created by Uldis Dzerkals, EVE-NG Ltd, 2020 3
S2S IPSEC VPN IKEv2 Lab
EVE-PRO, 2020
__________________________________________________________________________________
III. Solution
1. Configure ASAv1 and ASAv2 Interfaces and default route
ASAv1
hostname ASAv1
enable password cisco
interface GigabitEthernet0/0
no shut
nameif outside
security-level 0
ip address 20.1.1.1 255.255.255.0
!
interface GigabitEthernet0/1
no shut
nameif inside
security-level 100
ip address 192.168.101.254 255.255.255.0
ASAv2
hostname ASAv2
enable password cisco
!
interface GigabitEthernet0/0
no shut
nameif outside
security-level 0
ip address 30.1.1.1 255.255.255.0
!
interface GigabitEthernet0/1
no shut
nameif inside
security-level 100
ip address 192.168.102.254 255.255.255.0
ASAv1
object network default-gw
host 20.1.1.254
object network remote-network
subnet 192.168.102.0 255.255.255.0
object network inside-network
__________________________________________________________________________________
Created by Uldis Dzerkals, EVE-NG Ltd, 2020 4
S2S IPSEC VPN IKEv2 Lab
EVE-PRO, 2020
__________________________________________________________________________________
ASAv2
object network default-gw
host 30.1.1.254
object network remote-network
subnet 192.168.101.0 255.255.255.0
object network inside-network
subnet 192.168.102.0 255.255.255.0
ASAv2
dhcpd address 192.168.102.10-192.168.102.20 inside
dhcpd dns 8.8.8.8 interface inside
dhcpd domain eve.lab interface inside
dhcpd enable inside
ASAv2
access-list outside_cryptomap extended permit ip 192.168.102.0
255.255.255.0 object remote-network
6. Configure NAT
ASAv1
nat (inside,outside) source static inside-network inside-network
destination static remote-network remote-network no-proxy-arp route-lookup
__________________________________________________________________________________
Created by Uldis Dzerkals, EVE-NG Ltd, 2020 5
S2S IPSEC VPN IKEv2 Lab
EVE-PRO, 2020
__________________________________________________________________________________
ASAv2
nat (inside,outside) source static inside-network inside-network
destination static remote-network remote-network no-proxy-arp route-lookup
ASAv2
crypto ipsec ikev2 ipsec-proposal AES256
protocol esp encryption aes-256
protocol esp integrity sha-1
__________________________________________________________________________________
Created by Uldis Dzerkals, EVE-NG Ltd, 2020 6
S2S IPSEC VPN IKEv2 Lab
EVE-PRO, 2020
__________________________________________________________________________________
IV. Verification
1. Ping from Host-PC1 to Host-PC2
__________________________________________________________________________________
Created by Uldis Dzerkals, EVE-NG Ltd, 2020 7
S2S IPSEC VPN IKEv2 Lab
EVE-PRO, 2020
__________________________________________________________________________________
IKEv2 SAs:
__________________________________________________________________________________
Created by Uldis Dzerkals, EVE-NG Ltd, 2020 8
S2S IPSEC VPN IKEv2 Lab
EVE-PRO, 2020
__________________________________________________________________________________
ASAv2
ASAv2# show crypto ikev2 sa
IKEv2 SAs:
__________________________________________________________________________________
Created by Uldis Dzerkals, EVE-NG Ltd, 2020 9
S2S IPSEC VPN IKEv2 Lab
EVE-PRO, 2020
__________________________________________________________________________________
__________________________________________________________________________________
Created by Uldis Dzerkals, EVE-NG Ltd, 2020 10