05-06-2006 12:22 PM - edited 03-03-2019 03:06 AM
I am trying to create a static nat for a single inside resource to two different outside addresses using route maps. The route map tests if the interface is up so that the resource gets natted to the proper outside address. The problem is that Cisco enters the commands in alphanumeric order so there is no way to have one inteface have preference over another. I've tried mapping ids but that did nothing.
05-06-2006 01:44 PM
Hi,
can you try this ?
ip nat inside source static 11.1.1.2 172.68.1.21 route-map isp1
ip nat inside source static 11.1.1.2 192.68.1.21 route-map isp2
!
route-map isp1 permit 10
match ip next-hops 101
!
route-map isp2 permit 10
match ip next-hop 102
!
access-list 101 permit ip 172.68.1.1
access-list 102 permit ip 192.68.1.1
172.68.1.1 is isp1 ip address (let's say from serial0)
192.68.1.1 is isp2 ip address (let's say from serial1)
if traffic from 11.1.1.2 to 172.68.1.1 (this will be decided by routing you configured) the nat to 172.68.1.21
this will be true as far as your prilary path is up (serial0)
Now if primary path is down. next hop will be 192.68.1.1 so match route-map isp2 the you ip address is natted to
192.68.1.21.
Please try it and let me know
Regards,
cisand
05-07-2006 03:34 AM
why route-map is not setup set option .
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide