歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Ubuntu主機更換主板後,主板集成網口無法上網解決

Ubuntu主機更換主板後,主板集成網口無法上網解決

日期:2017/3/1 15:35:54   编辑:關於Linux
Ubuntu主機更換主板後,主板集成網口無法上網解決 ubuntuUbuntu主板網口網絡 Ubuntu主機更換主板後,主板集成網口無法上網。 查詢網絡信息報錯: ifconfig eth0 eth0: 獲取接口信息時發生錯誤: Device not found ifconfig eth1 eth1: 獲取接口信息時發生錯誤: Device not found 打開/etc/udev/rules.d/70-persistent-net.rules 可以發現有新的網卡配置項,例如eth2、eth3(根據原最大eth號遞增)。 雙網口時,也有可能同是兩個eth2,但MAC不同。 解決方法: sudo nano /etc/udev/rules.d/70-persistent-net.rules 注釋或刪除原來的eth0和eth1的配置行,將新網卡配置項eth2、eth3或者雙eth2分別改成eth0、 eth1。 重啟主機即可。 或者: sudo /etc/init.d/networking restart 修改interfaces配置bonding後,以上重啟語句從未成功。 又或者試試?: sudo /etc/init.d/network-interface restart sudo /etc/init.d/network-interface-security restart sudo /etc/init.d/network-manager restart 注意: 本文場景是更換主板後,不重裝Ubuntu系統。 通常MAC地址較小的,eth號也較小。編輯70-persistent-net.rules時需要注意。 以上為雙網口主板,單網口主板只需注釋或刪除eth0後,將eth1改成eth0即可。 更換獨立網卡時,應該同理。
Copyright © Linux教程網 All Rights Reserved