Hello,
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: Configuring KVM on Clear Linux · ./brooks.sh
My config files are as follows:
/etc/systemd/network/br0.netdev
[NetDev]
Name=br0
Kind=bridge
MACAddress=xx:xx:xx:xx:xx:xx
/etc/systemd/network/br0.network
[Match]
Name=br0
[Network]
DHCP=yes
/etc/systemd/network/80-dhcp.network
[Match]
Name=eno1
[Network]
Bridge=br0
/etc/sysctl.d/90-bridge.conf
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.
Thanks!