The Fritz!Box 7530 has no WAN port. So I just wanted to configure the first port of the switch as wan port. But the dhcp just does not work on a vlan interface. You can easily put your own network with your own DHCP server for the clients on a VLAN. Just DHCP client is not working.
I tried
- master build with 4.19 kernel
- master build with 5.4 kernel
- 19.07.4
The network config looks like this
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '2 3 4 0t'
config switch_vlan
option device 'switch0'
option vlan '40'
option vid '40'
option ports '1 0t'