Aktualny stan (coś nakombinowałem i mam problem z połączeniem się z siecią IOT, tak jak by nie przydzielał mi adresu IP). Dobrze kombinuje ?
Router główny:
Network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.8.1'
config interface 'IOT'
option device 'eth0.20'
option proto 'static'
option ipaddr '192.168.20.1'
option netmask '255.255.255.0'
config switch_vlan
option device 'switch0'
option vlan '20'
option ports 'lan2t lan3t'
Wireless
config wifi-iface 'wifinet4'
option device 'radio0'
option mode 'ap'
option ssid 'IoT'
option encryption 'psk2+ccmp'
option ieee80211r '1'
option mobility_domain '1f9f'
option ft_over_ds '0'
option ft_psk_generate_local '1'
option network 'IOT'
option key ''
Firewall
config zone
option name 'IOTZone'
option output 'ACCEPT'
option forward 'REJECT'
list network 'IOT'
option input 'REJECT'
config forwarding
option src 'lan'
option dest 'IOTZone'
config forwarding
option src 'IOTZone'
option dest 'wan'
W przypadku pierwszego DummyAP zrobiłem:
Network:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
option ula_prefix 'fd46:e650:86be::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'wan'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.8.2'
option gateway '192.168.8.1'
list dns '192.168.8.1'
config interface 'IOT'
option device 'eth0.20'
option proto 'static'
option ipaddr '192.168.20.2'
option netmask '255.255.255.0'
option type 'bridge'
Wireless
config wifi-iface 'wifinet3'
option device 'radio0'
option mode 'ap'
option ssid 'IoT'
option encryption 'psk2+ccmp'
option key ''
option ieee80211r '1'
option mobility_domain '1f9f'
option ft_over_ds '1'
option ft_psk_generate_local '1'
option network 'IOT'