<div dir="ltr">Another idea from colleague, is to bind the source address of the socket to the address of the desired netwrokr interface.<div><br></div><div>While it doesn't guarantee anything, he said that in practice the kernel routed the packets through the desired network interface.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 4, 2014 at 10:02 AM, Erez D <span dir="ltr"><<a href="mailto:erez0001@gmail.com" target="_blank">erez0001@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div>Hello<br><br><br></div>I have 2 external interfaces via two eth cards, both connected to the internet<br><br></div>I want to send a udp packet to same host:port, but choose dynamically which interface to use.<br>
<br></div>can this be done with linux, and how ?<br><br><br><br></div>10x<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">erez.<br></font></span></div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br></div>