Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3776 - Switch bridge VLANs are not configured correctly with DSA #7000

Open
openwrt-bot opened this issue May 3, 2021 · 2 comments
Open

FS#3776 - Switch bridge VLANs are not configured correctly with DSA #7000

openwrt-bot opened this issue May 3, 2021 · 2 comments
Labels

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented May 3, 2021

mar-kolya:

Device: Ubiquiti EdgeRouter X (MT7621)
Version: latest master from github and latest packages.

With this network config (only relevant parts shown:

config interface 'test' option proto 'static' option ifname 'eth4' option ipaddr '192.168.4.1' option netmask '255.255.255.0'

config interface 'switch'
option proto 'static'
option type 'bridge'
option ifname 'eth1 eth2 eth3'

config bridge-vlan
option device 'br-switch'
list ports 'eth1:t'
list ports 'eth2:t'
list ports 'eth3:t'
option vlan '9'

I get this bridge config after reboot:

# bridge vlan port vlan-id eth1 1 PVID Egress Untagged eth2 1 PVID Egress Untagged eth3 1 PVID Egress Untagged br-switch 1 PVID Egress Untagged

And if I reload network configuration I get this:

root@erx-router:~# ubus call network reload root@erx-router:~# bridge vl port vlan-id eth1 1 PVID Egress Untagged 9 eth2 1 PVID Egress Untagged 9 eth3 1 PVID Egress Untagged 9 br-switch 1 PVID Egress Untagged 9

Both result are wrong and do not work.

I did a small debugging session and it looks like bridge_state.has_vlans is always false - but I'm not exactly sure this is relevant.

Unfortunately this bugs make impossible to run any VLAN tagged ports on this device with any version of OpenWrt. Given that current releases are using DSA for this platform this is a regression from non-DSA setup.

I'll be happy to provide any additional information.
I've tried to debug it myself by could not really find any obvious problems. So any ideas for this would be welcome too.

Thanks!

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 3, 2021

anomeome:

[[https://forum.openwrt.org/t/kernel-5-4-96-broke-untagged-dsa-vlans-on-my-mvebu-routers/88361/17|syntax]] issue?

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented May 24, 2021

mar-kolya:

Yeah... that configuration process seems to be quite easy to mess up.

Thanks for the pointer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant