Open nicholasvmoore opened 3 months ago
To setup VLANs in OpenWRT you need to follow these steps. High level you will enable VLAN filtering -> Create Devices -> Create Interfaces for those Devices.
u:*
or Egress untagged & Primary VLAN ID checked.t
.Next you will need to create VLAN devices for each VLAN.
Next you will need to create an Interface for the VLAN so you can assign an IP and setup DHCP
Setting up DHCP on this router was difficult due to the UDP checksumming being disabled on virtual interfaces. DHCP clients like dhcpcd reject UDP packets with bad or missing checksums. So I installed iptables-mod-checksum and added the following iptables rule to the DHCP host:
Custom Firewall Rule
iptables -A POSTROUTING -t mangle -p udp --dport 68 -j CHECKSUM --checksum-fill
Reference:
Configuring VLANs on OpenWRT is not the easiest and their documentation kind of sucks. I have however found an article that does describe the missing pieces for getting networking to work
Referenced Articles