VMware 複製CentOS後無法啟動網卡的解決

來源:互聯網
上載者:User

標籤:vmware   centos   網卡無法啟動   

#首先要保證udev-post 啟動chkconfig --list|grep udevudev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:offservice udev-post start#將原有的eth0那一行注釋,然後將產生的eth1改為eth0vim /etc/udev/rules.d/70-persistent-net.rules # PCI device 0x8086:0x100f (e1000)#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0a:31:75:62:3c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"# PCI device 0x8086:0x100f (e1000)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0a:31:75:62:3c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"#最後修改網卡的設定檔cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0TYPE=EthernetUUID=cs802cs7-087a-af50-812b-f3d20053aa4aONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=noneHWADDR=00:0a:31:75:62:3c#修改MAC地址跟上面設定檔裡面一樣IPADDR=192.168.1.100PREFIX=24GATEWAY=192.168.1.254DNS1=202.103.24.68DEFROUTE=yesIPV4_FAILURE_FATAL=yesIPV6INIT=noNAME="System eth0"#最後reboot系統


本文出自 “吳善強” 部落格,請務必保留此出處http://shanqiangwu.blog.51cto.com/8067564/1632245

VMware 複製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.