Maybe it's on the OpenWRT Wiki somewhere, but I haven't been able to find clear descriptions of several UCI parameters that LuCI seems to use liberally. I've got a non-trivial switch and bridge config underway and need to hand-edit the config.
Bridges
Not defined in the UCI Network Wiki page, but used by LuCI or device "starter" config include:
_orig_ifname
Appears to be a list of "real" (non-UCI-ified) links. Is there a reason the ifname option can't be used for these? It appears that both _orig_ifname and ifname can appear for the same bridge and the bridge forms over the union of the two. Is this correct?
_orig_bridge
Nothing obvious on this one, as on my router lan has it 'true' and wan has it 'false'
Switch
vlan and vid
Not at all clear from the VLAN Wiki page, but it seems as though vlan is perhaps a hardware index to a configuration "slot" and has nothing to do with the VLAN tag. Not called out on that page is that it appears that the actual VLAN tag is required to be set by vid (with some default?) . Are these correct understandings?
Post order got a little twisted there. While I understand the newb treatment, I had already pursued the page you suggested, they took me to the page I posted in the lead, and failed to describe VLANs and switch configuration in any meaningful way.
I dont want to open new thread for this.
Isnt the vlan id / vid 1 somewhat reserved and the default vlan on most switches?
I dont remember my default network config for my device (mvebu).
But i think one vlan was ethx.1 (and i guess this also the case for other platforms)
Wouldn't it better to start by 2 or even 10 ?
Yes, very often the default configuration chooses to use low-numbered VLANs to manage the connection between the internal Ethernet interfaces and the physical ports on the unit. With two Ethernet interfaces in the device, the default configuration is usually not "VLAN-aware" in that untagged packets are accepted into the switch and untagged packets are delivered out of it. In that case, VLANs are only used internally in the switch to, for example, connect one eth device to the "LAN" ports and another eth device to the "WAN" port. When there is only a single Ethernet interface in the unit, many configurations use VLANs on that interface to split LAN from WAN traffic to/from the switch, such as eth0.1 and eth0.2. This is just one way to configure a switch, one that works well for many users in single-router home/SOHO use.