Re: an IP stack problem regarding routing and ARP

Arnaldo Carvalho de Melo (
Sun, 23 Sep 2001 18:59:14 -0300

Em Sun, Sep 23, 2001 at 05:56:14PM -0400, Pei Zheng escreveu:

> If a Linux box has 2 NICs, I would like to generate some packets in the
> kernel, sent them out from one NIC to an Ethernet switch, and then
> receive them on the other NIC. Is it possible, with the help of appropriate
> routing table, routing rules and ARP configuration? Or the kernel IP
> stack must be modified? It seems to me that if the kernel figures
> out that a packet's next hop is its local network interface, it will
> deliver to that interface through IP stack directly.

look at snull in Rubini's ldd2, available as FDL (iirc) at

- Arnaldo
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at