Ethernet and WiFi Setting

Excuse me, but this does not work for the latest raspbian version that uses openhabian, stretch

Today in my new RPPi 3B+ with openhab runing I configured the wifi without problem, but I lost the ethernet lan conecction.
Solution:
Create a new plain file in /etc/network/interfaces.d folder. Inside of the new file (does not the matter the name) I define the lost interface:
auto eth0
iface eth0 inet dhcp

reboot
and thats all

Step by step, what I did:

  1. ssh openhabian@openhabianpi
  2. sudo nano /etc/network/interfaces.d/ethnew
  3. write two lines:
    auto eth0
    iface eth0 inet dhcp
  4. save file (ctr + o), exit file (ctr +x)
  5. sudo shutdown now -r
8 Likes