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?

techraf
4,35310 gold badges33 silver badges43 bronze badges
asked Sep 5, 2017 at 4:20
2
  • add output of ifconfig Commented 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). Commented 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'
answered Sep 5, 2017 at 6:05
1
  • ok sir , thanks for the advice , i have try to edit dhcpcd.conf , and it's work great , Commented Sep 5, 2017 at 7:48

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.