<div dir="ltr"><div class="gmail_default" style="font-size:small">Thanks very much for the useful answers.  Much obliged</div><div class="gmail_default" style="font-size:small">Harry </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 29, 2021 at 5:25 AM Paul Slootman via rsync <<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri 26 Mar 2021, Harry Mangalam via rsync wrote:<br>
> <br>
> I'm trying to improve a parallel rsync wrapper called parsyncfp (pfp)  in<br>
> response to a user request.  He wants rsync to emit data on multiple<br>
> interfaces (one interface per rsync instance). From the man page it seems<br>
> like the '--address' option would do that and in fact using it as such does<br>
> not result in an error, but it also does not result in both interfaces<br>
> being used, either from pfp or when launched directly from different shells.<br>
> <br>
> My route (working from home) shows the 2 wlan interfaces up with<br>
> different IP #s:<br>
> wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500<br>
>        inet 192.168.1.223  netmask 255.255.255.0  broadcast 192.168.1.255<br>
> ...<br>
> <br>
> wlx9cefd5fb0bb5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500<br>
>        inet 192.168.1.186  netmask 255.255.255.0  broadcast 192.168.1.255<br>
<br>
As both interfaces are on the same network, the kernel will use one<br>
interface to transmit data to that network.<br>
<br>
> and route shows:<br>
> $ route<br>
> <br>
> Kernel IP routing table<br>
> Destination     Gateway         Genmask         Flags Metric Ref    Use<br>
> Iface<br>
> default         <a href="http://router.asus.com" rel="noreferrer" target="_blank">router.asus.com</a> 0.0.0.0         UG    601    0        0<br>
> wlx9cefd5fb0bb5<br>
> default         <a href="http://router.asus.com" rel="noreferrer" target="_blank">router.asus.com</a> 0.0.0.0         UG    602    0        0<br>
<br>
Here you see wlx9cefd5fb0bb5 has a lower metric, hence it will<br>
preferentially be used.<br>
<br>
You need to dive deeper into linux policy based routing, to force<br>
traffic e.g. from a particular IP address out over a certain interface.<br>
<br>
This is totally outside the scope of rsync; there's nothing rsync can do<br>
to influence this. You need the 'ip rule' and 'ip route' commands.<br>
<br>
<br>
Paul<br>
<br>
-- <br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" rel="noreferrer" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" rel="noreferrer" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div>Harry Mangalam</div></div></div></div></div></div></div></div>