NATing source IP on 3745 switch

Unanswered Question
Mar 16th, 2009
User Badges:

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?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Jon Marshall Mon, 03/16/2009 - 08:09
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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

Jon Marshall Mon, 03/16/2009 - 08:21
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

then you should be fine.


Jon

GW M Mon, 03/16/2009 - 08:34
User Badges:

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?



Jon Marshall Mon, 03/16/2009 - 08:42
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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

GW M Mon, 03/16/2009 - 09:50
User Badges:

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

Actions

This Discussion