Centos Nic installation failure in hyper-V

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.