Re: Communication between eth0 and eth1 over the cable

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

 



On Mon, May 14, 2007 at 09:34:50AM +0200, torbjorn@xxxxxxxxxxxxxxxxxxxxxxx wrote:
> Dear linux-net readers,
> 
> Is it possible to have two network interfaces and communicate between them 
> trough the cable (I.E. not use the loopback device)?
> 
> Setup: eth0: 10.0.0.1, eth1: 10.0.0.2
> 
> ftp/http/ping/whatever 10.0.0.2 should go out of eth0 and be received on
> eth1 and visa versa.
> 
> I have tried the obvious with routing tables and forced route to 10.0.0.2
> trough eth0 etc, but Linux still takes the short cut trough the loopback
> interface, and it does not work if loopback is disabled.
> 
> The reason for doing so is to conduct a EMC/EMI test of a product: the Atmel
> Network Gateway, single board computer.
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

You could use raw sockets to bypass the routing code if you like, but it means
you'll have to assemble all of your network headers in user space on your own.

Regards
Neil

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux