I kindly ask your advice on how to bridge a wireless card in Clear Linux, in the following situation:
- Clear Linux server installed on an Intel NUC that has 2 network card, one wired (eno1) and one wireless (wlp2s0)
- A KVM machine setup, with Home Assistant OS in it
- An already functioning bridge for this KVM, using the wired card, by following this rather old tutorial: https://brooks.sh/2017/12/22/configuring-kvm-on-clear-linux/
My config files are as follows:
[NetDev] Name=br0 Kind=bridge MACAddress=xx:xx:xx:xx:xx:xx
[Match] Name=br0 [Network] DHCP=yes
[Match] Name=eno1 [Network] Bridge=br0
net.bridge.bridge-nf-call-arptables = 0 net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0
So far so good, the KVM has access to the internet, it sees all the other clients in my network and it is being seen by the router as a standalone client.
The issue is I would like to connect the Home Assistant inside the KVM to another subnet, to separate my IOT devices from the regular ones, like PCs, laptop etc. However, the KVM should auto discover devices from both subnets, and the only way to do that I think is to create a second bridge using the wifi card.
The tutorial I used doesn’t seem to work for wireless NICs, I am stuck at the 3rd config file, as I can’t find wlp2s0 relevant files in
/lib/systemd/network/. I connected to wifi using nmtui, then tried to create a bridge using Cockpit GUI, but it doesn’t work, wifi loses connection and even forgets credentials for the network saved beforehand in nmtui.
Is this possible, or is there any other way to go for achieveng this?
PS. Sorry for long post, tried to be as explicit as possible.