03-16-2009 08:02 AM - edited 03-11-2019 08:05 AM
I have a 3745 switch running IOS 12.3. I would like to NAT the inside IP address 192.168.1.70 to IP address 125.255.251.1 only when it is communicating to IP address 149.100.114.1. For all other IP addresses that it will be communicating with, I DO NOT want to NAT 192.168.1.70. Does anyone know what the commands are to do this?
03-16-2009 08:09 AM
Do you mean 3745 router ?
If you mean 3750 switch you can't NAT on switches other than the 6500 but assuming you mean router
access-list 101 permit ip host 192.168.1.70 host 149.100.14.1
ip nat inside source static 125.255.251.1 192.168.1.70 route-map NAT
route-map NAT permit 10
match ip address 101
Jon
03-16-2009 08:16 AM
It's a router
03-16-2009 08:21 AM
then you should be fine.
Jon
03-16-2009 08:23 AM
Thank you..
03-16-2009 08:34 AM
Wouldn't "ip nat inside source static 125.255.251.1 192.168.1.70 route-map NAT" be reversed? Like... "ip nat inside source static 192.168.1.70 125.255.251.1 route-map NAT" since the source is 192.168.1.70 and we are NATing to 125.255.251.1?
03-16-2009 08:42 AM
Gregg
Yes, my apologies. I was in Pix/ASA mode for a moment there where you reverse the addresses but on a router you are quite right the statement would be
ip nat inside source static 192.168.1.70 125.255.251.1 route-map NAT
Once again, apologies for that.
Jon
03-16-2009 09:50 AM
no problem. Just wanted to make sure. Thanks again.
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