I have doubts about if the following setup is possible:
Raspberry Pi v4 as router
TP-Link Archer C7 v5 as managed switch + AP
PPPoE connection with VLAN tag
I have seen many tutorials using VLANs and managed switchs to make a RPi with a single ethernet port as a router, but I would like to know if it is possible to use the TP-Link as the managed switch and also as acces point.
I understand that it is possible, but I can't see any similar setup anywhere.
The TP-Link is actually my main router, but my ISP has upgraded my connection to 600/600 and would be nice to managed full speed with SQM (my understanding is that the RPi can managed that)
RPI is best option for SQM and pppoe, C7 will not cut it. It will be fine with tag and wifi up to like 400Mbps forwarding capacity. Not the max speed, but comes free as long as it is around.
This is possible to do. I'm not an expert on SQM related topics, but I can absolutely help with the VLAN stuff.
Since the TP-Link is currently the main router, let's use that to begin the config migration.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Your current OpenWrt version is sufficiently old that when you upgrade to 23.05, you'll need to reset to defaults. This is fine in general, but it means that we need to sequence things properly so that you can minimize the number of steps required to get back online and thus also reduce your time offline.
Prerequsites:
On the Pi, starting from a default 23.05.4 installation:
configure wifi as a first step and then connect to wifi. This will allow you to test the internet connection without the pre-requisite of the main router connection. We'll turn it off later. Use a different SSID so that you know that you are connected to the Pi and not the other C7v5.
Add a wan interface like this (this is copied from your C7v5, obviously put in your username and password):
Disconnect the cable from your C7 wan port and plug it into your Pi. If all is good, you should be able to connect to the internet via the wifi connection to the Pi (don't worry about performance -- we're just making sure the wan functions).
If this works as expected, let's move on to the main router:
(Don't actually do anything with the main router until the pi works). If you have questions about how to achieve any of these things, let me know so I can further describe the changes.
Upgrade your device to 23.05.4, do not keep settings during the upgrade. This will put you at the default configuration on your C7v5
Configure your wifi (country code, SSID, encryption type, passphrase, and enable wifi).
Change the IP address of the lan interface to 192.168.1.2
Turn off the DHCP server on lan (ignore interface) and remove the IPv6 lines from the DHCP server.
delete the wan and wan6 interfaces entirely
Adjust the switch configuration so that we send VLAN 100 tagged over a trunk to the Pi. I'm not exactly sure what the logical-to-physical port mapping is, but I'm going to guess that logical port 2 is physical port 1 (this could be wrong... it's just a guess).
Connect a cable between port 1 of the C7v5 (if I got the mapping correct) and the Pi.
Connect your internet connection to the wan port of the C7v5.
Check connectivity to the internet. If it doesn't work, we might have the wrong physical port -- try the others one at a time.
Once everything is working with the internet connection, you should be able to use your C7v5's wifi and get normal connectivity for your network. At this point you can disable the Pi's wifi and you're done.
Following your steps, it worked the first time. Nevertheless, the C7v5 doesn't have internet connectivity, how can I achieve it if it's possible ?
I own also a Xiaomi Router 4A Gigabit Version, which looks like it has better wifi performance on 5G band than the C7v5 so I'm thinking use it instead of C7v5. I guess that the configuration regarding the VLANs should be pretty similar, right? Having in mind that the Xiaomi doesn't have "switch" as far I see...