GRE via IPSEC

This lab shows us how to configure a conventional GRE tunnel over IPSEC. GRE is great for emulating a conventional P2P link and is often used in secondary connections via an ISP. This configuration is based on a LAB by the fantastic GNS3 Vault please check them out if you want a more detailed explanation of how to configure the below.

 




#####################
## INTERNET ##
#####################

int fa0/0
ip addr 192.168.12.2 255.255.255.0
no shut

int fa0/1
ip addr 192.168.23.2 255.255.255.0
no shut

router eigrp 1
network 192.168.12.0
network 192.168.23.0

#####################
## NYC ##
#####################

int fa0/0
ip addr 192.168.12.1 255.255.255.0
no shut

int lo1
 ip addr 1.1.1.1 255.255.255.0


router eigrp 1
network 192.168.12.0

router ospf 1
 network 192.168.13.0 0.0.0.255 area 0 
 network 1.1.1.0 0.0.0.255 area 0

crypto isakmp  policy 1
 encryption aes 256 
 authen pre-share
 hash sha
 group 5
 lifetime 3600

crypto isakmp key 0 PASSWORD address 192.168.23.3

crypto ipsec transform-set MYTRANS esp-aes 256 esp-sha-hmac

crypto map MYMAP 10 ipsec-isakmp 
set peer 192.168.23.3
match address 101
set transform-set MYTRANS

ip access-list ext 101
 permit gre host 192.168.12.1 host 192.168.23.3

int tunnel 10
 tunnel source fa0/0
 tunnel destination 192.168.23.3
 ip address 192.168.13.1 255.255.255.0

int fa0/0
 crypto map MYMAP 


#####################
## SAN FRAN ##
#####################

int fa0/0
 ip addr 192.168.23.3 255.255.255.0
no shut

int lo1
ip addr 3.3.3.3 255.255.255.0

router eigrp 1
network 192.168.23.0

router ospf 1
network 192.168.13.0 0.0.0.255 area 0
network 3.3.3.0 0.0.0.255 area 0

crypto isakmp  policy 1
 encryption aes 256 
 authen pre-share
 hash sha
 group 5
 lifetime 3600

crypto isakmp key 0 PASSWORD address 192.168.12.1

crypto ipsec transform-set MYTRANS esp-aes 256 esp-sha-hmac

crypto map MYMAP 10 ipsec-isakmp 
set peer 192.168.12.1
match address 101
set transform-set MYTRANS

ip access-list ext 101
 permit gre host 192.168.23.3 host 192.168.12.1

int tunnel 10
 tunnel source fa0/0
 tunnel dest 192.168.12.1
 ip address 192.168.13.2 255.255.255.0

int fa0/0
 crypto map MYMAP


Comments

Popular posts from this blog

Configure OSPF Juniper SRX

Upgrading JUNOS via USB