How can I get a DSA port configuration in my router?

I have a router (Fritz!box 4040) that has been upgraded to OpenWRT 21.02.

This version of OpenWRT is supposed to use DSA arquitecture for accessing lan ports.

But in my router you get yet the old way of doing things, with an eth0 devices that groups all ports instead of having each port as a separate devices (lan1, lan2, lan3, lan4).

I would like to create VLANs in the modern way, creating a bridge were you can add the vlans and then assigning the br0.vlanID to the network interface, as I do in my other router (that is running a snapshot OpenWRT version).

As said, 21 version is supposed to be based in DSA, but don't know how to eliminate the switch and vitual switch and convert it to independent ports grouped in a bridge.

When I just eliminate the switch device definition and redifine the bridge in /etc/config/network, it does not work, the router ports turn innacesible.

config device
        option type 'bridge'
        option name 'br-lan'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'
        option igmp_snooping '1'

May be it is not possible for certain models to migrate to the new DSA arquitecture.

The problem is that the VLANs with the swich don't work as expected, I would like to create an exact copy of the configuration in the other router to see it works.

Not every targets have DSA implemented yet. So yours (and many others) still have swconfig.

OK, thank you, so it is not possible to configure it in DSA.

I will have to investigate how to configure the VLANs in switch mode.
I am having troubles with that.

I could finally get vlans to work, using the switch mode.
The problems I was experimenting had nothing to do with using DSA or switch arquitecture.
It seems these kind of routers with Atheros IPQ4018 have some problems and limitations with vlans 1 and 2 thatbare hardcoded to internal use. Not the vlan id, but the entry table position where you assign the vlan.
Luci does not let you control that and uses that positions even if you use different vlanid, something I did not fully understand.

When I changed that and use other entries, i
All worked.
It took several days and lots of work trying different things thinking that I was doing something wrong, when it was OK from the beginning.
Thanks to several posts here in this forum and the help of different people I could get it to work.

At least yet, DSA may be implemented in a future release.

Yes I remember reading that VLANs are documented for having issues. I didn't push further investigating as I don't need VLANs.

EDIT : ... VLANs are documented for having issue with target IPQ40xx. I have a router with an IPQ4019 and read about this issue, without investigating.

1 Like

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