Messages in this thread | | | Date | Thu, 22 Apr 2004 16:54:30 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: Testing Dual Ethernet via Loopback |
| |
On Tue, 20 Apr 2004, Pavel Machek wrote:
> Hi! > > > So what I'm wondering is if there is a way to force Linux to actually > > utilize its network hardware in sending these packets to itself? In other > > words, a ping or file transfer from an IP assigned to eth0 to another IP > > assigned to eth1 should fail if I unplug the network cable connecting the > > two. Any advice on this would be much appreciated. I'm not afraid of > > reading kernel source but have no idea where to start on this one.
`ifconfig lo down` should do it. This will (should) force linux to actually use the address supplied and not sneak through the loopback device.
Cheers, Dick Johnson Penguin : Linux version 2.4.26 on an i686 machine (5557.45 BogoMips). Note 96.31% of all statistics are fiction.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |