08-15-2014 11:18 AM - edited 03-04-2019 11:33 PM
I am trying to nat the destination address with an ASR router.
Source --- Source IP: 96.97.98.99 Destination IP: 12.34.56.78
Router ----NAT the destination to 10.0.0.4
After NAT Source IP is 96.97.98.99 Destination IP is: 10.0.0.4
I don't seem to be able to find the correct commands.
Any assistance would be appreciated.
K
Solved! Go to Solution.
08-16-2014
02:18 PM
- last edited on
03-28-2022
05:51 PM
by
Translator
Hi,
What you are looking for is in reality a static source NAT. I know that you intend to rewrite the destination of the packets coming from internet to your router so that they can reach your internal server at 10.0.0.4. However, the names "source NAT" and "destination NAT" apply to the traffic that flows from the inside to the outside interface, i.e. from your internal LAN going off to the internet. It is only natural that in the return traffic, the opposite addresses are rewritten, i.e. if the source NAT rewrites the source IP in the traffic going from inside to outside, it will also rewrite the destination IP in the traffic going from outside to inside.
So simply look for a typical static source NAT configuration. While I do not know what ASR you are running (if it is IOS-XE or IOS-XR), on plain IOS, this would be very simple:
ip nat inside source static 10.0.0.4 12.34.56.78
or, with port forwarding:
ip nat inside source static tcp 10.0.0.4 80 12.34.56.78 80
Please give it a try.
Best regards,
Peter
08-16-2014
02:18 PM
- last edited on
03-28-2022
05:51 PM
by
Translator
Hi,
What you are looking for is in reality a static source NAT. I know that you intend to rewrite the destination of the packets coming from internet to your router so that they can reach your internal server at 10.0.0.4. However, the names "source NAT" and "destination NAT" apply to the traffic that flows from the inside to the outside interface, i.e. from your internal LAN going off to the internet. It is only natural that in the return traffic, the opposite addresses are rewritten, i.e. if the source NAT rewrites the source IP in the traffic going from inside to outside, it will also rewrite the destination IP in the traffic going from outside to inside.
So simply look for a typical static source NAT configuration. While I do not know what ASR you are running (if it is IOS-XE or IOS-XR), on plain IOS, this would be very simple:
ip nat inside source static 10.0.0.4 12.34.56.78
or, with port forwarding:
ip nat inside source static tcp 10.0.0.4 80 12.34.56.78 80
Please give it a try.
Best regards,
Peter
10-19-2019
07:56 AM
- last edited on
03-28-2022
05:51 PM
by
Translator
Hi peter,
can you please let me know in which interface we need to give
ip nat inside and ip nat outside
command?
05-05-2024 09:27 PM - edited 05-05-2024 10:04 PM
@Peter Paluch Can we do the same destination NAT for list or route-map instead of static..?
i.e for ex:
ip nat inside source list ABCD interface TenGigabitEthernet 1/0/1 overload.
Will this work if I want a traffic destined to the IP on TenGigabitEthernet 1/0/1 have to get natted to list ABCD..?
10-16-2014 12:56 PM
Thanks very much for the clarification Peter!
That worked great.
Krista
05-01-2019 11:41 AM
08-27-2023 10:20 AM
Is there any way/configurations available to NAT one directed broadcast address to other directed broadcast address(say 10.139.240.255 -> 10.133.233.255) ?
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