我昨天将系统从Debian 6升级到了Debian 7.3。
重新启动后,我select了新的内核linux-image-3.2.0-4-amd64
,networking变得不可用。
我尝试sudo service networking restart
并得到以下错误:
RTNETLINK answers: File exists Failed to bring up eth0.
我只设置为eth0。 这是我的/etc/network/interfaces
。
auto lo eth0 iface lo inet loopback iface eth0 inet static address xxxx netmask 255.255.255.0 gateway xxxx
路由表为空sudo route -n
:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
但是,旧的内核2.6.32-5-amd64 x86_64
仍然有效。
任何帮助将不胜感激。
检查新内核是否可以看到以下界面:
ifconfig -a
如果界面被列出,检查它的名字,
然后手动分配一个IP,假设名称是eth0
ifconfig eth0 IP_ADDRESS netmask NET_MASK
例如:ifconfig eth0 192.168.1.1 netmask 255.255.255.0
添加默认的gw,假设网关是192.168.1.254
route add default gw 192.168.1.254
这只是一个临时解决scheme。