[FS#3879] Incorrect switch config for TP-Link Archer C2 AC750
OpenWrt Bugs
openwrt-bugs at lists.openwrt.org
Mon Jun 14 22:58:36 PDT 2021
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - cybermaus (cybermaus)
Attached to Project - OpenWrt/LEDE Project
Summary - Incorrect switch config for TP-Link Archer C2 AC750
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - openwrt-21.02
Due in Version - Undecided
Due Date - Undecided
Details - Model TP-Link Archer C2 v1
Architecture MediaTek MT7620A ver:2 eco:5
Firmware Version OpenWrt 21.02.0-rc2 r16122-c2139eef27 / LuCI openwrt-21.02 branch git-21.148.49484-14511e5
The Archer C2 has a little unusual switch setup, in that the SoC itself only has an unused 100Mb switch and instead there is an extra RTL8367B chip. We can only assume TP-Link wanted to make this a 1Gb device, despite using a 100Mb SoC. (and indeed, the 1Gb ports is why I got this particular cheap device)
OpenWRT 19.07.7 handled this beautifully, as it simply did not show the switch0, neither in UCI nor in Luci, though the RTL8367B chip is labeled switch1 in stead of the more usual switch0
When clean upgrading (so removing and rebuilding all config) to 21.02.0-rc2 I noticed that the internal switch was now populated in UCI and displayed in Luci
The Archer C2 does work, switch1 is configured as expected, but the presence of switch0 seems to cause Luci to display an error "Switch switch0 has an unknown topology - the VLAN settings might not be accurate." and further prevents Luci from updating switch1 settings.
So the presence of switch0 in UCI is confusing and unneeded, and also prevents Luci from working.
Manually removing the switch0 section from /etc/config/network makes it all work again.
/etc/config/network as generated on 19.07.7 (only the switch section)
config switch
option name 'switch1'
option reset '1'
option enable_vlan '1'
option max_length '3'
config switch_vlan
option device 'switch1'
option vlan '1'
option ports '6t 1 2 3 4'
config switch_vlan
option device 'switch1'
option vlan '2'
option ports '6t 0'
/etc/config/network as generated on 21.02.0-rc2 (only the switch section)
config switch
option name 'switch0'
option reset '1'
option enable_vlan '0'
config switch
option name 'switch1'
option reset '1'
option enable_vlan '1'
option enable_vlan4k '1'
option max_length '3'
config switch_vlan
option device 'switch1'
option vlan '1'
option ports '6t 1 2 3 4'
config switch_vlan
option device 'switch1'
option vlan '2'
option ports '6t 0'
so to restate, after manually removing the extra switch0 from rc2, it all was normal again
More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3879
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the openwrt-bugs
mailing list