vpn ipv4

#tussen de () is na eigen invulling

sh crypto isakmp policy
sh crypto ipsec transform-set
crypto isakmp policy (23)
hash md5
authentication pre-share
group (2)
lifetime 86400
encryption 3des
exit


crypto isakmp key (naam) address (leuk adres)
crypto ipsec transform-set (naamset) esp-3des esp-sha-hmac
access-list 123 permit ip (ip adres) (wildcard) (ip adres) (wildcard)

 

#1e ip is van outgoing pc, 2e ip is van incoming pc, andersom voor andere router
 

crypto map (naammap) 1 ipsec-isakmp
match address (adres wat je bij crypto isakmp key heb aangemaakt)
set transform-set (naamset wat je eerder hebt aangemaakt)
set peer (ip adres)
exit
int f0/1
crypto map (naam map eerder aangemaakt)