DietPI running Ethernet and WiFi at the same time, simultaneously ? Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
dpinu
Posts: 4
Joined: Tue Oct 09, 2018 6:42 am

DietPI running Ethernet and WiFi at the same time, simultaneously ?

Post by dpinu »

Hi,

Since I like to use DietPI on my Raspberry Pi as basis for PI-Hole, DietPI should be using both Ethernet and WiFi simultaneously.

Both are different networks, so Ethernet is for my main clients and Wifi is for guests only).
But they share the same address range (that's the behaviour caused by my AsusWRT-Merlin router).

Obviously, DietPI does not like this configuration. It seems that the WiFi configuration always "wins" over the Ethernet configuration... what is rather bad.

How to configure DietPI in a way that I can use Ethernet and WiFi simultaneously?

Thanks for helping me.
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: DietPI running Ethernet and WiFi at the same time, simultaneously ?

Post by WarHawk »

As in bridged, or do you want to have act as a AP?

You want both interfaces able to receive data on the same subnet at the same time w/ different IP addresses?

Might be able to do this
https://blog.ithasu.org/2016/10/using-a ... nd-bridge/

or something like this
https://blog.extramaster.net/2014/11/br ... -with.html
dpinu
Posts: 4
Joined: Tue Oct 09, 2018 6:42 am

Re: DietPI running Ethernet and WiFi at the same time, simultaneously ?

Post by dpinu »

No, no bridging needed.

What I am looking for is classic multi-homing.

Does DietPI support that or not?
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: DietPI running Ethernet and WiFi at the same time, simultaneously ?

Post by MichaIng »

Did I understand correctly, that you want to have the Pi connected to internet via Ethernet and serve as WiFi hotspot for local clients?

Install WiFi hotspot via dietpi-software 8): viewtopic.php?f=8&t=5&p=1207#p1207
It will enable as well different settings in dietpi-config > Network Adapters, to further configure the hotspot.

And yes, by default (without WiFi hotspot installed), natively DietPi will only allow to enable one network device, while the other will be disabled.
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: DietPI running Ethernet and WiFi at the same time, simultaneously ?

Post by WarHawk »

MichaIng wrote: Thu Oct 11, 2018 3:00 am Did I understand correctly, that you want to have the Pi connected to internet via Ethernet and serve as WiFi hotspot for local clients?

Install WiFi hotspot via dietpi-software 8): viewtopic.php?f=8&t=5&p=1207#p1207
It will enable as well different settings in dietpi-config > Network Adapters, to further configure the hotspot.

And yes, by default (without WiFi hotspot installed), natively DietPi will only allow to enable one network device, while the other will be disabled.
Cool cool...forgot about that...duh!
dpinu
Posts: 4
Joined: Tue Oct 09, 2018 6:42 am

Re: DietPI running Ethernet and WiFi at the same time, simultaneously ?

Post by dpinu »

MichaIng wrote: Thu Oct 11, 2018 3:00 am Did I understand correctly, that you want to have the Pi connected to internet via Ethernet and serve as WiFi hotspot for local clients?
No. I am looking for a classical multi-homed configuration = more than one network adapter (Ethernet, WiFi etc.) connected to the same network.
One adapter (Ethernet in my case) answers all of my "home network" requests from the Asus Wifi Router, while the other adapter (in my case the WiFi one that is connected to my "guest network") responds only to clients requests from that separate network.
MichaIng wrote: Thu Oct 11, 2018 3:00 am And yes, by default (without WiFi hotspot installed), natively DietPi will only allow to enable one network device, while the other will be disabled.
That is strange... But it explains why my Ethernet connection always was shut down when I connected WiFi.

Why DietPI does enable only one network device - and intentionally disables other network adapters?
And, more importantly: How to change that - since I like to use more than one network device simultaneously?
daozeyu
Posts: 4
Joined: Tue Oct 09, 2018 5:22 am

Re: DietPI running Ethernet and WiFi at the same time, simultaneously ?

Post by daozeyu »

Is there a way to use more than one wifi adaptor ?
Raspberry pi 3B+ onboard wifi adaptor for internet connection and another wifi adaptor (USB) for hotspot.

i would like to set the onboard wifi to pick up a wireless connection so the hotspot can be a repeater.
dpinu
Posts: 4
Joined: Tue Oct 09, 2018 6:42 am

Re: DietPI running Ethernet and WiFi at the same time, simultaneously ?

Post by dpinu »

dpinu wrote: Thu Oct 11, 2018 6:14 am
MichaIng wrote: Thu Oct 11, 2018 3:00 am And yes, by default (without WiFi hotspot installed), natively DietPi will only allow to enable one network device, while the other will be disabled.
That is strange... But it explains why my Ethernet connection always was shut down when I connected WiFi.

Why DietPI does enable only one network device - and intentionally disables other network adapters?
And, more importantly: How to change that - since I like to use more than one network device simultaneously?
@MichaIng: Can you please help me with getting that weird "only one network device can be active" problem of DietPI?
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: DietPI running Ethernet and WiFi at the same time, simultaneously ?

Post by MichaIng »

Not directly related, but if someone lands here, we have a great tutorial about how to enable Ethernet with WiFi as fallback + WiFi auto-reconnect: viewtopic.php?f=15&t=7835
Post Reply