Re: Forcing packets on specific interface

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

 



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?

Regards,

Nicholas Dronen
-
: 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