07-26-2011 06:22 AM - edited 03-07-2019 01:24 AM
Hi
can anyone tell me if it is possible to do a conditional NAT based on the source address ?
i.e.
if source address is 192.168.1.1 and the destination is 10.47.1.50 then NAT 192.168.1.1 to 10.49.5.20
if source address is 192.168.1.2 and the destination is 10.47.1.50 then NAT 192.168.1.2 to 10.49.5.30
many thanks
Keith
Solved! Go to Solution.
07-26-2011 06:49 AM
Keith
access-list 101 permit ip host 192.168.1.1 host 10.47.1.50
access-list 102 permit ip host 192.168.1.2 host 10.47.1.50
route-map NAT1 permit 10
match ip address 101
route-map NAT2 permit 10
match ip address 102
ip nat inside source static 192.168.1.1 10.47.1.50 route-map NAT1
ip nat inside source static 192.168.1.2 10.47.1.50 route-map NAT2
Jon
07-26-2011 06:49 AM
Keith
access-list 101 permit ip host 192.168.1.1 host 10.47.1.50
access-list 102 permit ip host 192.168.1.2 host 10.47.1.50
route-map NAT1 permit 10
match ip address 101
route-map NAT2 permit 10
match ip address 102
ip nat inside source static 192.168.1.1 10.47.1.50 route-map NAT1
ip nat inside source static 192.168.1.2 10.47.1.50 route-map NAT2
Jon
07-26-2011 06:55 AM
many thanks Jon - I'll give that a try
regards
Keith
07-27-2011 01:04 AM
many thanks Jon - works perfect
regards
Keith
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