This is generally quite easy to do, but the specific method depends on you device and configuration. Let’s take a look and then we can guide you through the process.
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:
doesn't eth0.2 represent second LAN port? If that's the case, then I don't want to touch that port because it's already in use, should I go with eth0.3 instead?
I have added this, but all the ports still connect to the main network, the router has only 3 ports, 2 of them are already in use LAN 3 is the only one available.
Run swconfig dev switch0 show to find out which switch number corresponds to the physical port you want to use. Check the switch status both with and without a live cable plugged in to the port to see which one changes.
Then add that port to switch-vlan number 2. eth0.2 means vlan 2 going into the switch, which physical port(s) it is depends on the switch vlan configuration.
this is the solution! thank you so much, I only had to disable the traffic rule that was blocking the guest network from using LAN ports and I also switched off the wan port on eth0.2, shortly here is how the switch looks now: