hi, all
I have one ip ipsec peer and 2 policy.
ip ipsec peer print
Flags: X - disabled
0 address=1.2.3.4/32:500 auth-method=pre-shared-key secret="PreKey" generate-policy=no
exchange-mode=main send-initial-contact=yes nat-traversal=no proposal-check=obey hash-algorithm=sha1
enc-algorithm=3des dh-group=modp1024 lifetime=1h lifebytes=0 dpd-interval=disable-dpd dpd-maximum-failures=1
ip ipsec policy print
Flags: X - disabled, D - dynamic, I - inactive
0 src-address=10.10.10.0/24:any dst-address=192.168.0.0/24:any protocol=all action=encrypt level=require
ipsec-protocols=esp tunnel=yes sa-src-address=0.0.0.0 sa-dst-address=1.2.3.4 proposal=default priority=0
1 src-address=10.10.10.0/24:any dst-address=172.16.0.0/24:any protocol=all action=encrypt level=require
ipsec-protocols=esp tunnel=yes sa-src-address=0.0.0.0 sa-dst-address=1.2.3.4 proposal=default priority=0
On other side I have Cisco router (with dynamic vpn).
The problem:
- if ipsec connection with remote-peer is not started and I make ping 192.168.0.1 src-address=10.10.10.1 - the tunnel is up but is only for 192.168.0.0/24 direction
- if ipsec connection with remote-peer is not started and I make ping 172.16.0.1 src-address=10.10.10.1 - the tunnel is up but is only for 172.16.0.0/24 direction
It depend that packet (with destination ip) was first.
I need working 2 polices in same time?
Please help