crypto keyring cisco
  pre-shared-key address 123.1.1.1 255.255.255.0 key cisco
!
crypto isakmp policy 10
 authentication pre-share
crypto isakmp profile L2LISAKMPPROFILE
   keyring cisco
   match identity address 123.1.1.1 255.255.255.0
!
!
crypto ipsec transform-set ***TS esp-aes esp-sha-hmac
!
crypto ipsec profile IPSECPROFILE
 set transform-set ***TS
 set isakmp-profile L2LISAKMPPROFILE

 

interface Tunnel0
 ip address 192.168.1.2 255.255.255.0
 tunnel source 123.1.1.2
 tunnel mode ipsec ipv4
 tunnel destination 123.1.1.1
 tunnel protection ipsec profile IPSECPROFILE