# How to create a network bridge with a WiFi card?

**URL:** <https://community.learnlinux.tv/t/how-to-create-a-network-bridge-with-a-wifi-card/1551>\
**Category:** Mastering Ubuntu Server (4th Edition)\
**Created:** [April 27, 2022, 4:06am UTC](https://community.learnlinux.tv/t/how-to-create-a-network-bridge-with-a-wifi-card/1551 "2022-04-27T04:06:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![altitude-dashboard](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/a/779978/32.png) [@altitude-dashboard](https://community.learnlinux.tv/u/altitude-dashboard)\
**Post date:** [April 27, 2022, 4:06am UTC](https://community.learnlinux.tv/t/how-to-create-a-network-bridge-with-a-wifi-card/1551/1 "2022-04-27T04:06:09Z")

</div>

I’m trying to use KVM to virtualize a two node Oracle RAC DB (for testing) on an Intel NUC, connected to WiFi using an Intel AX201 card. In the excellent book, Mastering Ubuntu Server 3rd edition, we have this example to create a bridge:

```auto
network:
  ethernets:
    enp0s3:
      dhcp4: false
    bridges:
    br0:
      interfaces: [enp0s3]
      dhcp4: true
      parameters:
        stp: false
        forward-delay: 0

```

This Intel NUC is running headless and connected only to WiFi, running Ubuntu Server 20.04.4 with the HWE kernel. So I tried editing /etc/netplan/00-installer-config-wifi.yaml:

```auto
network:
  version: 2
  wifis:
	wlp0s20f3:
	  access-points:
		Unifi:
		  password: **************
	  dhcp4: true bridges:
  br0:
    interfaces: [wlp0s20f3]
	dhcp4: true
	  parameters:
	    stp: false
		forward-delay: 0

```

followed by:

sudo netplan apply

But then I get disconnected from WiFi as it doesn’t get an IP. I have done some googling and it seems the problem is due to the AP (in my case a Unifi Dream Machine) rejecting the connection as it is not done via the WiFi card:  
[https://wiki.debian.org/BridgeNetworkConnections#Bridging\_with\_a\_wireless\_NIC](https://wiki.debian.org/BridgeNetworkConnections#Bridging_with_a_wireless_NIC)

so it seems we must use ebtables.  
Some other sources mention this is not possible to be achieved. While some sources mention it must be done using DNS forwarding.  
So, how to achieve WiFi bridging?

Thanks

---

<div class="post-metadata">

**Author:** ![altitude-dashboard](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/a/779978/32.png) [@altitude-dashboard](https://community.learnlinux.tv/u/altitude-dashboard)\
**Post date:** [April 28, 2022, 12:17pm UTC](https://community.learnlinux.tv/t/how-to-create-a-network-bridge-with-a-wifi-card/1551/2 "2022-04-28T12:17:36Z")

</div>

After some time, I realised that it’s not needed to create a network bridge br0 in Linux. Maybe I have a newer version of KVM, I don’t know, but I was simply was able from the GUI to create a new network for the VM, both NAT and Routed and attach the name of the wifi adapter and it works.

Edit: Sorry, no it doesn’t work. I can access the internet from inside the VMs, but the VMs are not visible from my home network
