I'm new to OpenWRT, but I'm not new to networking. I'm a Cisco engineer.
I need to create something like multiple SVIs (switch virtual interfaces) aka VLAN interfaces in OpenWRT mostly to be used on the LAN physical interface but perhaps in the future also to be used for the wireless interfaces. So, instead of creating a subinterface of eth0 for each VLAN I think I need to create a subinterface on the bridge interface and bridge both eth0 and the wireless interface to the bridge.
So, if I were configuring this for the parent interface eth0, I would do something like this in etc/config/network:
config interface 'vlan255'
option type 'bridge'
option ifname 'eth0.255'
option proto 'static'
option ipaddr '192.168.255.1'
option netmask '255.255.255.0'
How do I configure this so that traffic arriving on VLAN255 from both interface eth0 and the wireless interface (via the SSID-to-VLAN map) could reach the IP 192.168.255.1 as the default gateway on VLAN 255? I have a VLAN capable switch that will connect to the LAN interface (eth0) of OpenWRT with a 802.1q port that will be tagging multiple VLANs out of that port.
Second question: Is there VLAN configuration available in Luci in OpenWRT? I do not see any VLAN options in Luci.
I don't have a Network > Switch tab. This device doesn't have a switch. It has one on-board Gigabit Ethernet adapter and one USB-3 based 2.5 Gigabit Ethernet adapter.
For the wired part there isn't anything else to do. Packets will be tagged.
As for wifi, it doesn't support vlans, so what you can do is assign an SSID to the network vlan255 (or whatever name you have for that interface).
There is, if there is a switch on your device.
Otherwise when you create a new interface you can select from the drop down list of physical interface the custom field and type there eth0.X and enter.