2

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.
failed!

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

2
  • add output of ifconfig
    – guyd
    Sep 5, 2017 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, 2017 at 16:15

1 Answer 1

1

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'
1
  • ok sir , thanks for the advice , i have try to edit dhcpcd.conf , and it's work great , Sep 5, 2017 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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