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

NATing source IP on 3745 switch

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
Hall of Fame Super Blue

Re: NATing source IP on 3745 switch

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

New Member

Re: NATing source IP on 3745 switch

It's a router

Hall of Fame Super Blue

Re: NATing source IP on 3745 switch

then you should be fine.

Jon

New Member

Re: NATing source IP on 3745 switch

Thank you..

New Member

Re: NATing source IP on 3745 switch

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?

Hall of Fame Super Blue

Re: NATing source IP on 3745 switch

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

New Member

Re: NATing source IP on 3745 switch

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

343
Views
0
Helpful
7
Replies
CreatePlease login to create content