FRITZ!Box 4040 VLAN on WiFi not working

Hi,
I've set up my FRITZ!Box 4040 with VLAN over WAN. This is working like a charm. :slight_smile: But when I connect a VLAN interface to a WiFi adapter VLAN is not working over WiFi. I can connect to WiFi but I don't receive any IP addresse via DHCP. If I try a cable connection on the same VLAN IP address is getting recevied.

Any ideas why it's not working via WiFi connection?

Hi,
Please post your network and wireless settings here, in preformatted text (</> button)

uci show network
uci show wireless

Obscure any sensitive information before posting

uci show network

network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fda7:50f3:52cd::/48'
network.vlan10=interface
network.vlan10.proto='static'
network.vlan10.ifname='eth0.10'
network.vlan10.netmask='255.255.255.0'
network.vlan10.gateway='10.0.10.1'
network.vlan10.ipaddr='10.0.10.2'
network.vlan10.dns='10.0.10.1'
network.vlan10.type='bridge'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='2 3 0'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='10'
network.@switch_vlan[1].vid='10'
network.@switch_vlan[1].ports='0t 1 4t 5t'

uci show wireless

wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.hwmode='11g'
wireless.radio0.path='platform/soc/a000000.wifi'
wireless.radio0.country='DE'
wireless.radio0.htmode='HT40'
wireless.radio0.channel='auto'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.mode='ap'
wireless.default_radio0.network='lan vlan10'
wireless.default_radio0.key='xxx'
wireless.default_radio0.ssid='xxx'
wireless.default_radio0.encryption='psk2'
wireless.radio1=wifi-device
wireless.radio1.type='mac80211'
wireless.radio1.hwmode='11a'
wireless.radio1.path='platform/soc/a800000.wifi'
wireless.radio1.htmode='VHT80'
wireless.radio1.country='DE'
wireless.radio1.channel='auto'
wireless.default_radio1=wifi-iface
wireless.default_radio1.device='radio1'
wireless.default_radio1.mode='ap'
wireless.default_radio1.network='lan vlan10'
wireless.default_radio1.key='xxx'
wireless.default_radio1.ssid='xxx'
wireless.default_radio1.encryption='psk2'

Im not sure why "lan" is listed there.

wireless.default_radio0.network='lan vlan10'

Port 5 is WAN port and you are trying to bridge WiFi to WAN, is that correct?

VLAN tagging over WiFi is not supported.

For a small number of VLANs, use one SSID per VLAN, and for a larger number of VLANs you should use a tunnel.

Update: Apparently, you only want to transmit a single VLAN over WiFi untagged, which is fine.

1 Like

I'm getting VLAN over WAN and share it on ethernet ports. That's working without any issues. But when I'm adding WiFi to one of the VLANs I don't get any connection.

But the funny part is if I replace WAN port by another port VLAN is working on WiFi. It really seems that's related to WAN port.

You can connect a wifi-iface only to a single network; lan should be removed here.

Assuming 0 is the CPU port, it should be tagged: 0t 2 3
I understand VLAN ID 1 is not part of your question, but mixing tagged and untagged VLANs on the same switch port may not be supported.

Can you ping 10.0.10.2 when connected to the wifi?

Note that VLAN configuration on IPQ40xx devices comes with a few restrictions.
I do not own such a device and cannot say more, please search the forum for details.

Thanks for your feedback.

I made port 0 as tagged like 0t. After that I got an IP but not one from my VLAN range, I got it from VID 1.

Really strange but it really looks like that VLAN on WAN is tricky.

Did you remove the reference to lan from the wireless interfaces?

The results should be

wireless.default_radio0.network='vlan10'

and

wireless.default_radio1.network='vlan10'

Yes, I did but this doesn't help.