Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

static nat with route maps

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
New Member

Re: static nat with route maps

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

New Member

Re: static nat with route maps

why route-map is not setup set option .

282
Views
0
Helpful
2
Replies
CreatePlease to create content