Page MenuHomeVyOS Platform

VLAN doesn't work on a bridge with a wireless interface member
Closed, ResolvedPublic

Description

Setup:

  • WiFi device wlan0 up and running as AP as slave to bridge br0.

Bug:

  • Adding a vif (VLAN interface) to br0 fails.
vyos@apu2# set interfaces bridge br0 vif 100 address 10.66.66.254/24
[edit]
vyos@apu2# compare
[interfaces bridge br0]
+ vif 100 {
+     address "10.66.66.254/24"
+ }

[edit]
vyos@apu2# commit

You must first activate "enable-vlan" of br0 bridge to use "vif"

[[interfaces bridge br0]] failed
Commit failed
[edit]
vyos@apu2# discard

  Changes have been discarded

[edit]
vyos@apu2# set interfaces bridge br0 enable-vlan
[edit]
vyos@apu2# compare
[interfaces bridge br0]
+ enable-vlan

[edit]
vyos@apu2# commit

Can not add interface "wlan0" to bridge, VLAN aware cannot be set!

[[interfaces bridge br0]] failed
Commit failed
[edit]
vyos@apu2#

Maybe the quirks below might be linked to this issue:

When configuring WiFi interfaces as bridge slave interfaces, they must be configured to accept a specific address mode. This is explained in https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf .

# For nl80211, this parameter can be used to request the AP interface to be
# added to the bridge automatically (brctl may refuse to do this before hostapd
# has been started to change the interface mode). If needed, the bridge
# interface is also created.
#bridge=br0

# WDS (4-address frame) mode with per-station virtual interfaces
# (only supported with driver=nl80211)
# This mode allows associated stations to use 4-address frames to allow layer 2
# bridging to be used.
#wds_sta=1

This had already occurred in the past and been resolved in https://vyos.dev/T2210.

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202404091022
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

alainlamar triaged this task as Normal priority.Wed, May 8, 12:44 PM
alainlamar created this task.
alainlamar created this object in space S1 VyOS Public.
alainlamar renamed this task from vyos-1x: WiFi interfaces as bridge slaves, hostapd config items missing (again) to vyos-1x: WiFi interfaces as bridge slaves, unable to add VLAN to bridge.Wed, May 8, 1:01 PM
alainlamar updated the task description. (Show Details)
alainlamar updated the task description. (Show Details)
c-po changed the task status from Open to In progress.Wed, May 8, 7:32 PM
c-po claimed this task.
c-po moved this task from Need Triage to In Progress on the VyOS 1.4 Sagitta board.
c-po changed the task status from In progress to Needs testing.Fri, May 10, 1:13 PM
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta (1.4.0-epa3) board.
c-po moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.
dmbaturin renamed this task from vyos-1x: WiFi interfaces as bridge slaves, unable to add VLAN to bridge to VLAN doesn't work on a bridge with a wireless interface member.Sat, May 11, 8:17 PM
dmbaturin removed a project: VyOS 1.5 Circinus.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.