VmWare虛擬機中網卡更改爲eth0的方法

1、root登錄,cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.bak 


2、 vi /etc/udev/rules.d/70-persistent-net.rules,刪除eth0有關內容,修改eth1爲eth0, 

 

記錄下這個新eth0的mac地址 

 

3、vi /etc/sysconfig/network-scripts/ifcfg-eth0,修改其中的mac地址爲步驟2中記錄的地址。 

 

4、重啓,檢查配置 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章