歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu報“fail to bring up eth0”

Ubuntu報“fail to bring up eth0”

日期:2017/2/28 15:33:09   编辑:Linux教程

Ubuntu報“fail to bring up eth0” 原因:

eth0網卡不存在

辦法:

1. sudo ifconfig -a //查看所有網卡現狀,看eth0是否存在,在結果列表應該找不到eth0網卡的,除了lo之外,正常應該還有一個ethX

2. vim /etc/network/interfaces //修改內容如下

auto ethX

iface ethX inet dhcp

//或

auto ethX

iface ethX inet static

address 192.168.0.101

netmask 255.255.255.0

gateway 192.168.0.1

3. sudo /etc/init.d/networking restart //重新啟動網卡,問題可解決。

Copyright © Linux教程網 All Rights Reserved