Re: Testing Dual Ethernet via Loopback

From: Anton Blanchard
Date: Thu Apr 22 2004 - 17:41:06 EST



> 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.

Sounds like you need the send-to-self patch:

http://www.ssi.bg/~ja/

We've been using it a lot in the lab, it works well.

Anton
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/