cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
578
Views
0
Helpful
7
Replies

NATing source IP on 3745 switch

GW M
Level 1
Level 1

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?

7 Replies 7

Jon Marshall
Hall of Fame
Hall of Fame

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

It's a router

then you should be fine.

Jon

Thank you..

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?

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

no problem. Just wanted to make sure. Thanks again.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card