Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for bridging? #194

Open
sateuwdie opened this issue Nov 30, 2023 · 2 comments
Open

Support for bridging? #194

sateuwdie opened this issue Nov 30, 2023 · 2 comments

Comments

@sateuwdie
Copy link

sateuwdie commented Nov 30, 2023

The command brctl addif fail on client

brctl addif br0 wlan1
can't add wlan1 to bridge br0: Operation not supported

nmcli command also fail with timeout on client

nmcli con add ifname br0 type bridge con-name br0
nmcli con add type bridge-slave ifname wlan1 master br0

The iw command to "enable" the wlan1 as slave fail on client

iw dev wlan1 set 4addr on
command failed: Operation not supported (-95)

Searching on net I found this option for hostapd

# 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

I have enabled it, restart hostapd and...nothing change.
Fast question: is possible to add support for bridging?

Some info:
All the commands fail on a wifi client, the bridging in server hostapd works
The Linux distro used on server and client is Slackware 15.0 both on kernel 6.6.2, both using this wifi adapter

The most important thing: problems are only on client, not hostapd

@morrownr
Copy link
Owner

Hi @sateuwdie

Fast question: is possible to add support for bridging?

I have not seen problems with this driver and bridging but my AP guide is likely doing things differently than you are.

This Main Menu for this site is:

https://github.com/morrownr/USB-WiFi

Menu item 9 is the AP guide. It might give you some ideas. I have tested many ways to set up an AP over the years. The guide uses systemd-networkd. If Slackware uses systemd-networks, that may be an option for you.

IT would help me understand if you could start the story from the beginning and tell me what you are trying to accomplish.

nmcli command also fail with timeout

If setting up an AP, if the distro has NM active, it is the first thing I deactivate.

iw dev wlan1 set 4addr on

I'm pretty sure these Realtek out-of-kernel drivers do not support 4addr but I would have to take a look.

the commands fail on a wifi client, the bridging in server hostapd works.

It is not clear to me why you would execute the commands on the client.

brctl addif br0 wlan1

I haven't used this tool for years. It is not clear to me why it would be needed but then I'm not sure exactly what you are trying to do.

@morrownr

@sateuwdie
Copy link
Author

sateuwdie commented Dec 1, 2023

Hi, I need a bridge on client because I use virtual machines, I also know is possible to route to wlan0 the vm's network interfaces, but I prefer bridge (I can use the same ip network on vm and host).
The commands nmcli, brctl and iw are all run on client, not server. I edit now my message, probably first was a little "confusing" and not clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants