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/02 16:36] – add detailed information regarding TFTP issues on some devices hirnpfirsichtoh: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 184: Line 184:
  
 The C2 uses a external GBit switch, connected by MDIO bus. Network traffic to the CPU is passed through the internal switch of the MT7620A SoC: The C2 uses a external GBit switch, connected by MDIO bus. Network traffic to the CPU is passed through the internal switch of the MT7620A SoC:
-While the RTL8367R does support vid up to 4096, the driver for OpenWRT only allows vid 1-31, with 1,2 already used for OpenWRT itself. 
-Since this is driver limited, this is likely the case for all RTL8367R(B) based devices. 
  
 <code>             +---------------+ <code>             +---------------+
Line 208: Line 206:
  WAN   LAN1  LAN2  LAN3  LAN4</code>  WAN   LAN1  LAN2  LAN3  LAN4</code>
  
 +
 +
 +<WRAP center round info 60%>
 +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 //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>
 ===== UBoot ====== ===== UBoot ======
  
  • Last modified: 2024/02/13 16:08
  • by jow