No Internet connection on CentOS7 guest system in VmWare

centos-vmware_smallWhen CentOS7 is installed in VmWare an IP address is not present.
#ip addr – show that no IP setup, to fix that do this:

 

#dhclient –v
#vi  /etc/init.d/network-autostart

add info below to the created file

#!/bin/bash
# Solution for "No Internet Connection from VMware"
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
dhclient -v
#chmod 755 /etc/init.d/network-autostart

Add the script for auto-start using chkconfig command

#chkconfig --add network-autostart

One thought on “No Internet connection on CentOS7 guest system in VmWare”

Leave a comment