I have installed the latest version Raspbian, that is stretch but I got little problem that make me confuse,

When I set the /etc/network/interfaces file with a static IP address, and it's fine. But after I restart the networking for several times, suddenly I got error warning like this:

[....] Restarting networking (via systemctl): networking.servicejob for networking.service failed because the control process exited with error code.
see "systemctl status networking.service" and "journalctl- -xe" for details.

And when I try to find my configuration by ifconfig command, I don't find eth0?

  • add output of ifconfig – Guy . D Sep 5 '17 at 5:36
  • You should use ifconfig -a, or better yet, ip link, if you want to see all existing interfaces (as opposed to just the active ones). – goldilocks Sep 5 '17 at 16:15

You don't find eth0 because it doesn't exist.

See How do I set up networking/WiFi/Static IP for explanation and solutions.

You should NOT set a static IP address in /etc/network/interfaces file which is why it states:-

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
| improve this answer | |
  • ok sir , thanks for the advice , i have try to edit dhcpcd.conf , and it's work great , – Alfin Syuqra Sep 5 '17 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.