Skip to main content

Network is unreachable in CentOS 7 after cPanel install + restart

Comments

19 comments

  • cPanelMichael
    Hello @Sykoi, Can you open a
    0
  • Sykoi
    After testing, I've figured out the problem exists regardless of a cPanel install - it's purely the turning off NetworkManager that does it.
    0
  • cPanelMichael
    After testing, I've figured out the problem exists regardless of a cPanel install - it's purely the turning off NetworkManager that does it.

    Hi @Sykoi, I appreciate the additional information. I'd like to reproduce this behavior so we can add a note to our
    0
  • Fernando V
    @cPanelMichael can you keep me updated on the issue?

    You have to create a Failover IP and assign a virtual MAC to said Failover IP. Read the OVH documentation. Regards.
    0
  • Sykoi
    You have to create a Failover IP and assign a virtual MAC to said Failover IP. Read the OVH documentation. Regards.

    I did both
    0
  • Fernando V
    I did both

    Do you restart the network afterwards so that the changes are applied? # sudo systemctl restart network.service
    Put the results here, removing sensitive data. Verify new IP settings: # ip addr
    # ip a s eth0
    Verify new routing settings: # ip r
    Verify DNS servers settings: # cat /etc/resolv.conf
    Verify the internet connectivity: # ping -c 3 cpanel.net
    More info:
    0
  • Sykoi
    ip addr: (Ignoring lo) eth0:
    ip r 169.254.0.0/16 dev eth0 scope link metric 1002 first 3 numbers of vps ip then .0/24 dev eth0 proto kernel scope link src vpsip
    cat /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4
    ping -c 3 cpanel.net ping: cpanel.net: Name or service not known
    0
  • cPanelMichael
    I installed CentOS 7 using the minimal ISO on my Proxmox VPS (Hosted on SoYouStart / OVH - noted since they have weird networking policies), configured my ifcfg-eth0 file. After that I was able to use yum update, ping 8.8.8.8, connect via SSH, etc. After following
    0
  • Suertzz
    Hi @Sykoi, I have exactly the same problem as you, after disabling Network manager, install cpanel and restart the server I lost internet (installation under proxmox with quemu, ip failover OVH, Centos 7). I searched everywhere and found nothing conclusive, did you find a solution please ? Thank in advance :(
    0
  • cPanelMichael
    I have exactly the same problem as you, after disabling Network manager, install cpanel and restart the server I lost internet (installation under proxmox with quemu, ip failover OVH, Centos 7). I searched everywhere and found nothing conclusive, did you find a solution please ?

    Hello @Suertzz, Can you open a
    0
  • cmdrspock
    Hate to necro a thread but this was the only thing that came up on Google while I was figuring this one out for myself. Turns out, if you disable network manager the OS has no idea what to do with your gateway information - and this is essential for failover IPs to work on OVH without a vRack. To fix it simply - open /etc/sysconfig/network-scripts/route-[COLOR=rgb(44, 130, 201)]eth0 (replacing [COLOR=rgb(44, 130, 201)]eth0 with your network device). In that file, put (replacing [COLOR=rgb(184, 49, 47)]x.x.x.x with your gateway IP and [COLOR=rgb(44, 130, 201)]eth0 with your network device): [QUOTE][COLOR=rgb(184, 49, 47)]x.x.x.x dev [COLOR=rgb(44, 130, 201)]eth0 default via [COLOR=rgb(184, 49, 47)]x.x.x.x dev [COLOR=rgb(44, 130, 201)]eth0
    0
  • Spinetta
    Hate to necro a thread but this was the only thing that came up on Google while I was figuring this one out for myself. Turns out, if you disable network manager the OS has no idea what to do with your gateway information - and this is essential for failover IPs to work on OVH without a vRack. To fix it simply - open /etc/sysconfig/network-scripts/route-[COLOR=rgb(44, 130, 201)]eth0 (replacing [COLOR=rgb(44, 130, 201)]eth0 with your network device). In that file, put (replacing [COLOR=rgb(184, 49, 47)]x.x.x.x with your gateway IP and [COLOR=rgb(44, 130, 201)]eth0 with your network device):

    I'm not even going to apologize for necroing this thread because I've been googling my butt off for 4 days & this is the ONLY solution out of about 50 supposed working solutions that works with CentOS7. I had to create the route-eth0 file manually, added the lines as indicated, configured the ifcfg-eth0 according to OVH's Wiki and voila, it works! Thank you SO much. I have literally been at this for 4 days, 12 hours a day & there is NOTHING but this thread out there on how to get cPanel to work with OVH Failover IPs that actually works but this. In our case we're running a SoYouStart Dedicated Server with Windows 2016 Datacenter as the host & CentOS7 w/ cPanel in VirutalBox. Make sure you also set the VM to use the Virtual MAC you have to manually generate through the OVH / SYS control panel. Never been so happy to have someone necro a thread but I really can't thank you enough. We're up & running with 24 hours to spare before I lose this contract. You just saved my job.
    0
  • jndawson
    Hate to necro a thread but this was the only thing that came up on Google while I was figuring this one out for myself. Turns out, if you disable network manager the OS has no idea what to do with your gateway information - and this is essential for failover IPs to work on OVH without a vRack. To fix it simply - open /etc/sysconfig/network-scripts/route-[COLOR=rgb(44, 130, 201)]eth0 (replacing [COLOR=rgb(44, 130, 201)]eth0 with your network device). In that file, put (replacing [COLOR=rgb(184, 49, 47)]x.x.x.x with your gateway IP and [COLOR=rgb(44, 130, 201)]eth0 with your network device):

    I have been trying to figure out what went wrong after rebooting to configure quotas after installation, and this is the only thing that has worked. So, thanks!
    0
  • mshannaq
    Hate to necro a thread but this was the only thing that came up on Google while I was figuring this one out for myself. Turns out, if you disable network manager the OS has no idea what to do with your gateway information - and this is essential for failover IPs to work on OVH without a vRack. To fix it simply - open /etc/sysconfig/network-scripts/route-[COLOR=rgb(44, 130, 201)]eth0 (replacing [COLOR=rgb(44, 130, 201)]eth0 with your network device). In that file, put (replacing [COLOR=rgb(184, 49, 47)]x.x.x.x with your gateway IP and [COLOR=rgb(44, 130, 201)]eth0 with your network device):

    Thank you alot this help me to fix the problem while installing Cpanel on Proxmox VM.
    0
  • mshannaq
    Hate to necro a thread but this was the only thing that came up on Google while I was figuring this one out for myself. Turns out, if you disable network manager the OS has no idea what to do with your gateway information - and this is essential for failover IPs to work on OVH without a vRack. To fix it simply - open /etc/sysconfig/network-scripts/route-[COLOR=rgb(44, 130, 201)]eth0 (replacing [COLOR=rgb(44, 130, 201)]eth0 with your network device). In that file, put (replacing [COLOR=rgb(184, 49, 47)]x.x.x.x with your gateway IP and [COLOR=rgb(44, 130, 201)]eth0 with your network device):

    any one know how to solve this on Centos8 I have the same problem on Centos8 and creating a new file etc/sysconfig/network-scripts/route-eth0 does not solve the problem
    0
  • cPRex Jurassic Moderator
    @mshannaq - our documentation at How to Disable Network Manager | cPanel & WHM Documentation says this: "On systems that run CentOS 8 or AlmaLinux 8, the cPanel & WHM installer will automatically disable the Network Manager service and enable the network.service service." If you're not seeing that working properly can you please open a ticket with our team so we can check that configuration on your server?
    0
  • rg49
    Hate to necro a thread but this was the only thing that came up on Google while I was figuring this one out for myself. Turns out, if you disable network manager the OS has no idea what to do with your gateway information - and this is essential for failover IPs to work on OVH without a vRack. To fix it simply - open /etc/sysconfig/network-scripts/route-[COLOR=rgb(44, 130, 201)]eth0 (replacing [COLOR=rgb(44, 130, 201)]eth0 with your network device). In that file, put (replacing [COLOR=rgb(184, 49, 47)]x.x.x.x with your gateway IP and [COLOR=rgb(44, 130, 201)]eth0 with your network device):

    Genius! Problem still here 2 years later. After cpanel install, I lost the network and nobody at support was able to help me... Appears they didn't hear about this for proxmox users (I'm a scaleway customer, not OVH).
    0
  • did-vmonroig
    any one know how to solve this on Centos8 I have the same problem on Centos8 and creating a new file etc/sysconfig/network-scripts/route-eth0 does not solve the problem

    Solved with Almalinux 8. Still works creating a route-XXX file.
    0

Please sign in to leave a comment.