Bridge wlan0->eth0

Suggestions for features and software you would like to see in DietPi, goes here.
cadroid18
Posts: 6
Joined: Wed Aug 04, 2021 8:23 pm

Bridge wlan0->eth0

Post by cadroid18 »

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
User avatar
trendy
Posts: 360
Joined: Tue Feb 25, 2020 2:54 pm

Re: Bridge wlan0->eth0

Post by trendy »

It is not difficult, however it should be also supported by dietpi network so that it doesn't get overwritten.
cadroid18
Posts: 6
Joined: Wed Aug 04, 2021 8:23 pm

Re: Bridge wlan0->eth0

Post by cadroid18 »

By default another process doesn't allow to make bridge with wlan0
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Bridge wlan0->eth0

Post by Joulinar »

can you be a little bit more specific, which process block the configuration?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
cadroid18
Posts: 6
Joined: Wed Aug 04, 2021 8:23 pm

Re: Bridge wlan0->eth0

Post by cadroid18 »

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.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Bridge wlan0->eth0

Post by Joulinar »

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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
WarHawk
Posts: 773
Joined: Thu Jul 20, 2017 8:55 am

Re: Bridge wlan0->eth0

Post by WarHawk »

What device are you trying this on?

I did some poking around
https://raspberrypi.stackexchange.com/q ... 1518#81518
and
https://raspberrypi.stackexchange.com/q ... 8848#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/br ... -with.html

nmcli versions
https://www.cyberciti.biz/faq/how-to-ad ... -on-linux/

It still looks like it might be a kernel issue with hostapd
https://wireless.wiki.kernel.org/en/use ... on/hostapd
cadroid18
Posts: 6
Joined: Wed Aug 04, 2021 8:23 pm

Re: Bridge wlan0->eth0

Post by cadroid18 »

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.
User avatar
WarHawk
Posts: 773
Joined: Thu Jul 20, 2017 8:55 am

Re: Bridge wlan0->eth0

Post by WarHawk »

I was able to compile and get hostapd working (see this thread)
But haven't gotten it tested any further...it is compiled on and for a Raspberry Pi0W..so YMMV...
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Bridge wlan0->eth0

Post by Joulinar »

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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply