Network is unreachable after stopping NetworkManager

Issues related to configuring your network
Post Reply
inna
Posts: 3
Joined: 2020/07/17 10:37:25

Network is unreachable after stopping NetworkManager

Post by inna » 2020/07/17 10:47:46

Hello,

I just have installed CentOS 7 on a VM in ESXi and it has network that I can use ping 8.8.8.8 fine with responses.
But the issue appears when I stop NetworkManager and restart the network service, and after that when I try to ping 8.8.8.8 or any elsewhere, it says Network is unreachable.
My interface is called ens192 and its ifcfg file is correct (in my opinion the issue goes with something in NetworkManager).

Would you please help me where the issue is and how can I solve that?

User avatar
TrevorH
Forum Moderator
Posts: 29050
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Network is unreachable after stopping NetworkManager

Post by TrevorH » 2020/07/17 12:03:15

Why are you trying to stop NetworkManager on a system that uses it?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

inna
Posts: 3
Joined: 2020/07/17 10:37:25

Re: Network is unreachable after stopping NetworkManager

Post by inna » 2020/07/17 12:05:39

Hello,

I want to install cPanel/WHM and it requires NetworkManager be disabled.

User avatar
jlehtone
Posts: 2921
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Network is unreachable after stopping NetworkManager

Post by jlehtone » 2020/07/17 12:46:11

inna wrote:
2020/07/17 12:05:39
I want to install cPanel/WHM and it requires NetworkManager be disabled.
First a note: you will admin your system with cPanel when you have installed cPanel and support for doing that must come from cPanel.


That said,
CentOS 7 has two network configuration/management systems: network.service and NetworkManager.service.
They can coexists, but they cannot manage same connection.
ifcfg file is correct
I bet it is, for NetworkManager. The network.service will look at the file and note that it belongs to NetworkManager.
Therefore, network.service will not touch it.

https://www.thegeekdiary.com/centos-rhe ... nager/amp/

inna
Posts: 3
Joined: 2020/07/17 10:37:25

Re: Network is unreachable after stopping NetworkManager

Post by inna » 2020/07/17 13:58:57

jlehtone wrote:
2020/07/17 12:46:11
inna wrote:
2020/07/17 12:05:39
I want to install cPanel/WHM and it requires NetworkManager be disabled.
First a note: you will admin your system with cPanel when you have installed cPanel and support for doing that must come from cPanel.


That said,
CentOS 7 has two network configuration/management systems: network.service and NetworkManager.service.
They can coexists, but they cannot manage same connection.
ifcfg file is correct
I bet it is, for NetworkManager. The network.service will look at the file and note that it belongs to NetworkManager.
Therefore, network.service will not touch it.

https://www.thegeekdiary.com/centos-rhe ... nager/amp/
Hello,
Thanks for the reply and the link, but my intention is to try cPanel, but this issue is even before wgetting cPanel installer file.
The above link did not work.
I added NM_CONTROLLED directive and set it to 'no', but it did not work.
I also just now deleted the VM and installed a clean CentOS, but nothing has changed in this situation.

Post Reply

Return to “CentOS 7 - Networking Support”