# Bridge wlan0-\>eth0

**URL:** https://dietpi.com/forum/t/bridge-wlan0-eth0/5571
**Category:** Requests
**Created:** [4 August 2021 18:29 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571 "2021-08-04T18:29:03Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![cadroid18](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/71c47a/32.png) [@cadroid18](https://dietpi.com/forum/u/cadroid18)
#### Post date: [4 August 2021 18:29 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/1 "2021-08-04T18:29:03Z")

</div>

Hey  
I was searching, trying, damaging my dietpi to bridge wlan0 to eth0. I tried disable dietpi network program for run network manager, but I destroyed my dietpi a few times.  
Can somebody know how to create a bridge on dietpi?  
Maybe this is a useful thing to add to dietpi settings

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [4 August 2021 20:34 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/2 "2021-08-04T20:34:26Z")

</div>

It is not [difficult](https://wiki.debian.org/BridgeNetworkConnections#Configuring_bridging_in_.2Fetc.2Fnetwork.2Finterfaces), however it should be also supported by dietpi network so that it doesn’t get overwritten.

---

<div class="post-metadata">

### Author: ![cadroid18](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/71c47a/32.png) [@cadroid18](https://dietpi.com/forum/u/cadroid18)
#### Post date: [4 August 2021 21:03 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/3 "2021-08-04T21:03:04Z")

</div>

By default another process doesn’t allow to make bridge with wlan0

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [4 August 2021 21:54 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/4 "2021-08-04T21:54:52Z")

</div>

can you be a little bit more specific, which process block the configuration?

---

<div class="post-metadata">

### Author: ![cadroid18](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/71c47a/32.png) [@cadroid18](https://dietpi.com/forum/u/cadroid18)
#### Post date: [6 August 2021 04:34 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/5 "2021-08-06T04:34:02Z")

</div>

I don’t know. I know that dietpi has a lightweight program to control interfaces and it block access to manage wlan0 with programs like Networkmanager, bridge utils.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [6 August 2021 08:30 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/6 "2021-08-06T08:30:01Z")

</div>

that might be a misunderstanding. DietPi uses dietpi-config to manage interfaces. At the end the script is doing noting else than managing entries in /etc/network/interfaces configuration file. It did not block anything. It’s more the other way around. If you go to manage /etc/network/interfaces yourself, you will most probably loose possibility to manage interfaces via dietpi-config.

---

<div class="post-metadata">

### Author: ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)
#### Post date: [6 August 2021 22:07 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/7 "2021-08-06T22:07:51Z")

</div>

What device are you trying this on?

I did some poking around  
[https://raspberrypi.stackexchange.com/questions/81486/raspberry-pi-wifi-to-ethernet-bridge-for-a-server/81518#81518](https://raspberrypi.stackexchange.com/questions/81486/raspberry-pi-wifi-to-ethernet-bridge-for-a-server/81518#81518)  
and  
[https://raspberrypi.stackexchange.com/questions/88808/share-ethernet-printer-on-wi-fi/88848#88848](https://raspberrypi.stackexchange.com/questions/88808/share-ethernet-printer-on-wi-fi/88848#88848)

Not sure if that is kinda what you are looking for

I also saw where NetworkManager might be able to be used to create a shared connection thru a bridge…all of them seemed to use the gnome desktop…then I saw the nmcli command stuff  
Gui version → [https://blog.extramaster.net/2014/11/bridging-wlan0-to-eth0-wifi-to-lan-with.html](https://blog.extramaster.net/2014/11/bridging-wlan0-to-eth0-wifi-to-lan-with.html)

nmcli versions  
[https://www.cyberciti.biz/faq/how-to-add-network-bridge-with-nmcli-networkmanager-on-linux/](https://www.cyberciti.biz/faq/how-to-add-network-bridge-with-nmcli-networkmanager-on-linux/)

It still looks like it might be a kernel issue with hostapd  
[https://wireless.wiki.kernel.org/en/users/Documentation/hostapd](https://wireless.wiki.kernel.org/en/users/Documentation/hostapd)

---

<div class="post-metadata">

### Author: ![cadroid18](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/71c47a/32.png) [@cadroid18](https://dietpi.com/forum/u/cadroid18)
#### Post date: [8 August 2021 16:31 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/8 "2021-08-08T16:31:52Z")

</div>

I didn’t know Joulinar that raspberry pi onboard wifi don’t support bridging.

WarHawk I tried bridge by NAT, but I had to restart raspberry pi every day becouse network often stopped working.

Gnome NetworkManager is good solution, but I don’t know how to do this with dietpi. I removed /etc/network/interfaces and dhpcpd5, but NetworkManager and ifconfig didn’t see wlan0 after that.

---

<div class="post-metadata">

### Author: ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)
#### Post date: [9 August 2021 02:18 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/9 "2021-08-09T02:18:42Z")

</div>

I was able to compile and get hostapd working ([see this thread](https://dietpi.com/forum/t/pi-zero-w-project-travel-storage-device/5545/34))  
But haven’t gotten it tested any further…it is compiled on and for a Raspberry Pi0W…so YMMV…

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [9 August 2021 07:30 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/10 "2021-08-09T07:30:43Z")

</div>

> I didn’t know @Joulinar that raspberry pi onboard wifi don’t support bridging.

where did you get this statement from?

> ifconfig didn’t see wlan0 after that

Many Linux distributions have deprecated the use of ifconfig and route in favour of the software suite iproute2. Most likely it will not change anything but you should start using ip command instead of ifconfig

---

<div class="post-metadata">

### Author: ![cadroid18](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/71c47a/32.png) [@cadroid18](https://dietpi.com/forum/u/cadroid18)
#### Post date: [9 August 2021 21:28 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/11 "2021-08-09T21:28:22Z")

</div>

Joulinar from reddit

Yes, I tried also with ip link show etc, but it doesn’t help. With auto setup=1 in /boot/dietpi.txt I see wlan0 in ifconfig or ip, but I can’t manage this interface by nmcli or another networking software, when I disable autosetup ifconfig or ip doesn’t see wlan0 interface

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [9 August 2021 22:06 UTC](https://dietpi.com/forum/t/bridge-wlan0-eth0/5571/12 "2021-08-09T22:06:07Z")

</div>

if not configured, WiFi will be disabled and need to be activated in dietpi-config first.
