C7 as a dumb ap with VLANS connected to lvl 3 switch

i had a long discussion on IRC almost ended on a paralisis.

I knew DSA isnt possibly on this device.

I need to know if on my archer c7 im doing correctly the VLANs, i have them working but not sure if i did it on the correct way.

1 - go to switch and add the vlans ids and tag on eth0 CPU and lan1
2- add a bridge device to the vlan pointing to the vlan id.
3 - made a network interface using the bridged device for that vlan.
4- setup the wireless to that vlan and use the network vlan interface to connect.

if that is correct i want to do it using UCI commands to automate the process. I have 20 of them.

Correct, the C7 uses the ath79 target which has not transitioned to DSA.

Yes, this is generally correct. We'd have to see one of your resulting configs to confirm it, but it sounds like you've got all the right steps.

One important comment:

The network interface should be unmanaged (proto 'none') for all of the VLANs except the one that is used to manage the C7 itself.

Thx very much for your fast response dude i feel i can sleep right now.
I was feeling reallly dumb. More dumb that the C7.
3. yes is exactly what i have.

The resulting config is this:

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 ula_prefix 'fd7f:3059:a5ec::/48'
        option packet_steering '1'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth0.1'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '10.20.2.25'
        option netmask '255.255.0.0'
        option ip6assign '60'

config device
        option name 'eth0.2'
        option macaddr 'c0:c9:e3:5e:92:62'

config interface 'wan'
        option device 'eth0.2'
        option proto 'dhcp'

config interface 'wan6'
        option device 'eth0.2'
        option proto 'dhcpv6'

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

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

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '0t 2t'
        option vid '1002'

config interface 'vlan1002'
        option proto 'none'
        option device 'br1002'
        option type 'bridge'

config device
        option type 'bridge'
        option name 'br1002'
        list ports 'eth0.1002'

config switch_vlan
        option device 'switch0'
        option vlan '3'
        option ports '0t 2t'
        option vid '6'

Generally looks good except for one detail here:

The network interface should not have the bridge line. This can break the interface in certain circumstances. Remove it so that it looks like this:

config interface 'vlan1002'
        option proto 'none'
        option device 'br1002'

Ok will remove it on monday and reply if still working.
And end this doing a UCI script for the other C7s.
I have full love on OPEN WRT.

Thx mate.

It will still work. In fact, it's more likely to break with that line in there (I documented this a few years ago after some detailed experimentation).

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

OK i hope thx you very much.
I will mark it as solved on monday.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.