Re: Forcing a connection from a particular NIC

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

 



On Wed, 1 Sep 2004, Ronak Sutaria wrote:

I have implemented your code and it works in our setup. The one problem we are facing with it is that it doesn't take virtual mac names. For eg "eth1:1". It says SO_BINDTODEVICE: no such device found.

Any idea how can we use the code to work with virtual eth addresses.

You can't. You then need to bind() to the IP instead of SO_BINDTODEVICE.

"eth1:1" is not a device, it is just an labelled secondary IP address on the eth1 device. Se "/sbin/ip addr show dev eth1".

Regards
Henrik
-
: 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