Connect to 2 Networks

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
2cansan
Posts: 1
Joined: Mon May 20, 2019 2:41 am

Connect to 2 Networks

Post by 2cansan »

Hello
I am trying to setup Dietpi on a Raspberry P3 B+ with the ethernet connected to one router (192.168.0.1) with address (192.168.0.28) and wifi connected to another (192.168.1.1) with address (192.168.1.28). First attempt I set up ethernet static but wifi would not setup. Second attempt with a clean install and ethernet not plugged in I could setup wifi but than ethernet would not take static. I am attempting to replace a laptop with the Raspberry as a NAS. What am I missing or is this not possible.
Thanks
User avatar
MichaIng
Site Admin
Posts: 2417
Joined: Sat Nov 18, 2017 6:21 pm

Re: Connect to 2 Networks

Post by MichaIng »

@2cansan
Many thanks for your report.

Hmm actually as you use two different networks (IP ranges), this should work. But yeah aside from WiFi Hotspot setup, dietpi-config currently does not handle multiple active network adapters very beautiful. This is something we want to improve and handle more flexible in the near feature.

With v6.23 we implemented the possibility to place custom network configs inside: /etc/network/interfaces.d

Could you please paste: cat /etc/network/interfaces; ip a; ip r

In case it is best to remove the not working interface from that file and create it with correct settings inside /etc/network/interfaces.d as drop-in config.
Post Reply