I am trying to move away IoT wireless network from router to access point. The target setup should be like that:
--- ---
|RTR|=====802.1q=====|A P|----< IoT WLAN
--- ---
|
prod LAN/WLAN
DHCP server for both IoT and prod is hosted on RTR. RTR and AP are R7800 (although that shouldn't matter).
As a result DHCP works fine for prod but not for IoT. When IoT WLAN is being delivered from RTR DHCP works fine. After move of IoT WLAN however gadgets do connect but they are unable to obtain IP configuration (IPv4).
However when I configure AP interface for IoT VLAN as DHCP client it would get proper IP address.
I have no idea why it is not working for IoT devices in that case.
Router config:
/cut/
config interface 'prod'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '10.10.10.1'
option metric '0'
option ifname 'eth1.1 tap0'
option delegate '0'
/cut/
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 description 'PROD-VLAN'
option ports '6t 4 3t 2 1'
/cut/
config interface 'IoT'
option proto 'static'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
option ifname 'eth1.3'
option type 'bridge'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option description 'IoT-VLAN'
option ports '6t 3t'
and for access point:
config interface 'lan'
option type 'bridge'
option proto 'dhcp'
option hostname 'ap'
option ifname 'eth1.1'
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 description 'PROD-VLAN'
option ports '6t 4 3t 2 1 5'
/cut/
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option description 'IoT-VLAN'
option ports '0t 3t'
config interface 'IoT'
option type 'bridge'
option ifname 'radio1.network2 eth0.3'
option proto 'dhcp'