[OpenWrt Wiki] VLAN
https://openwrt.org/docs/guide-user/network/vlan/switch_configuration05.11.2021 · A very common default VLAN configuration on many off-the-shelf routers is the LAN↔WAN separation. OpenWrt default configuration on such devices does usually mirror the stock configuration. Most of such routers only contain a single network interface (eth0), leading to a 5-port VLAN-enabled switch that is virtually partitioned into a LAN and WAN network by …
[OpenWrt Wiki] VLAN
openwrt.org › docs › guide-userNov 05, 2021 · To use a VLAN you need at least 2 devices supporting VLAN features (as any route requires at least 2 points), which is usually advanced routers, any OpenWrt device, and any self-respecting PC or single-board computer (Windows, MacOS, Linux and BSDs support VLANs). OpenWrt supports IEEE 802.1Q and IEEE 802.1ad VLAN standards.
[OpenWrt Wiki] swconfig
openwrt.org › docs › techrefswconfig dev rt305x help switch0: rt305x(rt305x-esw), ports: 7 (cpu @ 6), vlans: 4096 --switch Attribute 1 (int): enable_vlan (VLAN mode (1:enabled)) Attribute 2 (int): alternate_vlan_disable (Use en_vlan instead of doubletag to disable VLAN mode) Attribute 3 (none): apply (Activate changes in the hardware) Attribute 4 (none): reset (Reset the switch) --vlan Attribute 1 (ports): ports (VLAN port mapping) --port Attribute 1 (int): disable (Port state (1:disabled)) Attribute 2 (int): doubletag ...
[OpenWrt Wiki] Switch documentation
https://openwrt.org/docs/guide-user/network/vlan/switch02.08.2021 · The number of the VLAN is specified on the option vlan line. The VID (VLAN ID) associated with a VLAN is by default the same as the number of the VLAN.This is overridden by using an option vid line so, for example, that VLAN 1 could use VID 100. For some hardware, the value of the vlan option may be limited to 127; exceeding this value may result in the VLAN not …
[OpenWrt Wiki] swconfig
https://openwrt.org/docs/techref/swconfigShow available features swconfig dev rt305x help switch0: rt305x(rt305x-esw), ports: 7 (cpu @ 6), vlans: 4096 --switch Attribute 1 (int): enable_vlan (VLAN mode (1:enabled)) Attribute 2 (int): alternate_vlan_disable (Use en_vlan instead of doubletag to disable VLAN mode) Attribute 3 (none): apply (Activate changes in the hardware) Attribute 4 (none): reset (Reset the switch) - …