I've got a newbie question: could anyone explain me why to use 'vlan' AND 'vid'
options when configuring 'switch_vlan'?
I've read https://lede-project.org/docs/user-guide/switch_configuration
and I thought I get the difference between hardware VLAN and software VLAN.
As I understand it, the former is for assigning VLANs on programmable switch,
the latter for creating VLANs on one physical port (for example single NIC device).
config 'switch_vlan' 'eth0_1' option 'device' 'eth0' option 'vlan' '1' option 'ports' '0 1 3t 5t'
config device 'eth0.106' option type '8021q' option name 'eth0.106' option ifname 'eth0' option vid '106'
Looking at some configs in the Internet, I've seen quite a lot advice to assign
'vid' option except
'vlan' similar to this:
config 'switch_vlan' 'eth0_1' option 'device' 'eth0' option 'vlan' '1' option 'ports' '1 5t' option 'vid' '1'
option 'vid' '100'
What's the point and use case of such an option? When I create on my programmable
switch VLAN with
option 'vlan' '1' it is assigned VLAN ID 1 without adding
option 'vid' '1' anyways. When I add
option 'vid' '100' and
option 'vlan' '1' there are then two interfaces displayed in LuCi: eth0.1 and eth0.100 but it seems that only eth0.1 is used.
Is it even proper to set these two options in
I think one could still set VLANs this way:
config 'switch_vlan' 'eth0_1' option 'device' 'eth0' option 'vlan' '1' option 'ports' '1t 5t'
config 'switch_vlan' 'eth0_100' option 'device' 'eth0' option 'vlan' '100' option 'ports' '1t 5t'
Documentation does not encompass using
'vid' option together with