I wanted to configure my AP for VLAN tagging and have successfully done this. However I had to do this by getting VLANs from the "lan" interface. "eth0" doesn't get an IP address from my DHCP server (hosted elsewhere in the network). Is this expected behavior? If it is, what is the point of eth0 on this device?
Here is my working network file. I have the "lan" interface disabled but I can't delete it. If I delete it, the rest of the VLAN devices stop working.
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan'
config interface 'lan'
option device 'br-lan'
option proto 'dhcp'
option auto '0'
config device
option type '8021q'
option ifname 'lan'
option vid '2'
option name 'lan.2'
config device
option type '8021q'
option ifname 'lan'
option vid '3'
option name 'lan.3'
config device
option type '8021q'
option ifname 'lan'
option vid '4'
option name 'lan.4'
config device
option type 'bridge'
option name 'br-vlan2'
list ports 'lan.2'
config device
option type 'bridge'
option name 'br-vlan3'
list ports 'lan.3'
config device
option type 'bridge'
option name 'br-vlan4'
list ports 'lan.4'
config interface 'home'
option proto 'dhcp'
option device 'br-vlan2'
config interface 'iot'
option proto 'dhcp'
option device 'br-vlan3'
config interface 'guest'
option proto 'dhcp'
option device 'br-vlan4'
config device
option type '8021q'
option ifname 'lan'
option vid '6'
option name 'lan.6'
config interface 'Management'
option proto 'dhcp'
option device 'lan.6'