OpenWrt One router and vlans

my router is an openWrt One. it's been running fine but now i'm playing around with vlans. all the examples i've found have multiple physical ports in addition to the wan port. in these examples, each vlan is associated with one of the physical ports.
my question: can i define vlans on the openWrt one? if so, how?

Yes, you can use VLANs / multiple subnets on the OpenWrt One.

The specific implantation details depend on your needs:

  • wifi only
  • ethernet only
  • wifi + ethernet

Also, if you're using ethernet, the downstream device (i.e. a switch and/or AP) needs to be VLAN aware. An unmanaged switch is not suitable.

So... can you describe your downstream hardware and your general goals?

thanks for the quick reply.

i've got a netgear down stream

	"kernel": "6.6.119",
	"hostname": "OpenWrt-wap",
	"system": "MediaTek MT7621 ver:1 eco:3",
	"model": "Netgear WAC104",
	"board_name": "netgear,wac104",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "24.10.5",
		"revision": "r29087-d9c5716d1d",
		"target": "ramips/mt7621",
		"description": "OpenWrt 24.10.5 r29087-d9c5716d1d",
		"builddate": "1766005702"
	}

i want run ethernet between them with multiple vlans and wifi ssid for each vlan.

thanks,
terry

Ok... so this should be fairly straightforward. Will you be using wifi on your One, or only on the Netgear?

netgear. i may keep a wifi open wifi on the 'one' for emergency admin access

terry

Ok... so you can just create additional network interfaces and use the device as the ethernet port with dotted notation. For example: eth0.15 for VLAN 15 on port eth0 (I can't remember if eth0 is the defualt lan assignment or eth1, but you get the idea).

You can follow the guest wifi guide to get you started, just using the above comment for the device instead of setting up wifi.

thanks,
terry

I did something similar for my wifi ap using vlan trunk port. Here is what I did [Solved] How can I get guest Wifi Vlan ID to work on a dumb AP? - #12 by openwrtforever

thanks for all the replies. they were helpful.
got this working the way i intended. i used this to create the interface and wifi

then i
. added bridge vlan filtering to br-lan with van ids for default (1) and guest (3)
. tagged them accordingly
. assigned the lan device to br-lan.1
. assigned the guest device to br-lan.3

here's the uci for all of that

# /etc/config/network
uci add network bridge-vlan # =cfg0da1b0
uci set network.@bridge-vlan[-1].device='br-lan'
uci set network.@bridge-vlan[-1].vlan='1'
uci add_list network.@bridge-vlan[-1].ports='eth1:u*'
uci add network bridge-vlan # =cfg0ea1b0
uci set network.@bridge-vlan[-1].device='br-lan'
uci set network.@bridge-vlan[-1].vlan='3'
uci add_list network.@bridge-vlan[-1].ports='eth1:t'
uci set network.lan.device='br-lan.1'
uci set network.guest.device='br-lan.3'
uci del network.guest.ipaddr
uci add_list network.guest.ipaddr='192.168.4.1/24'

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.