hello again community, i hope well, i write this topic in order to wipe out some doubts....how the default vlans work? what happend if i deleted them in order to create new ones?. thanks a lot.
greeteings for all.
hello again community, i hope well, i write this topic in order to wipe out some doubts....how the default vlans work? what happend if i deleted them in order to create new ones?. thanks a lot.
greeteings for all.
Depends if you are using a device that is DSA or swconfig.
Generally fine, as long as you create new ones with the correct syntax for both the VLANs themselves and the network interfaces to which they are attached (as well as firewall rules if you're not using the standard lan/wan interfaces and firewall rule structures).
The problem is that your question is rather vague... It might be best for us to simply review your configuration:
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
cat /etc/config/dhcp
cat /etc/config/firewall
thanks for replying, my question was informative i`m planning to segment mi network and i needed to know how vlans works on openwrt, for example if i want to create new ones,i have to keep de exiting ones? or i can delete them in order to create the new ones?
Ok... in that case, it really depends on your goals (and of course if your device is using DSA or swconfig).
If you are planning to use the router with the standard wan/lan context and then add additional networks, there's really no need or reason to change the current default configuration unless there is something specific that requires it (I.e. VLAN ID required on the wan, or interfacing with some other equipment that has the VLANs already set).
To be clear, yes, you can delete them and create new ones. But to what end?? Can you describe your goals and post the output of the first 2 lines of what I requested earlier? (ubus call system board
and cat /etc/config/network
)
You can remove them.
But a VLAN is only one part of the history, the L2 part to be precise. Unless you are setting up a switch or dumb access point, only a VLAN will not do much.
On L3 level you also need a interface and firewall zone connection to your VLAN to make anything meaningful happen on your VLAN.
And usually (but optional) you also need a dhcp server setup for it to work.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.