Faults:
1,/etc/sysconfig/network-scripts directory no ifcfg-eth0
2. If the ifconfig command does not have eth0, only LO is displayed.
Solution:
1. If you enter ifconfig without eth0:, you need to install the NIC driver as follows:
Check the NIC type and whether the NIC driver is installed in Ubuntu
1 input: lspci or lspci-V orLspci-VV
All hardware information and versions are displayed, and then you can search for drivers in Linux Online.
0:00. 0 Ethernet controller: Broadcom Corporation BCM4401-B0 100base-tx (Rev 02)
. 0 FireWire (IEEE 1394): Ricoh Co Ltd r5c832 IEEE 1394 controller (Rev 05)
......
Ethernet controller: network card model
My Nic model: Ethernet controller: Intel Corporation device 1502 (Rev 04)
Net drive: e1000e-1.6.2.tar.gz, High Version compatible with low version
Install linux IC v3.2.iso in hyper
# Mount/dev/CDROM/Media
#/Media/install. Sh
# Reboot
II,Check whether the NIC Driver exists.
Enter ifconfig-A on the terminal
If only lo link encap appears: local loopback
No NIC Driver.
If eth0 link encap: Ethernet hardware address 00: 1c: BF: CA: 14: D7 is returned
It indicates that the NIC Driver Installation is correct.
3. Create or copy a ifcfg-eth0 File
Delete RM/etc/udev/rules. d/70-persistent-net.rules
CP ifcfg-Lo ifcfg-eth0
Or create a ifcfg-eth0 File
The content is as follows:
Device = eth0
Onboot = Yes
Type = Ethernet
......
This article from the "cold ice blog" blog, please be sure to keep this source http://hanbing.blog.51cto.com/40347/1563135
Centos Nic installation failure in hyper-V