Today in the VMware virtual machine installed centos6.5, select Hardware, do not select the network card, the system started, found that there is no network card, then select the virtual machine in VMware-"Settings-" Add-"network adapter, add network card,
Start the system, after entering the system, the ifconfig command found that there are only two network cards
Use Ifconfig-a to view eth0 Nic found
Use the command ifconfig eth0 up boot network card when using the Ifconfig command to view the discovery Eth0 can use the
The network address can be configured with a command such as Ifconfig eth0 172.16.190.18, but once the restart address is not in effect, and the eth0 Nic does not start, it must be manually started again.
Workaround:
1) Add ifconfig eth0 up;ifconfig eth0 172.16.190.18 in/etc/rc.local
2) cp-p Ifcfig-lo ifcfig-eth0 in/etc/sysconfig/network-script/directory; modify ifcfig-eth0 file to change driver and name to Eth0, Address changed to 172.16.190.18, Subnet mask: 255.255.255.0, Gateway 172.16.190.2 (Note: modified according to the address you set), Onboot set to Yes. Restart the service services network restart, if it is not responding, start service NetworkManager Restart services, this times wrong
Create a new network file, Touch/etc/sysconfig/network, restart again, use Ifconfig to see eth0 has an address.
The NIC is not enabled in VMware, and the NIC is enabled after installing the system, eth0 how to set