弹出界面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