Linux Logo

VMware – RHEL / CentOS 6.2 Network Issues

After installing CentOS 6.2 i386 minimal ISO as a VMware virtual machine, immediate attempts to perform a yum update failed. The virtual machine network is bridged to the host computer. Pings to the router were successful, however, after some Internet searches, a solution that remediated this situation was found.

Before getting to the “fix”. An attempt to change the network IP using the ifconfig command successfully changed the IP, however, did not allow for the yum update to proceed without error.

ifconfig eth0 netmask up
ifconfig eth0

It appears that this logic was on the correct track, as one site best described the difference between ifup eth0 and ifconfig eth0 up as “work[ing] [in] the same way. ifup will configure network based on /etc/network/interfaces. ifconfig use to configrue kernel resident network interfaces.” So, with most of the main compenents in place, however slightly misued and missing the dhclient eth0 command, another site writes the following commands which when executed successfully corrected the yum update issues.

ifup eth0
dhclient eth0
yum update -y