LAG (LAGG) is a Good Thing!
HTML-код
- Опубликовано: 19 авг 2024
- Not all LAG is bad! Add LAG (LAGG), link aggregation to your network to increase throughput in places where bottlenecks are possible! it is also helpful as a failover if network interfaces fail, but that scenario is less likely to occur unless you have an old or faulty switch.
Learn more:
--------------------
Setting up a LAGG on a network switch: homenetworkguy...
Setting up a LAGG on Proxmox: homenetworkguy...
homenetworkguy...
EP02
This is also known as ether-channel. PAgP (Cisco proprietary) and LACP (non-proprietary) are two available protocols. The other nice thing is that it load-balances automatically, a down link won't affect the other links, you can group additional links that act as backups (to downed links), and it works with STP.
Yeah I didn’t mention the details in this overview, but I use LACP for all of my LAGGs. I forgot to mention in the video about LAGGs being helpful if a link is down, which is why I decided to mention it in the video description. It was also to have LAGGs when I was organizing some cabling since I can unplug one link at a time and not take down anything in my network.
LAGs are nice. But in every case you need to look into how the load sharing between the links work. Often the path selection will be based on mac-adress pairs, meaning you won't really gain any performance with a LAG unless the utilization is really high on that single connection.
I like your multi lane highway analogy, regardless of how many lines, a single car can't go faster in its lane.
Yeah I didn’t mention the details but if you can use L2 + L3, traffic gets distributed much better than choosing one over the other. Some even do L4 to further split traffic. I found with OPNsense that using both L2 + L3 shares traffic across the ports much better. OPNsense also supports using L4 on the LACP LAGG.
Very cool. Can't wait for your more detailed video on the topic.
Thanks. I hope to go in more depth at some point. I have written on some of this topic before on my website but I do want to provide more detailed videos in the future. I have so many projects I want to do and so little time.
YES YES !! Keep these going !
Have another short video scheduled for release on 12/29. I’m trying to release a few quick videos while I’m on vacation to build up some basic content.
@@homenetworkguy They are worthy ! Keep posting !!
Thanks a lot for sharing your great home network with us and thanks for the LAG tips! Cheers!!
You're welcome! I may go into more detail future videos (I mention setting up a LAGG in my OPNsense videos).
@@homenetworkguy sounds great. I'm thinking of adding a multiport nic to NY proxmox box and adding opensence and unbound... Currently running pihole...
Very cool I hope you keep putting out more videos. I submitted
I plan to! Eventually I would like to make a few more detailed videos but I’m going to keep them simple to get started.
thanks for the vid
You’re welcome!
Its a ether channel. Bundling multiple interfaces into single interface. We can use 8 multiple channels into a single one
Yeah it goes by many names. It seems like “link aggregation” is more of a general term for the technology while the other names are more vendor specific terminology.
@@homenetworkguyI like the laaaagg term best
Can you Lag between switch and router/modem as a redundancy?
Yes! As long as both devices support LAGGs.
@@homenetworkguy I will have to look into xfinity modem/router . XB8. I guess you could shut the router off and use only as a modem, and use your own router. But I prefer to try and use the XB8
OK this is a pretty juvenile question I guess… But my modem supports link aggregation and so does my router. Would you think link aggregation would be a good thing for the set up? Between my modem and my router. This is for a home network my wife works from home and we’re trying to make something reliable. We really don’t have many things on the net work. We are going to put in a Nas but at this point we’re just trying to just get the foundations in place. Also, we are going to add a managed switch in the near future
Adding a LAGG between your modem and router is only beneficial if you have more than 1 Gbps and you have 2 or more devices using a combined throughput greater than 1 Gbps.
@@homenetworkguy Thanks, for the input. While we do have a 1 GIg download, I think I’ll just use the key automatic five gig/10 gig port From the modem to the router. Once I add a switch I’ll probably change everything to an aggregate.
Subscriber #154
Welcome!
That's cool - I never saw link aggregation used before - might be interesting to see how you set that up in opnsense?
It’s not too difficult to configure especially if you have a dedicated management interface since you are free to configure other interfaces without the potential for losing connectivity to your router. If you have 4 interfaces and want 1 as a WAN and 3 in a LAGG, you have configure 2 interfaces in a LAGG, move your device over to the LAGG interface and then finish adding the 3rd interface to the LAGG.
@@homenetworkguy Afaik it is even possible to set up LAGG in OPNsense in the CLI and create VLAN Interfaces on top of it if I'm not mistaken.
At least this is how I set up my TrueNAS CORE servers, which is useful when there are many clients :)
@@Felix-ve9hs Yes! You can definitely set up VLANs on top of the LAGG. I didn’t mention it in the video though. That is what I do with my LAGG to increase/share bandwidth across several VLANs.