0

To set IP address on CentOS 7, I study this page in which a ifcfg-eth0 file is created and then this command is run:

systemctl restart network

But when I run the above command, I receive this error:

Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

When I run systemctl status network.service, I receive some errors:

network.service: control process exited, code=exited status=1

Failed to start LSB: Bring up/down networking.

Unit network.service entered failed state.

network.service failed.

Question

I assume I need to install some package. What package is needed? What's the error cause?

0

Investigating the journalctl -xe log helped me figure out the error cause.

The error was due to:

  1. Wrong DEVICE=eth0
    • Resolved by renaming DEVICE=eth0 to DEVICE=enp9s0
  2. Existence of some copied files like ifcfg-* which I created for testing
    • Resolved by deleting them

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.