sending to same dest via different interfaces

sending to same dest via different interfaces

Etzion Bar-Noy ezaton at tournament.org.il
Thu Mar 6 00:42:15 IST 2014


Eventually I will master the secret art of sending e-mail messages to the
right persons, with the right content. A secret and holy art it is...

Assuming you want the paths to be selected dynamically based on load, you
can use iputils2 'ip route' to create a multi-homed routes. You will not
have a clean control over how a specific packet goes, however, you will be
able to split the communication between the two interfaces to whichever
ratio you desire. Lots of info on the Internet.

Ez



On Thu, Mar 6, 2014 at 12:41 AM, Etzion Bar-Noy <ezaton at tournament.org.il>wrote:

> Sorry. My default was not 'send to all'. Now posting to the list as well.
>
>
>
> On Wed, Mar 5, 2014 at 2:58 PM, Elazar Leibovich <elazarl at gmail.com>wrote:
>
>> Another idea from colleague, is to bind the source address of the socket
>> to the address of the desired netwrokr interface.
>>
>> While it doesn't guarantee anything, he said that in practice the kernel
>> routed the packets through the desired network interface.
>>
>>
>> On Tue, Mar 4, 2014 at 10:02 AM, Erez D <erez0001 at gmail.com> wrote:
>>
>>> Hello
>>>
>>>
>>> I have 2 external interfaces via two eth cards, both connected to the
>>> internet
>>>
>>> I want to send a udp packet to same host:port, but choose dynamically
>>> which interface to use.
>>>
>>> can this be done with linux, and how ?
>>>
>>>
>>>
>>> 10x
>>> erez.
>>>
>>> _______________________________________________
>>> Linux-il mailing list
>>> Linux-il at cs.huji.ac.il
>>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>>
>>>
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il at cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140306/ed58e291/attachment-0001.html>


More information about the Linux-il mailing list