cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5082
Views
0
Helpful
6
Replies

Redirect traffic from an IP to other other IP

Mike Vo
Level 1
Level 1

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.

6 Replies 6

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.

thank you for your reply,

I will try it out and come back to you

best regards!

e.ciollaro
Level 4
Level 4

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

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!

So, I agree with gpauwen use static NAT , inside interf will be the interf between "main" and R1

Bye,

enrico

PLEASE: rate if useful

If someone from PC0 tries to access Server0, in fact goes to Server1.