Does OpenWrt support vlan filtering?

Hello,

network noob here.
I am using OpenWrt 19.07.7 r11306-c4a6851c72 .
Does this version of OpenWrt support vlan filtering? If so, where's the bridge command?

How can I perform vlan filtering in LUCI?

OpenWrt supports vlans. Tagging, untagging, pvid, trunks, access etc.
You can find the details in the Network/Switch page in Luci.

Are you coming from the realm of mikrotik? There are different commands here.

1 Like

Hello @trendy thank you for your reply. It might be the case we do not talk about the same thing. :slight_smile:

I am trying to set up a linux software bridge with vlan filtering enabled. As on this page: vlan-filter-support-on-bridge . Which means involving this command: # ip link set br0 type bridge vlan_filtering 1. As you can see later in this page, there's a bridge command involved to tell the ports which vlan tag is involved, as in # bridge vlan add dev guest_1_tap_0 vid 2 pvid untagged master.

Does someone know whether we can do that on OpenWrt?

I have a deja-vu, someone else asked the very same thing.
Bridge command is there:

root@magiatiko / > bridge help
Usage: bridge [ OPTIONS ] OBJECT { COMMAND | help }
       bridge [ -force ] -batch filename
where   OBJECT := { link | fdb | mdb | vlan | monitor }
        OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] |
                     -o[neline] | -t[imestamp] | -n[etns] name |
                     -c[ompressvlans] -color -p[retty] -j[son] }
1 Like

Ah ok. It's not there for me. I'll need to reconstruct my firmware then? Anyway thank you for your reply. All that suggests it is supported, i just need to add the bridge command in my firmware. I guess...

Or you could install package ip-bridge:

opkg files ip-bridge
Package ip-bridge (5.10.0-1) is installed on root and has the following files:
/usr/sbin/bridge
1 Like

Installed ! Thank you very much.

# bridge
Usage: bridge [ OPTIONS ] OBJECT { COMMAND | help }
       bridge [ -force ] -batch filename
where	OBJECT := { link | fdb | mdb | vlan | monitor }
	OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] |
		     -o[neline] | -t[imestamp] | -n[etns] name |
		     -c[ompressvlans] -color -p[retty] -j[son] }

1 Like

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