0

First of all, I am apology for the pictures, because I can not connect to the issue-machine, so I can not copy the code, only can post the photograph.

I use systemctl restart network, get fail.

So, I use the systemctl status network.service -l to check the error message:

enter image description here

I use journalctl -xe to check error message:

enter image description here

The /var/log/message error log:

enter image description here

My /etc/sysconfig/network-scripts/ifcfg-enp2s0:

enter image description here

This is my network-interfaces:

enter image description here

I tried add the HWADDR=00.30.18.14.7b.bb in my ifcfg-enp2s0, but still do not work.


EDIT-1

This is the journalctl -u network.service:

enter image description here

3
  • For a text form of this question, see the four-year-old question at unix.stackexchange.com/questions/100588 .
    – JdeBP
    Jan 24, 2018 at 6:41
  • OMG - Oh My GNU! Screenshot ... then scp to another computer to make that correct .. or ... scp a text copy ... that is weird!
    – aurelien
    Jan 24, 2018 at 20:38
  • @aurelien You know the network-interface is down, I can not connect to it. Jan 25, 2018 at 2:34

2 Answers 2

1

According to ip, enp2s0 is showing as NO-CARRIER (i.e. the cable is not plugged in.) Are you sure that the cable is securely connected and working correctly? DHCP won't try to obtain an address until the interface is fully up, and setting the MAC address isn't usually required (especially if you're setting it to the default value for the card.)

0

you maybe use the solution according to the following thread

Centos 7: failed to bring up/down networking: configure interface for a trunk interface

systemctl stop NetworkManager systemctl disable NetworkManager systemctl start NetworkManager

1
  • Be careful, this will prevent NetworkManager from starting on boot.
    – Panki
    Nov 21, 2019 at 16:15

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.