How to add the gui admin LAN to LAGG (possible?)

Started by wotcha, March 01, 2023, 06:14:41 PM

Previous topic - Next topic
March 01, 2023, 06:14:41 PM Last Edit: March 01, 2023, 06:22:42 PM by wotcha
Is it possible to add the admin lan, and therefore the gui access to the router (https://192.168.1.1) to a lag (e.g. lagg0)?

Because when Lagg is being setup, most of us are looking at the gui right? So how can I add the LAN that I am literally accessing now to use the GUI as it cannot be deleted? The firewall admin GUI LAN interface is already assigned... it cannot be re-assigned to lagg0 unless deleted, if I delete then the GUI I'm on disappears... is there a way?

Also when I used the CLI on initial startup to create a lagg I assigned:
eth0 --> WAN
eth1, eth2 --> lagg0
eth3 --> OPT1
lagg0 --> LAN

but when I connected my cable to the eth1 port, I could not reach the LAN via https://192.168.1.1 at all. I wonder if this is because I cannot connect BOTH 2 cables to eth1 & eth2 ?

I thought if I can just connect one cable to eth1 it should be fine, I can still access the firewall

You can connect with just eth1, but the connection has to be configured as a LAGG member on the other side as well. Ethernet packets have to be encapsuled within LACP frames in order to be recognized - on both sides of the LAGG.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 770 up, Bufferbloat A

Quote from: meyergru on March 01, 2023, 06:35:01 PM
You can connect with just eth1, but the connection has to be configured as a LAGG member on the other side as well. Ethernet packets have to be encapsuled within LACP frames in order to be recognized - on both sides of the LAGG.

Okay, got it, thanks. So basically I can't connect eth1 to my computer directly.

also in the Lagg interface, do I have to set a Static IPv4 DHCP range, Or can I not set it at all?

what would adding a static ipv4 DHCP range here (in lagg0) do?

March 02, 2023, 09:20:46 AM #4 Last Edit: March 02, 2023, 09:23:38 AM by meyergru
You can do almost anything identical on a LAGG than with a normal interface, it is only an additional layer on top of the physical enthernet interfaces, like a VLAN or a bridge.

There are few exceptions, like traffic shaping does not work for LAGGs. Maybe you have to tweak some tuneables in order to have pf filter at the correct level (don't remember that, I think that was only for bridges), but that should be about it.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 770 up, Bufferbloat A

March 02, 2023, 09:24:27 AM #5 Last Edit: March 02, 2023, 09:25:59 AM by wotcha
Quote from: meyergru on March 02, 2023, 09:20:46 AM
You can do almost anything identical on a LAGG than with a normal interface

okay thanks, but still confused on 2 points...

- So just to make doubl-y sure... I can't connect eth1 (one of the lagg0 ports) to my computer directly, right?

- I'll be adding VLANs (4 of them) to the lagg0 interface. Why do I have to set a Static IPv4 DHCP range on the lagg0 interface?

A few tutorial videos do this (like they add 192.168.99.1/24), but they don't explain why.

You can connect eth1 if the link partner does LACP (either a capable switch or maybe a driver on your client), otherwise no.

You do not need to assign a subnet on the parent interface of your VLANs, unless you want to have a subnet on the untagged part of that interface. That depends if you only want VLANs or also an untagged LAN, which is often the case (like with Unifi, where the main LAN is usually untagged, whereas guest and IoT networks have a VLAN).

What you do need is to enable the VLAN parent interface (i.e. the LAGG) on OpnSense, but it does not technically need an IP address.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 770 up, Bufferbloat A

March 02, 2023, 02:47:50 PM #7 Last Edit: March 02, 2023, 02:51:07 PM by wotcha
Okay, I see. I think I would like to have untagged traffic.

Currently, I bridge the LAN (basically the Administration interface) between eth3 & eth1 (but eth1 is lagged with eth2 = custom name eth1x2)

So basically right now, there is Static ipv4 on the LAN Bridge with DHCP enabled, giving out 10.0.1.1/24 address.
But none, no ipv4 on eth3, or eth1x2, which make up the bridge.
But I can access the LAN from eth3 physical port right now without any problems.

Does that mean that untagged bridged LAN traffic is also entering the LAGG?

Yes, of course. That is the point of a bridge.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: pmhausen on March 02, 2023, 03:10:53 PM
Yes, of course. That is the point of a bridge.

Great thanks. this worked out perfectly.