Re: Two identical ips connected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 16 Oct 2006, Julian Hagenauer wrote:

Hi,
is it possible somehow possible to attach two computers with the same ip
to a router, and let the router rewrite/masquerade the ip of one of
those computers with iptables, so that both could be accessed with different ips?

Can you give my some hints how this could be achieved?


you can't do it with one router, but you could with two routers

machineA 10.0.0.1
  |      machineB Natted as 10.0.0.2 by router1 (from the 192.168.1.2 that
  |      router2 makes it)
router1
  |      machine A Natted as 192.168.1.1 (by router1)
  |      machine B Natted as 192.168.1.2 (by router2)
router2
  |      machineA Natted as 10.0.0.2 by router2 (from the 192.168.1.1 that
  |      router2 makes it)
machineB 10.0.0.1

each machine would see the other as 10.0.0.2

very ugly, but if you can't do anything else, this approach can work.

David Lang


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux