GRE tunnels
U
SER
G
UIDE
236
set nhrp 0 on
set ipsec phase1 MAIN_PH1 local-end 85.34.166.1
set ipsec phase1 MAIN_PH1 encryption-algorithm 3des
set ipsec phase1 MAIN_PH1 hash-algorithm sha1
set ipsec phase1 MAIN_PH1 dh-group 2
set ipsec phase1 MAIN_PH1 authentication-method pre-shared-key
set ipsec phase1 MAIN_PH1 lifetime 7200 sec
set ipsec phase1 MAIN_PH1 exchange-mode aggressive
set ipsec phase1 MAIN_PH1 remote-identifier fqdn NHRPSPOKE
set ipsec phase2 TUN0 match-phase1 MAIN_PH1
set ipsec phase2 TUN0 encryption-algorithm 3des
set ipsec phase2 TUN0 authentication-algorithm hmac-sha1
set ipsec phase2 TUN0 lifetime 3600 sec
set ipsec phase2 TUN0 protocol 47
set ipsec phase2 TUN0 mode transport
set ipsec phase2 TUN0 security esp
set ipsec phase2 TUN0 level unique
set ipsec pre-shared-key NHRPSPOKE tiesseadm
set ipsec on
--------------------------------------
SPOKE 1
--------------------------------------
set gre tunnel 0 name tun0
set gre tunnel 0 tunnel-source wwan0
set gre tunnel 0 tunnel-destination 85.34.166.1
set gre tunnel 0 tunnel-address 172.16.66.1/24
set gre tunnel 0 tunnel-peer 172.16.66.254/24
set gre tunnel 0 multicast
set gre tunnel 0 ttl 64
set gre tunnel 0 on
set nhrp 0 interface tun0
set nhrp 0 map 172.0.66.254/24 85.34.166.1
set nhrp 0 holding-time 300
set nhrp 0 on
set ipsec phase1 MAIN_PH1 remote-end 85.34.166.1
set ipsec phase1 MAIN_PH1 local-end wwan0
set ipsec phase1 MAIN_PH1 encryption-algorithm 3des
set ipsec phase1 MAIN_PH1 hash-algorithm sha1
set ipsec phase1 MAIN_PH1 dh-group 2
set ipsec phase1 MAIN_PH1 authentication-method pre-shared-key