Re-posting my question from stackoverflow
I am trying to achieve flow of ipv4 packets over ipv6 tunnel between 2 machines. Initially i had the following setup
Linux1 eth0 Linux2 eth0 184.108.40.206 220.127.116.11 2000::1/64 ---------ipv6 tunnel----- 2000::3/64
When i do a ping from Linux 1, i.e ping 18.104.22.168, the ping goes through, but i do not see ESP packets in wireshark. I am thinking these packets do not go through the ipv6 tunnel. I am thinking my setup might be wrong here.
So, i have come up with the following set up
Linux1 Linux2 eth0.1 -22.214.171.124 eth0.1 126.96.36.199 eth0 2000::1/64 -----ipv6 tunnel------ eth0 2000::3/64
I am thinking if do ping 188.8.131.52 from Linux1, the ipv4 packet goes through the ipv6 tunnel ( i.e starts at eth0.1 , goes through eth0, reaches other end to eth0 on Linnux2 and then eth0.1). Is my understanding right? Also the ping does not work. I have added 184.108.40.206 as default gateway.
Please let me know if my understanding is right and correct me i am wrong.
here is my ipsec.conf file
# ipsec.conf - strongSwan IPsec configuration file config setup strictcrlpolicy=no charondebug=all conn %default left=220.127.116.11 leftcert=/home/root/alphaCert.der leftid="C=US, O=Test, CN=alpha.test.org" right=18.104.22.168 rightid="C=US, O=Test, CN=beta.test.org" keyexchange=ikev2 ike=aes128-sha1-modp2048! type=tunnel esp=aes128ctr-sha1-modp2048-noesn! lifetime=168h ikelifetime=168h reauth=no mobike=no mediation=no conn Alpha-Udp2 leftprotoport=icmp leftsubnet=2000::3/64 rightprotoport=icmp rightsubnet=2000::1/64 auto=start