lkml.org 
[lkml]   [2004]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.071 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site