Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:tp-link:archer_c2_ac750 [2022/06/26 16:26] – [Switch] Revert the earlier note about the switch chip driver supposedly imposing a limitation on VLAN IDs. znarktoh:tp-link:archer_c2_ac750 [2022/06/29 14:20] – [Switch] Add more details about using VLAN IDs above 31 in the outer switch configuration znark
Line 211: Line 211:
 Earlier versions of this article suggested “the driver for OpenWrt” (for the RTL8367R(B) switch chip) would have limited the range of usable 802.1q VLAN IDs to 1 – 31. Earlier versions of this article suggested “the driver for OpenWrt” (for the RTL8367R(B) switch chip) would have limited the range of usable 802.1q VLAN IDs to 1 – 31.
  
-While this may have been true for some earlier builds (could not confirm immediately), OpenWrt 21.02.3 (at least) no longer seems to suffer from such limit.+While this may have been true for some earlier builds (could not confirm immediately), OpenWrt 21.02.3 (at least) no longer seems to suffer from such //hard// limit. There is still a //soft// limit which, for some reason, makes VLAN IDs above 31 unusable and non-working by default, but you can override this limit and use the full range of VLAN IDs by setting the ''enable_vlan4k'' option to ''1'' in the ''switch1'' section of the ''/etc/config/network'' configuration file, as follows: 
 + 
 +<code> 
 +config switch 
 +        option name 'switch1' 
 +        option reset '1' 
 +        option enable_vlan '1' 
 +        option enable_vlan4k '1' 
 +</code> 
 + 
 +If you edit the switch VLAN configuration in LuCI, it may add the ''enable_vlan4k'' configuration directive automatically for you. But for manual edits, you need to do it yourself to be able to get the higher-numbered VLAN IDs work. 
 +</WRAP> 
 + 
 +<WRAP center round important 60%> 
 +OpenWrt releases 21.02.0 — 21.02.3 (the latest official release as of this writing) appear to have a regression in their default network configuration which makes the inner (MT7620A) switch visible in LuCI as ''switch0'' for no real purpose, with a pseudo VLAN configuration that makes no sense. 
 + 
 +The router works as it should but configuring VLANs through LuCI may not work as expected and only the outer switch (''switch1'', RTL8367B) configuration is relevant. A bug report has been filed on this by the ID [[https://github.com/openwrt/openwrt/issues/8871|FS#3879 - Incorrect switch config for TP-Link Archer C2 AC750 #8871]]. 
 + 
 +Until fixed in later releases, you can work around the issue by removing the extraneous ''switch0'' configuration from the file ''/etc/config/network''. This is best accomplished by issuing the following commands in the command line: 
 + 
 +<code> 
 +uci delete network.@switch[0] 
 +uci commit 
 +reboot 
 +</code>
 </WRAP> </WRAP>
 ===== UBoot ====== ===== UBoot ======
  • Last modified: 2024/02/13 16:08
  • by jow