Thu Apr 20 23:01:21 CST 2017补充:
ifconfig -a的输出(debootstrap装的系统,一开始没有,所以耽误了一些时间才传上来)
代码: 全选
enp0s3: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 08:00:27:eb:f2:6c txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
http://www.linuxquestions.org/questions ... 175465295/
Sat Apr 22 10:03:47 CST 2017补充:For DHCP, the /etc/network/interfaces file should look like this:代码: 全选
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcp
不好意思
上面那个eth0是jessie的写法
应该stretch应该把eth0改成enp0s3
感谢5楼提醒