I have a tplink archer c20v5, and Im looking to create vlans for my network.
What are the steps I need to follow to create a vlan.
When ever I use switch tab in network and tag my lan1 interface I loose control to my network when connected to lan.
Lan network
which will have lan and wifi radio 1
Can access a ll network
Guest network
Which will have wifi radio 0
Can access only internet
No internet network
Which will have the vlan device with vlan id of 10
Will have no no access and internet
vm network
Which will have the vlan device with vlan id of 11
Can access internet and lan
I have configured my router to have lan and guest network with appropriate firewall rules, however when configuring vlan im losing access to my lan when connected to lan and internet does not work for both lan and wifi.
VLANs are only necessary if you will be setting up multiple networks on a single Ethernet port - this would be for connections to downstream managed switches or vlan aware APs.
Is that your intent?
What ports will each network be connected to?
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:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
You have a number of things wrong here - you are mixing dsa and swconfig syntax which is invalid. Fastest path is to reset to defaults and then post the config as well as your indented port mapping.
Travel. I can easily advise about the small things for implementing it correctly in the few minutes I will have between now and then. But a few days will be needed for the next time I can sit down at a computer to do a deep dive about what is wrong with the current config.
I would like to get the deep dive information about whats wrong with my configuration.
Its okay I can wait for you to give me detailed information, I need to understand whats going wrong.
Im planning to implement openwrt in our office network, so for me to do that I need to be sure as hell before I propose my plan.
Just to be clear, your configuration is in a state that's really best factory-reset and started over again. It's going to be difficult to dissect what's expected, what's right and what's wrong, with a high potential to miss things.
I think mt7628 is still using swconfig (but the generated /etc/config/network after the factory reset will confirm that - or not), so following swconfig specific advice (and not DSA/ bridge-vlan) should be the way to go. Different than DSA, but still a well-known (and documented) approach. The wild mixture of different approaches you have in your configuration now, is what makes it unwieldy (and invalid, in its current form).
I performed factory reset and below are fresh configuration of my router.
I want my vlans to be created on port eth0.1 as this is the physical port on my router where my switch is connected and then the switch is connected to my desktop and my hypervisor.
Vlans to created
What physical port is being used for the trunk? Or what is the port mapping of your main lan and your two VLANs? (As labeled on the back of the device)