Network Unavailable with CentOS 7 or Fedora 20

There is a bug in SolusVM that the network settings for CentOS 7 and Fedora 20 do not get provisioned properly when you initially order your VPS. This is due to the change in the way these operating systems use their network config files. Even though there is nothing we can do to fix this automated error, fortunately, you can fix the problem yourself with ease!

First, login to your virtual machine as root using VNC through your SolusVM control panel (since networking is not working, this is the only way).

Next, change your working directory to /etc/sysconfig/network-scripts/, you may do this by running the following command:

cd /etc/sysconfig/network-scripts

Next, you will need to rename your ifcfg-eth0 file to the new format used by CentOS 7 or Fedora 20 to the new one, ifcfg-ens3. That command for this change is as follows:

mv ifcfg-eth0 ifcfg-ens3

Next, you will need to edit the file and replace any occurrence of eth0 with ens3. You may do this with the following command:

sed -i -- 's/ifcfg-eth0/ifcfg-ens3/g' ifcfg-ens3

Alternatively: You can edit the file using vim and replace the ifcfg-eth0 occurrence by hand.

We also need to add the DNS servers. Do to this, edit the file /etc/sysconfig/network-scripts/ifcfg-ens3 and enter the following:

DNS1=8.8.8.8
DNS2=8.8.4.4

You also need to edit your resolv.conf file located at /etc/resolv.conf and add the following:

nameserver 8.8.8.8
nameserver 8.8.4.4

These addresses are the Google DNS resolvers so they are extremely fast no matter where you are in the world due to anycasting.

Next, restart networking with:

service network restart

You should now have Internet access! If you have any questions or problems regarding this fix, please feel free to contact the support department as the difficulty of this change may be difficult for beginners. We hope SolusVM has a fix for this soon!
  • 144 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

Incorrect Disk Space Available in Windows Server

Sometimes SolusVM fails to provision a Windows VPS properly resulting in incorrect disk space...

Cannot connect via RDP to my Windows VPS

Note that only our Windows VPS plans come preconfigured with RDP (Remote Desktop Protocol)...

Activating Windows Server (any edition)

If you purchased a Windows VPS from Mean Servers but elected to bring your own license (BYOL),...

Network Configuration in openSuse

Mean Servers has written this knowledgebase article for those wishing to use our openSuse...

Windows 7 VPS Initial Setup

Note that Mean Servers now has Windows plans with RDP preconfigured and everything ready to go...