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#3949 - netifd commit 2801fe6132c4e2e364e2d5a304594185351b501b to openwrt 21.02 breaks Linksys switch #8948

Closed
openwrt-bot opened this issue Jul 26, 2021 · 7 comments
Labels

Comments

@openwrt-bot
Copy link

ezplanet:

Supply the following if possible:

  • Device problem occurs on: Linksys WRT32x and Linksys EA 8300

  • Software versions of OpenWrt/LEDE release, packages, etc:
    SINCE:
    OpenWrt 21.02-SNAPSHOT r16248-089efd61e9 / LuCI openwrt-21.02 branch git-21.196.35996-de8bc46

  • Steps to reproduce
    Just install this latest 21.02 build and boot, the router's switch will connect only port 1, all other ports remain disconnected (reported as no link) despite devices being plugged in.

This is a blocking defect.

OpenWRT 21.02 netifd commit 2801fe6

netifd: update to the latest version
85f01c44a950 bridge: check bridge port vlan membership on link-up events
17e453bd68b4 wireless: add back regular virtual interfaces on hotplug-add events as well

Signed-off-by: Felix Fietkau nbd@nbd.name

Breaks switch functionality on Linksys WRT 32x and Linksys EA 8300

@openwrt-bot
Copy link
Author

ivanich:

Got the same problem but with edgerouter-x and gl.inet mt-1300 - both mt7621

@openwrt-bot
Copy link
Author

ezplanet:

After upgrading to OpenWrt 21.02-SNAPSHOT r16248-089efd61e9 / LuCI openwrt-21.02 branch git-21.196.35996-de8bc46

@openwrt-bot
Copy link
Author

ezplanet:

Before upgrading (r16247)

@openwrt-bot
Copy link
Author

ezplanet:

Bridge configuration:

config device
option name 'br-lan'
option type 'bridge'
option mtu '1492'
option ipv6 '0'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'

@openwrt-bot
Copy link
Author

ezplanet:

I resolved it by changing the switch configuration as follows:

config device
option type 'bridge'
option name 'switch0'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
option mtu '1492'

config bridge-vlan
option device 'switch0'
option vlan '1'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'

config interface 'lan'
option device 'switch0.1'
[...]

I have taken this from an openwrt forum thread. It would be nice if we had a migration path and the new switch configuration properly documented since so far it has been hacks and guesswork

@openwrt-bot
Copy link
Author

ezplanet:

A similar configuration to the above (for WRT32x) works also for an EA8300, however due to the latter having a legacy switch, the bridge eth0+eth1 (necessary to use all 5 ethernet ports in the same LAN in a repeater configuration), is quite cumbersome as I had to create a switch over an existing switch as follows to make it work:

config device
option type 'bridge'
option name 'switch1'
list ports 'eth0'
list ports 'eth1'
option mtu '1492'

config bridge-vlan
option device 'switch1'
option vlan '1'
list ports 'eth0'
list ports 'eth1'

config interface 'lan'
option device 'switch1.1'
option proto 'static'
option ipaddr 'x.x.x.x'
[...]

@openwrt-bot
Copy link
Author

nbd:

Fixed in the latest version

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