D-Link DAP 2160: vlans and wifi ... (newbie)

I currently have the following configuration and things look good ...
WIFI in VLAN110, gets DHCP leases from the pfsense ... nice.

I assume I could remove some unused ports from the "option ports" lines, but as far as I understand they don't hurt .. so anyway ..

Thanks so far.

# cat /etc/config/network 

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd80:c43b:0a8e::/48'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0'
        option proto 'dhcp'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '20'
        option vid '20'
        option ports '0t 1 2 3 5t'

config switch_vlan
        option device 'switch0'
        option vlan '110'
        option vid '110'
        option ports '0t 4 5t'

config switch_vlan
        option device 'switch0'
        option vlan '111'
        option vid '111'
        option ports '0t 4 5t'

config interface 'vlan20'
        option ifname 'eth0.20'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.20.61'
        option netmask '255.255.255.0'
        option gateway '192.168.20.1'
        option stp '1'

config interface 'vlan110'
        option type 'bridge'
        option ifname 'eth0.110'
        option stp '1'
        option proto 'none'

config interface 'vlan111'
        option type 'bridge'
        option proto 'none'
        option ifname 'eth0.111'
        option stp '1'
1 Like