To minimize the installation of centos on the virtual machine, you will find that after logging on to the system, you can enter the ifconfig command to find that the etho0 Nic is only LO and the eth0 IP address cannot be found.
1. log on to the system as a root user and use the ifconfig command to temporarily give eth0 an IP address, for example, "ifconfig eth0 192.168.1.99"
2. Find the ifcfg-eth0 file in the/etc/sysconfig/network-scripts directory of the system
3. Edit ifconfig-eth0
Onboot = Yes
Bootproto = static
Ipaddr = 192.168.1.99
Netmask = 255.255.255.0
: WQ
4. Restart the network service # service network restart
5. Finally, run the ifconfig command and check. OK.
This article is from the "Linux" blog, please be sure to keep this source http://xiraowangja.blog.51cto.com/3952075/1863212
Minimize installation of centos without Nic Problems