can you folks help me set up multiple VLANs?
I have tired studyign and doing this on my own and every possible config i try, i run into some combo of these 3 issues:
- Only the primary lan that's out of the box works regardless of what config i do
- no dhcp assignmetns on anythign (or atleast anything other than br-lan, and nothing if i turn that off) even tho dhcp is on
- just complete no IP at all on any, even when i static set it on my pc
System
Model D-Link AQUILA PRO AI M30 A1
Firmware Version OpenWrt 24.10.0 r28427-6df0e3d02a
The device is currently in default config after i recently bricked and reset it again
Set up is as follows:
I have an isp wan with IPoE static IP config
I want to set up the DHCP server on openwrt with multiple IP ranges to be given out based on VLAN
First VLAN - Primary:
LAN port 1
LAN port 2 (will be shared between vlans, connected to the switch)
Can initiate traffic to second vlan, discover services in second vlan, etc.
full internet/wan access
DHCP: IPs in range 10.148.221.1 - 10.148.222.255
LuCI and router SSH access only in this VLAN
Second VLAN - IoT:
LAN port 2 (will be shared between vlans, connected to the switch)
LAN port 3
Devices cannot see or talk to each other in the same vlan
devices need to be accessible from first VLAN but devices in this VLAN cannot see or access other VLANs
DHCP: IPs in range 10.148.225.1 - 10.148.225.255
NO LuCI and router SSH
Third VLAN - VPN
LAN Port 4
Devices cannot communicate with any other vlan, and all clients in this vlan should be directly connected through VPN connection
I have a wg vpn conf file
DHCP: IPs in range 10.148.229.1 - 10.148.229.255
NO LuCI and router SSH access
I have tried asking AI also (like chatgpt) and it seems to gimme the same config I created, and I cant seem to figure this out (i swear i've done this a few years ago but I cant seem to get it now)
What i tried is setting up VLAN devices, then bridge devices bridging to those VLAN devices, then created interfaces with type static IP, gave the first IP x.x.x.1 in each VLAN above to the relevant interface, added the bridge device, started dhcp - nothing works.
DHCP literlally doesnt work if i change ANYTHIGN at all in anything, except maybe the first IP in static conf for the br-lan interface
Especially if i have any subnet mask other thatn 255.255.255.0, nothing works
I cant seem to understand how dnsmasq settings are laid out in luci as well, for subnets