Unix & Linux Asked on December 11, 2020
I have a CentOS server that is currently using eth1
network interface. I am trying to change it to eth0
and have configured it but when I try ifup eth0
I get this error message:
Error: Connection activation failed: Device not managed by NetworkManager or unavailable
The contents of /etc/sysconfig/network-scripts/ifcfg-eth0
are as follows:
DEVICE=eth0
TYPE=Ethernet
UUID=6519f5da-294a-45e3-b9dc-b8aa12c5fda3
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=00:19:99:D5:56:95
PEERDNS=yes
PEERROUTES=yes
LAST_CONNECT=1509619482
Please can someone help in getting eth0
up?
If you run ifconfig -a
or ip link show
as root, does the eth0 interface appear in the output? Does it have the MAC address that ís specified in the /etc/sysconfig/network-scripts/ifcfg-eth0
file on the HWADDR=
line?
If it is not there at all, then the driver for the NIC has probably not been loaded yet, or has a problem that prevents it from loading. If it has an unexpected name, you may have a problem with NIC naming.
If the NIC is there with the expected name, but refuses to activate, it might be a firmware loading problem: some NICs require firmware to work, and if the necessary firmware file is not available, the driver cannot activate the NIC. If this is the problem, then the dmesg | less
listing will usually contain one or more messages indicating that the system cannot load a specific firmware file. Once you know the name of the firmware file, you can search for it. Make sure the linux-firmware-<YYYYMMDD>-<version number>
RPM package is installed: it includes a large collection of firmware files for various hardware.
Answered by telcoM on December 11, 2020
system-config-network
select the eth0 device and hit the Edit button and uncheck the "Controlled by network manager" check box and check the box for Activating the port when the computer starts up. Save and quit in there.
Now run system-config-services and stop/disable NetworkManager and start/enabled network service.
This works for me
Answered by Marimuthu S on December 11, 2020
1 Asked on December 17, 2021
1 Asked on December 17, 2021 by jorje12
1 Asked on December 17, 2021 by thatonecoonie
2 Asked on December 17, 2021 by haydon
1 Asked on December 17, 2021
1 Asked on December 17, 2021 by pcrevolt
1 Asked on December 15, 2021 by bratchley
7 Asked on December 15, 2021 by user210015
1 Asked on December 15, 2021
1 Asked on December 15, 2021 by steve-antwan
1 Asked on December 15, 2021
1 Asked on December 15, 2021 by rubicks
1 Asked on December 15, 2021
0 Asked on December 15, 2021 by tomcho
1 Asked on December 15, 2021 by lone-wolf
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP