(E-Mail Removed) wrote:
> Hi,
>
> I want to force tcp traffic to go out even that the dest ip
> is on the same machine.
>
> I have eth0 with ip 10.56.211.89 and eth1 with 10.56.211.90 (for
> example).
> I want to open socket from 10.56.211.89 to 10.56.211.90 and bypass the
> loopback, I mean that the packet will leave the linux on one interface
> and reach the second.
>
> so far couldn't do it.
> any idea will be appreciated.
You won't be able to do it without seriously
crippling the IP and ARP code in the kernel.
Even if you succeed in routing to the interface,
you won't get ARP working properly for external
loopback.
Would you please tell why?
In Rubini's book Linux Device Drivers there is
a pseudo-network driver capable of semi-external
loopback, but even that won't use real physical
Ethernet interfaces.
--
Tauno Voipio
tauno voipio (at) iki fi