12-21-2016 10:35 AM - edited 03-05-2019 07:43 AM
Hello all,
I would like to know if is possible to move the traffic from one IP to other IP (both of them external) for the users of the network using a router/ios?
For example. If an user tries to access 10.10.10.10 in fact the user communicates with 20.20.20.20 (icmp, tcp, udp) and he doesn't know that.
Thank you,
Mike.
12-21-2016 11:43 AM
Hello Mike,
do you mean translating the 10.10.10.10 address to 20.20.20.20 ?
ip nat inside source static tcp 10.10.10.10 80 20.20.20.20 80
In this example, if the user accesses 10.10.10.10, in fact, 20.20.20.20 is accessed.
01-03-2017 01:33 AM
thank you for your reply,
I will try it out and come back to you
best regards!
12-22-2016 01:21 AM
Hi Mike
I agree with gpauwen but you wrote "both of them external" ; if host 20.20.20.20 is outside your network you may NAT traffic and route it to the final host (20.20.20.20) but return traffic from 20.20.20.20 to 10.10.10.10 wont traverse your network; it will probably be routed directly to the final user.
If you clarify the architecture we can give you a btter answer. Moreover remember that not every protocol could be "natted"
Bye,
enrico
01-03-2017 01:32 AM
Hello [@e.ciollaro]
Thank you for your reply,
Let me clarify it for you.
I need a way to "nat" the to traffic between 2 IPs out of my network
if an user from my network needs to access 8.8.8.8, then the user ends up (and he doesnt know) to access other IP address 8.8.4.4 by using a command (or more than one).
I hope I was clear now....
Thank you!
01-10-2017 03:24 AM
So, I agree with gpauwen use static NAT , inside interf will be the interf between "main" and R1
Bye,
enrico
PLEASE: rate if useful
01-03-2017 05:28 AM
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