I have been using openwrt on my Pi CM4 with the dfrobot iot router board, it has two Ethernet ports, the built in CM4 one, and a RTL8111, using the router normally works fine however I have not been able to figure out how to set up VLAN's to have separate firwall rules on the different ports of my managed switch.
I am using an Aruba HP-2530-8G-PoEP, I have tried following multiple guides and I am not sure if I am either configuring openwrt incorrectly, or if I am failing to configure the VLANs on the router.
ETH0 is my WAN port which is connected to my main home router, and ETH1 is where I am trying to set up VLAN's and it is connected to my switch.
I am trying to have VLAN 1 be my generic LAN on all the untagged ports with an ip of 192.168.2.1 and I would like to set up VLAN 10 to be running on 192.168.3.1 on one of the switches ports, I set up port 7 on the switch to be VLAN 10, and tried putting at as tagged and untagged but no matter what I do I instantly lose connection as if the ethernet cable is unplugged.
I have tried so many things at this point and am now even more confused about configuring VLAN's than I previously was.
Can anyone offer a guidance on where to look next? Thanks
Then on the switch port to which you are connecting the physical eth1 from the router, you'll set it as a trunk with VLAN1 as untagged/default/PVID/native, and then tagged VLAN10.
On the other switch ports, you'll set the appropriate ports as access ports - that is to say PVID/default/untagged/native for the VLAN you want on a given port.
What port connects to the router?
What port(s) should be using vlan 1?
Which ports should be using vlan 10?
What type of devices are connected? Are they typical end devices (computers, set top boxes, game consoles, etc)?
Currently vlan 10 only on port 7 and this doesn’t connect anywhere else. It is also tagged there, and vlan 1 is not present on that port. So there is literally no connectivity expected from that port to anywhere else.
Assuming the settings on the switch are correct, to add VLANs on the openwrt router, would I simply add a new device configuration for eth1 of type 802.1q for both vlan 10 and 1
Meaning I have two devices eth1.1 and eth1.10
I don’t see any options to do tagging etc, or am I just confused here