For a long time, I want to set up my network in a more proper way but I couldn’t.
VLAN was too complicated for me. All I know is I can split a physical network into subnetworks.
After I read Computer Networking: a Top Down Approach I thought I should try again.
I’m running a OpenWRT router that connect to my ISP via PPPoE (WAN), my LAN is a bridge that run DHCP..
It’s very simple and suitable for home network but I want something more.
I search for OpenWrt+VLAN on Google but no luck, every tutorial is hard to understand.
Then search for OPNsense+VLAN and found that.
OPNsense docs are more clear and easier. As always Linux docs is a mess, FreeBSD is definitely better.
So I create VLANs, tagged them to a trunk port, create a interface that will run dhcp.
Create a fireware zone, set the rule.
I don’t have any managed switch so I connect my laptop (Windows 11) directly to the trunk port and tag VLAN on Windows 11.
Everything works.
I’ll look more into it when I have freetime. That’s for now.
Ref: