debian jessie 网络设置

从stable更换到testing后,更新系统apt-get dist-upgrade,然后是等待,

然后不耐烦了不等了,关机!

第二天早上开机apt-get update,找不到源!

用ifconfig查看发现只有回环网络接口lo,没有eth0
解决办法:

打开/etc/network/interface

在原有的

# Loopback
#
auto lo
iface lo inet loopback

下面加上:

auto eth0
iface eth0 inet dhcp

终端中设置eth0的ip地址:

sudo ifconfig eth0 192.168.0.88 netmask 255.255.255.0 up

重启服务

sudo /etc/init.d/networking restart

apt-get update

原文地址:https://www.cnblogs.com/ibgo/p/7468783.html