INTRO & HOW I'VE TRIED do I deserve help? (skip to next section if you want to get to the setup and questions): I've been working for about 10 days off and on to get an openwrt router running for a home network with several users and a server. I've read through many parts of the documentation, looked for and tried to follow tutorials on youtube, looked for written tutorials on the web, and tried using AI (claude 4.x thinking) to guide me. I've exported my config files and had ai help analyze them to see where things are going wrong. It's all failed.
Help? I hope I can find a working tutorial or guide that covers at least some of what I am trying to do, or maybe some tip sheet that covers common failure points to check when you fail to get X working (can I install a better system logger?), or once I get to a broken point again, help analyzing what broke and why? that last one seems too complicated to ask for...
WHAT I'm WORKING WITH: [UPDATE with correct info] Netgear 6220 running specifically "openwrt-24.10.1-ramips-mt7621-netgear_r6220-squashfs-factory.img" and am still running 24.10.1 r28597 - I also installed wireguard & wireguard tools packages. Wifi is from a couple Ubiquiti Unifi radios, running control software on a laptop (no ubiquiti controller hardware just the Unifi UFOs) running 6.7.x, and a fiber modem in 'fake bridge' passthrough mode (BGW 320).
WHAT I AM TRYING TO ACCOMPLISH: Here are my most basic tasks, if I can do these, I can do the rest of what I want to do.
(1) Create 2 separate VLAN (vlan 10 and 20) with separate DHCP servers (10.10.10.1/32 and 10.10.20.1/32) mapped to 2 of the 4 ethernet ports eth1 and eth2, so a device on ethernet1 gets dhcp 10.10.10.x and on ethernet 2 gets 10.10.20.x. This has failed every time, the 2nd dhcp server never starts, no logs (i can find) are generated. I can kind of get it to work if I assign internal IP static IPs to all devices but the 2nd dhcp fails every time.
(2) create a trunk (?) on eth3 carrying vlan 10 and 20 that connects to the Unifi radio. The radio has 2 virtual interfaces each with it's own SSID - wifi10 and wifi20. A device connecting to wifi 10 gets dhcp 10.10.10.x assigned. I have this set up but it has never worked because step 1 fails
(3) set up eth4 as a management port for the switch. It gets vlan 10,20, (and maybe 99?). This kind of works, again, I haven't been locked out of LuCi yet at least.
(4) split wan. I want 1 wan assigned to the external IP of the router (42.1.2.3) and routing traffic from vlan 10 to the internet. wan2 should be a wireguard vpn tunnel and vlan 20 goes out through the vpn. I can get one or the other to work but not both at the same time.
I'm sorry, I can usually figure technical things out by reading docs, trying things, tutorials, ai, etc. this is breaking my brain and I've become obsessed. I can't focus on other work, I just keep banging my head against this wall trying to figure this out. Help?
I'm about to start on the 4th attempt, again from a fresh openwrt install. wish me luck, I already feel defeat leering at me from the near future. ANY help is DEEPLY appreciated