Re: Forcing packets on specific interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nicholas Dronen wrote:
> 
> On Wed, Jun 27, 2001 at 04:51:41PM -0400, Sylvain Ouellet wrote:
> > Hi,
> > I have 2 configured interfaces, let's say 192.168.1.1 and 192.168.2.1, is
> > there any way I can force Linux (2.4) to send packets with destination
> > address 192.168.2.1 (the address of the second interface) on the first
> > interface ? I tried to change routes but it does not work. Packets are sent
> > through the loopback interface instead ..
> 
> The kernel knows the addresses of the machine's local interfaces.
> When it sees that a packet is destined for a local interface, it
> simply puts the packet on the local loopback interface's input
> queue.  There's no reason to bother the NIC with a packet that's
> has no place on the wire.  That's the rationale.
> 
> It *might* be possible to do this with netfilter, but I can
> easily imagine it not working for you.  What's your goal,
> anyway?

I can't speak for the original poster, but this sort of thing would be quite
handy for testing network cards and drivers w/o requiring multiple machines. In
the past, I've run short of machines (or funding to purchase machines) and
wished that I could do the above so as to avoid schedule delays.

-- 
Noah Romer
Driver Developer, CM gopher and Linux Whipping Boy
Storage Components Firmware
LSI Logic Corp.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux