<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 13, 2020 at 10:06 AM Brian Hutchinson <<a href="mailto:b.hutchman@gmail.com">b.hutchman@gmail.com</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"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 13, 2020 at 9:16 AM Kevin P. Fleming <<a href="mailto:kevin@km6g.us" target="_blank">kevin@km6g.us</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">While I can't comment on the specifics of configuring systemd-networkd<br>
to use ports through DSA (although the linked GitHub issue shows that<br>
it can be done), I really doubt you are going to be able to<br>
successfully bond any group of such ports, because they all have the<br>
same MAC address. In your proposed configuration, you have a NIC<br>
connected to a switch (internal to your system), which would then have<br>
multiple ports connected to *another* switch. Unless the switches<br>
involved support STP or some other loop-avoidance mechanism, you will<br>
get a switching loop in this configuration.<br>
<br>
Connecting multiple ports between two switches requires cooperation in<br>
the switches (STP, or LACP, or something else).ds,<br><br></blockquote><div><br></div><div>So a primer on DSA:</div><div><br></div><div><a href="https://docs.phyglos.org/kernel/networking/dsa/configuration.html" target="_blank">https://docs.phyglos.org/kernel/networking/dsa/configuration.html</a></div><div><br></div><div>You can make the switch ports act as individual network interfaces (called single port in that web link) that won't create switch loops.</div><div><br></div><div>The pre-cursor to DSA that the OpenWRT guys use does the same thing.  It can bust a switch up into individual ports ... then you can do whatever you want with them.</div><div><br></div><div>Regards,</div><div><br></div><div>Brian<br></div></div></div></blockquote><div><br></div><div>.. the reason I mentioned my switch going crazy is I could immediately tell the /etc/systemd/network scripts were not setting up my switch DSA driver to make lan1 and lan2 single ports (individual NIC's).  If I set up DSA with the ip command line options in the original post, I don't get that behavior (no crazy blinking switch lights) and the DSA part works.</div><div><br></div><div>So it's kind of two parts, how to get systemd to setup DSA interfaces as single ports and then part two is making the bond.  I kind of have a feeling the systemd bond examples in the links in OP would work if the DSA ports were setup in single port mode correctly.<br></div><div><br></div><div>Regards,</div><div><br></div><div>Brian<br></div></div></div>