I am doing some labbing with site to site vpn's and ran into an issue. I have the following config:
crypto isakmp policy 1
encr aes 256
authentication pre-share
group 2
crypto isakmp key test address 100.100.1.1
crypto isakmp key test2 address 0.0.0.0 0.0.0.0
ip access-list extended VPN1-TRAFFIC
permit 192.168.0.0 0.0.0.255 192.168.1.0 0.0.0.255
ip access-list extended VPN2-TRAFFIC
permit 192.168.0.0 0.0.0.255 192.168.2.0 0.0.0.255
crypto ipsec transform-set TS esp-aes 256 esp-sha-hmac
crypto map VMAP 10 ipsec-isakmp
set peer 100.100.1.1
set transform-set TS
match address VPN1-TRAFFIC
crypto map VMAP 100 ipsec-isakmp dynamic test-dynamic
crypto dynamic-map test-dynamic 50
set transform-set TS
match address VPN2-TRAFFIC
int f0/0
crypto map VMAP
When I configure the opposite end of the tunnel it works. If I wanted to add a second 'branch office' that has a dynamic public IP, how would I add it to this headquarter router? I was able to setup multiple tunnels if both end points have a static IP, but ran in to issues when one is static, and the other is dynamic.