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
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
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
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 6, 2020 by tanya-shreedhar
0 Asked on December 6, 2020 by rarelynecessary
2 Asked on December 6, 2020 by dhamu
1 Asked on December 6, 2020 by robsch
0 Asked on December 6, 2020 by kolja
1 Asked on December 6, 2020
1 Asked on December 6, 2020 by marc
0 Asked on December 5, 2020 by yael
1 Asked on December 4, 2020 by flow2k
1 Asked on December 4, 2020 by beakal-begashaw
0 Asked on December 4, 2020
1 Asked on December 4, 2020 by bex
1 Asked on December 4, 2020 by elu
3 Asked on December 4, 2020 by sln
13 Asked on December 4, 2020 by kris
2 Asked on December 4, 2020 by mbiber
3 Asked on December 3, 2020 by aravind
Get help from others!