[IPQ6018] How do I assign Guest wifi to a specific vlan on vendor SDK?

How do I assign Guest wifi to a specific vlan?

Here is my interface information:

~# brctl show
bridge name     bridge id               STP enabled     interfaces
br-lan          7fff.aabbccddee12       no              eth0
                                                        eth1
                                                        eth2
                                                        eth3
                                                        ath0
                                                        ath1


~# bridge vlan show
port    vlan ids
eth0     1 PVID Egress Untagged
         5
eth1     1 PVID Egress Untagged
         5
eth2     1 PVID Egress Untagged
         5
eth3     1 PVID Egress Untagged
         5
eth4
br-lan   1 PVID Egress Untagged
         5
ath0     1 Egress Untagged
         5 PVID Egress Untagged
ath1     1 Egress Untagged
         5 PVID Egress Untagged

When the pvid of ath1 is set to 1, the connection is successful; when the pvid of ath1 is set to 5, the phone reports a password error.

Assign it to the guest zone as explained here: https://openwrt.org/docs/guide-user/network/dsa/converting-to-dsa#wireless

That said: Are you sure you have a vanilla OpenWrt install? An athx interface name looks suspicious.

1 Like

I don't think this is a DSA issue either, eth1-4 typically aren't DSA interfaces.

1 Like

Thanks for the suggestion. I realized that DSA is better than swconfig, and am actively learning and moving to DSA. It's my own firmware built on ipq6018. I'm trying to change it to DSA, and it's almost working.

But as this illustrates, https://openwrt.org/docs/guide-user/network/dsa/converting-to-dsa#wireless
the wireless interface works fine when it belongs to the default vlan, but if I want the wireless interface (wlan0 or wlan1-1) to belong to another vlan (e.g. vlan 5), as of now, I haven't found the right way to configure it?

Can you give suggestions in any device you have, thanks!