Skip to content
Contents
GuidesOpenWrt

How to check OpenWrt bridge ports in numeric VLAN order when LuCI shows a different order

If VLAN 100 appears before 20, leave the rows intact. Forwarding depends on the bridge, VID and port settings. SSH can give you a numeric list even when the page has no sort button.

If VLAN 100 appears before 20, leave the rows intact. Forwarding depends on the bridge, VID and port settings. SSH can give you a numeric list even when the page has no sort button.

Find the right bridge

Open Network → Interfaces → Devices, configure the bridge and select Bridge VLAN filtering. In the screenshot, eth1 carries tagged traffic for both 10 and 20 on br-sw. The access ports are eth2 for 10 and eth3 for 20. Match your wiring.

OpenWrt 25.12.6 · LuCI · br-sw · VLAN 10 / 20

Sort the output only

Replace br-sw with your bridge and run the whole block over SSH. The columns show VID, configuration section and ports. This reads UCI without rearranging LuCI. If nothing appears, check the name and look for bridge-vlan sections. This does not cover legacy swconfig.

uci show network | sed -n 's/=bridge-vlan$//p' |
while IFS= read -r s; do
    [ "$(uci -q get "$s.device")" = br-sw ] || continue
    printf '%s %s %s\n' "$(uci -q get "$s.vlan")" "$s" "$(uci -q get "$s.ports")"
done | sort -n

When should you change anything?

In a separate OpenWrt 25.12.6 VM we entered 100, 20 and 10 in that order. The output below is numeric. The configuration checksum stayed the same. Brackets identify section positions, not VLAN IDs.

10 network.@bridge-vlan[2] eth1:t
20 network.@bridge-vlan[1] eth1:t
100 network.@bridge-vlan[0] eth1:t

If bridge is installed, compare the kernel table below. PVID assigns untagged arrivals. Egress Untagged removes the tag on departure. Cancel if only the order differs. For a membership error, back up first, keep a spare management port and change one setting at a time. Confirm only after a client gets the expected subnet and management still works. If locked out, let LuCI roll back or restore via the spare port.

bridge vlan show

How to carry home Ethernet and ISP IPTV to the living room on one cable

Explore hardware

Comments