54.221.73.186

Centos 7 OpenVZ - Network not starting after a reboot? [fix]

Centos 7 OpenVZ - Network not starting after a reboot? [fix]

Some people are having an issue after they reboot. Their network isn’t starting.

[root@cloud-vps /]# ifup venet0
arping: Device venet0 not available.
RTNETLINK answers: File exists
Determining if ip address (IP Address) is already in use for device venet0...
arping: Device venet0 not available.
ERROR    : [/etc/sysconfig/network-scripts/ifup-aliases] Error, some other host
already uses address (IP Address). [root@cloud-vps /]#

There are a few steps to fix this issue. First, type:

sudo nano /etc/sysconfig/network-scripts/ifup-aliases

Find the line

is_available ${parent_device} && 

Below that, find

if ! /sbin/arping -q -c 2 -w ${ARPING_WAIT:-3} -D -I ${parent_device} ${IPADDR} ; then

Take out if ! and ; then

Below that line, add:

if [ $? = 1 ]; then

- Save and Close

- sudo reboot