Re: Testing Dual Ethernet via Loopback

From: Richard B. Johnson
Date: Thu Apr 22 2004 - 15:59:04 EST

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.

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@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at