Hyper-v中安裝centos網卡故障

來源:互聯網
上載者:User

標籤:網卡驅動   linux   ubuntu   intel   程式   

故障:

1、/etc/sysconfig/network-scripts 目錄下無ifcfg-eth0

2、ifconfig命令無eth0,僅顯示lo


解決方案:

一、如果輸入ifconfig,沒有eth0:,那你需要安裝網卡驅動,如下:

ubuntu中查看網卡類型及是否安裝網路卡驅動程式   

1輸入: lspci 或者 lspci –v 或lspci–vv

會顯示所有的硬體資訊和版本,然後在網上搜尋linux下的驅動程式
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02) 
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05) 
……

其中: Ethernet controller: 是網卡型號

我的網卡型號:Ethernet controller: Intel Corporation Device 1502 (rev 04)

 

網驅動為:e1000e-1.6.2.tar.gz, 高版本可相容低版本


hyper下安裝Linux IC v3.2.iso

# mount /dev/cdrom /media

# /media/install.sh

# reboot


二、查看是否有網卡驅動

在終端輸入 ifconfig –a

如果只出現   lo     Link encap:本地環回   
 

說明沒有網卡驅動。


如果還       eth0       Link encap:乙太網路 硬體地址 00:1c:bf:ca:14:d7   
 

說明網卡驅動安裝沒有問題


三、建立或複製ifcfg-eth0檔案


刪除 rm  /etc/udev/rules.d/70-persistent-net.rules


cp ifcfg-lo ifcfg-eth0

或建立ifcfg-eth0檔案

內容如下:

DEVICE=eth0

ONBOOT=yes

TYPE=Ethernet

……




本文出自 “寒冰BLOG” 部落格,請務必保留此出處http://hanbing.blog.51cto.com/40347/1563135

Hyper-v中安裝centos網卡故障

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.