The author recently used Vmvare installed CentOS, after the installation configuration, SSH remote connection is not, that the firewall is not closed, setup into the closed, useful ifconfig test, found that only the loop address is still in the local network card Etho disappeared, first, we do not worry, Use ifconfig eth0 up to open the next network card, at this time everyone can see eth0 in Ifconfig, but the IP address and gateway are displayed is wrong, not correctly identified, this is the moment vi/etc/sysconfig/network-scripts/ Ifcfg-eth0 display Device=eth0
onboot=nobootproto=staticipaddr=192.168.1.8netmask=255.255.255.0gateway= 192.168.1.1hwaddr=00:0c:29:96:38:f8 Note that onboot=no changes it to Yes, the network card is active, and the service network restart under test ifconfig the IP address and gateway
VMware under Rhel cannot find a solution to the NIC Eth0