Re: Forcing a connection from a particular NIC

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

 



Xia Wei-Zhong-W20079 <xia@motorola.com> wrote:
> 
> In the previous message, I have asked "it is said to use
> SO_BINDTODEVICE, you still need to have a route pointing to the
> device. SO_BINDTODEVICE only allow you to choose device among the
> different routing priorities.". So if I send a packet to 127.0.0.1, will
> it be routed to lo, even if I have previously binded the socket to eth0?

Please wrap your lines properly.

The answer is no, it will go out of eth0 as you directed.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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