cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
460
Views
0
Helpful
2
Replies

static nat with route maps

whanson
Level 2
Level 2

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.

2 Replies 2

cisand2002
Level 1
Level 1

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

wang19841229
Level 1
Level 1

why route-map is not setup set option .