彈出界面eth0siocsifnetmask無效的參數
① service network restart 後eth0 無法獲取IP地址
感覺是你的配置文件名字寫錯了
一般不是/etc/sysconfig/network-scripts/ifcfg-eth0
類似這樣的
② Linux 設置內外ping通,說沒有設備
service network restart重啟下網卡。
③ 我在Linux下用ifconfig命令配置ip地址出現了問題!!
首先確認設備標記是否發生變更
嘗試執行:
iplink show
嵌入式系統執行:
busybox iplink show
看反饋中對應得設備標記是否發生變更(比如可能變為eth1或者其他)
④ ubuntu 網卡啟動不了
在重啟網卡的過程中出現如下錯誤:
shell# /etc/init.d/networking restart
* Reconfiguring network interfaces...
eth0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
解決辦法:
刪除配置規則緩存文件,重啟後會根據現在的網路配置重新生成,然後重啟
shell# rm -rf etc/udev/rules.d/70-persistent-net.rules
shell# reboot
重啟後會發現網卡正常啟動
⑤ 請問各位大蝦,我想在ubuntu中一個網卡配置兩個IP地址,QQ1161913741
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.236.128
netmask 255.255.255.0
gateway 192.168.236.1
iface eth0:1 inet static
address 9.5.1.79
netmask 255.255.0.0