06-12-2013 09:57 PM - edited 03-04-2019 08:10 PM
Hi Guys,
I have a requirement where I need to NAT the destination IP address of traffic that is from two different sources.
For example, If either 172.31.50.1 or 172.31.50.2 send traffic to the destination 172.31.164.48, I require the destination IP to be NAT'd to 172.16.4.1.
What's the best way of going about this? I've tried several different NAT setup's but recieve a Cisco error message that the IP address I'm trying to NAT to is already mapped to another IP.
Any help would be greatly appreciated.
Thanks.
Solved! Go to Solution.
06-13-2013 07:02 AM
Hello Michael,
Maybe I missed something, but to me it seems that you just need simple static NAT.
For example, If either 172.31.50.1 or 172.31.50.2 send traffic to the destination 172.31.164.48, I require the destination IP to be NAT'd to 172.16.4.1.
ip nat inside source static 172.16.4.1 172.31.164.48
172.31.50.0/24 ---- network ---- router ---- 172.16.4.0/24
router config
int fa0/0
descript interface toward network
ip add 172.31.164.48 255.255.255.0
ip nat outside
int fa0/1
descript interface subnet 172.16.4.0/24
ip add 172.16.4.254 255.255.255.0
ip nat inside
ip nat inside source static 172.16.4.1 172.31.164.48
All traffic which arrive on interface (172.34.164.48) will be forwarded to IP 172.16.4.1 [destination IP will be translated]
Best Regards
Please rate all helpful posts and close solved questions
06-12-2013 10:23 PM
What device is this on? ASA? Router?
what you require is destination NAT. If its a router, check this link out
http://www.cisco.com/en/US/tech/tk648/tk361/technologies_configuration_example09186a0080093f8e.shtml
=============================
Please remember to rate useful posts, by clicking on the stars below.
=============================
06-12-2013 11:56 PM
Thanks for your reply.
Yep, it is for a router.
I've had a look at the above link but am I little unsure of it. WIll it allow me to specifically set multiple destination IP's to nat to the same address? How would this be configured?
06-13-2013 07:02 AM
Hello Michael,
Maybe I missed something, but to me it seems that you just need simple static NAT.
For example, If either 172.31.50.1 or 172.31.50.2 send traffic to the destination 172.31.164.48, I require the destination IP to be NAT'd to 172.16.4.1.
ip nat inside source static 172.16.4.1 172.31.164.48
172.31.50.0/24 ---- network ---- router ---- 172.16.4.0/24
router config
int fa0/0
descript interface toward network
ip add 172.31.164.48 255.255.255.0
ip nat outside
int fa0/1
descript interface subnet 172.16.4.0/24
ip add 172.16.4.254 255.255.255.0
ip nat inside
ip nat inside source static 172.16.4.1 172.31.164.48
All traffic which arrive on interface (172.34.164.48) will be forwarded to IP 172.16.4.1 [destination IP will be translated]
Best Regards
Please rate all helpful posts and close solved questions
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