You are not logged in.
I am trying to create a network bridge for kvm. I connect to wifi with netctl, but using netctl to enable and start the bridge profile leaves me with no connection on the host. I had to roll back a snapshot to get my networking back.
here is the bridge config
Description="KVM Bridge"
Interface=br0
Connection=bridge
BindsToInterfaces=(wlp0s20f3)
## Use the MAC address of eth1 (may also be set to a literal MAC address)
#MACAddress=eth1
IP=dhcp
## Ignore (R)STP and immediately activate the bridge
#SkipForwardingDelay=yes
When I try using iproute2 instead to do this, here is what I run into:
[jmgant@kyzer ~]$ sudo ip link add name br0 type bridge
[jmgant@kyzer ~]$ sudo ip link set br0 up
[jmgant@kyzer ~]$ sudo ip link set wlp0s20f3 master br0
Error: Device does not allow enslaving to a bridge.
I had this working in the past on this machine, but I don’t remember how. I’ve gone over the wiki, and I’ve tried everything I can think of, but I’m hitting a dead end. any suggestions?
Last edited by shoelesshunter (2022-08-07 00:52:35)
Offline
Maybe I'm remembering wrong but I thought wireless interfaces of the host can't be used as bridges ?
$20 Free Credit Hetzner - https://hetzner.cloud/?ref=fuVilhv403fA
Offline
you are right. thinking back, it was with virtualbox that I had done it before.
Offline
update. I began to install the VM with the intention of using NAT, when I was informed by virt-manager that there was an "open network" available.
iproute2 shows this
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp0s20f3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether c8:b2:9b:c5:42:3e brd ff:ff:ff:ff:ff:ff
inet 192.168.4.90/22 brd 192.168.7.255 scope global wlp0s20f3
valid_lft forever preferred_lft forever
inet6 fdee:d5e2:afe2:1:cab2:9bff:fec5:423e/64 scope global dynamic mngtmpaddr
valid_lft 2591812sec preferred_lft 604612sec
inet6 fe80::cab2:9bff:fec5:423e/64 scope link
valid_lft forever preferred_lft forever
3: enp7s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 54:05:db:b2:2c:e8 brd ff:ff:ff:ff:ff:ff
4: br-64c7f044c266: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:9c:3a:9b:d4 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global br-64c7f044c266
valid_lft forever preferred_lft forever
5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:01:67:c3:eb brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
7: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 76:a5:fa:d1:81:46 brd ff:ff:ff:ff:ff:ff
9: virbr1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:dd:01:8c brd ff:ff:ff:ff:ff:ff
inet 192.168.100.1/24 brd 192.168.100.255 scope global virbr1
valid_lft forever preferred_lft forever
what is virbr1 doing there?
Offline
I didn't read anything abotu running hostap, https://wiki.archlinux.org/title/Networ … n_a_bridge and not every wifi NIC can be bridged, https://wiki.archlinux.org/title/Softwa … rt_AP_mode
Offline