06-27-2023
04:39 PM
- last edited on
06-28-2023
08:50 PM
by
rupeshah
Hi
I am trying to configure a cisco ISR router to NAT the destination of an internal IP to a 3rd party providers IP Address.
Background: We have hit a bug on our Meraki platform where Meraki Insights will not target a public address which is routed over a private link to a 3rd party Voice provider. Meraki does not look at the routing table, it automatically tries to route to the public IP over the WAN interface. To work around this issue we are looking to create a destination NAT (Acting as a VIP) to the voice provider.
Pre NAT: Source: any Destination: 10.18.1.1
Post NAT: Source: any Destination: 203.100.128.10
Just to note this is a private connection to the destination and both networks can route directly between each other which needs to stay as is. The reason we need to create a destination on an internal IP is to get around a bug in another platform.
I have done this many times with a juniper SRX and want to replicate this functionality with an ISR if it is possible.
Thanks in Advance
06-27-2023 04:46 PM
Ip nat inside destination <<- this command I think what you need
06-27-2023 06:19 PM
I did try that .. but couldnt seem to get it to work.. Do you have a full config that i could test ?
06-27-2023 07:00 PM
Sure draw your topology here and I will share lab how to config İp nat inside destination.
06-27-2023 09:54 PM - edited 06-27-2023 09:54 PM
Here is the lab I have built to test this:
06-28-2023 03:56 PM
07-01-2023 03:42 AM
Hello
Based on what your OP and topology
R2
ip route 10.18.1.1 255.255.255.255 fa0/0 10.18.0.5
ip route 10.18.1.2 255.255.255.255 fa0/0 10.18.0.5
R1
ip route 0.0.0.0 0.0.0.0 fa0/0 10.18.0.6
access-list 10 permit 10.30.0.0 0.0.0.255
ip nat inside source list 10 interface fa0/0 overload
ip nat outside source static 203.100.128.10 10.18.1.1
ip nat outside source static 203.100.128.11 10.18.1.2
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