OPNsense Forum

English Forums => General Discussion => Topic started by: jhinkle on December 19, 2023, 04:42:14 PM

Title: LAGG Router to L3 Switch - no VLANs
Post by: jhinkle on December 19, 2023, 04:42:14 PM
Looking for advice/comments on installation.

I'm replacing my existing simple Home network.  I have the following equipment (over kill for now - but available in future)

1G WAN, VP2404 4 port 2.5G Router running Opnsense.  L3 managed switch, 4 L2 managed switches - All switches have 1G ports.

Router currently uses 2 ports - WAN and LAN.

I am interested in optimal access to the Internet (WAN - Router).

Does it make sense to make a 2 or 3 port LAGG from Router to L3 switch --- NO VLANS being used?

If YES - should the LAGG be 2 ports and leave the LAN port on the Router Open or use a 3 port LAGG and not have a LAN port on the router?

For through put between switches - should I consider making a 2 port LAGG between the L3 switch and each of the L2 switches?

Thanks



Title: Re: LAGG Router to L3 Switch - no VLANs
Post by: netnut on December 19, 2023, 05:49:30 PM
Quote from: jhinkle on December 19, 2023, 04:42:14 PM
...

I am interested in optimal access to the Internet (WAN - Router).


You have a 1Gb Internet uplink and everything is 1Gb or 2.5Gb local, what optimizations are you looking for ?

Quote
Does it make sense to make a 2 or 3 port LAGG from Router to L3 switch --- NO VLANS being used?

You get an extra layer of redundancy for your LAN to OPNsense uplink, so that's a plus

Quote
If YES - should the LAGG be 2 ports and leave the LAN port on the Router Open or use a 3 port LAGG and not have a LAN port on the router?

Just use 2 and use the third port as a "normal" port, call it your management interface if you like.

Quote
For through put between switches - should I consider making a 2 port LAGG between the L3 switch and each of the L2 switches?

LAGG's are for redundancy and load sharing, a 2x 1Gb LAGG doesn't transform into a 2Gb uplink, but just 2x 1Gb. As your slowest LAN speed (1Gb) already matches your Internet speed (1Gb), _nothing_ is going faster, just more redundant.
Title: Re: LAGG Router to L3 Switch - no VLANs
Post by: jhinkle on December 19, 2023, 06:07:05 PM
QuoteYou have a 1Gb Internet uplink and everything is 1Gb or 2.5Gb local, what optimizations are you looking for ?
Internet usage near/at 1G and router related traffic in parallel - 2 ports if I'm understanding this.


QuoteLAGG's are for redundancy and load sharing, a 2x 1Gb LAGG doesn't transform into a 2Gb uplink, but just 2x 1Gb. As your slowest LAN speed (1Gb) already matches your Internet speed (1Gb), _nothing_ is going faster, just more redundant.

I understand no one PC will have 2G - but would not a 2 port LAGG allow load sharing - as the LAGG would allow  2G of traffic from a L2 switch to the L3 switch instead of just 1G if NOT using LAGG.

I'm a noob at this so please excuse if some of my terminology is incorrect.
Title: Re: LAGG Router to L3 Switch - no VLANs
Post by: netnut on December 19, 2023, 06:41:57 PM
Quote from: jhinkle on December 19, 2023, 06:07:05 PM

I understand no one PC will have 2G - but would not a 2 port LAGG allow load sharing - as the LAGG would allow  2G of traffic from a L2 switch to the L3 switch instead of just 1G if NOT using LAGG.


Yeah, that's correct, if Device A is using 1Gb of Internet traffic you could have Device B and C on your local LAN also using 1Gb (local traffic). Assuming your LAGG hash policy did separate that nicely over the two links (don't worry, "normally" it will), standard Layer 2 (MAC) is used with optionally a hash over L3/L4 ip/port. Hashing policies will depend on capabilities of LAGG devices, from an OPNsense point of view, these are configured on the LAGG port : INTERFACES: OTHER TYPES: LAGG ---> Hash Layers.