CentOS Virtual Machine eth0 interface not starting at boot

CentOS 6

Issue: CentOS Virtual Machine eth0 interface not starting at boot time and you need to manually login from VMware console start it every time.
Solving: make sure you have:

ONBOOT=yes

in /etc/sysconfig/network-scripts/ifcfg-eth0 file.
If you don’t have ifcfg-eth0 file you need to create in /etc/sysconfig/network-scripts/
ifcfg-eth0 contents should be similar to:

DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.10.10.50
NETMASK=255.255.0.0
GATEWAY=10.10.0.1
DNS1=8.8.8.8

 

arstech

Leave a Reply