我的电脑原本运行的是 Windows 10,但后来互联网停止工作了 - 它可以连接到我们的网络,但无法访问互联网。我尝试了一下,但决定考虑将我的电脑切换到 Ubuntu,并认为 Windows 更新必定改变了一些东西,所以我全新安装了 Ubuntu 16.04LTS。
仍然无法访问互联网
是否配置
eno1 Link encap:Ethernet HWaddr ac:9e:17:b8:2d:48
inet6 addr: fe80::ae9e:17ff:feb8:2d48/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3700 errors:0 dropped:0 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:262288 (262.2 KB) TX bytes:23450 (23.4 KB)
Interrupt:20 Memory:df200000-df220000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12004 errors:0 dropped:0 overruns:0 frame:0
TX packets:12004 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:889656 (889.6 KB) TX bytes:889656 (889.6 KB)
lspci -knn|grep Eth -A2
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I218-V [8086:15a1]
DeviceName: Onboard LAN
Subsystem: ASUSTeK Computer Inc. Ethernet Connection (2) I218-V [1043:85c4]
Kernel driver in use: e1000e
Kernel modules: e1000e
/etc/网络/接口
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet dhcp
注意,我添加了“auto eno1 iface eno1 inet dhcp”——如果没有这个,ifconfig 输出中就没有 inet6 addr。
我已经通过运行相同操作系统(我目前使用的操作系统)的笔记本电脑测试了连接和电缆,没有任何问题。我尝试重新安装 e1000e 驱动程序,但 BIOS 中禁用了 WoL。任何建议都很好。
编辑 killall -9 dhclient; dhclient -v eno1
Nov 4 10:37:32 liam-G dhclient[2495]: Internet Systems Consortium DHCP Client 4.3.3
Nov 4 10:37:32 liam-G dhclient[2495]: Copyright 2004-2015 Internet Systems Consortium.
Nov 4 10:37:32 liam-G dhclient[2495]: All rights reserved.
Nov 4 10:37:32 liam-G dhclient[2495]: For info, please visit https://www.isc.org/software/dhcp/
Nov 4 10:37:32 liam-G dhclient[2495]:
Nov 4 10:37:32 liam-G dhclient[2495]: can't create /var/lib/dhcp/dhclient.leases: Permission denied
Nov 4 10:37:32 liam-G liamg: /etc/dhcp/dhclient-enter-hooks.d/avahi-autoipd returned non-zero exit status 1
Nov 4 10:37:32 liam-G dhclient[2495]: Open a socket for LPF: Operation not permitted
Nov 4 10:37:32 liam-G dhclient[2495]:
Nov 4 10:37:32 liam-G dhclient[2495]: If you think you have received this message due to a bug rather
Nov 4 10:37:32 liam-G dhclient[2495]: than a configuration issue please read the section on submitting
Nov 4 10:37:32 liam-G dhclient[2495]: bugs on either our web page at www.isc.org or in the README file
Nov 4 10:37:32 liam-G dhclient[2495]: before submitting a bug. These pages explain the proper
Nov 4 10:37:32 liam-G dhclient[2495]: process and the information we find helpful for debugging..
Nov 4 10:37:32 liam-G dhclient[2495]:
Nov 4 10:37:32 liam-G dhclient[2495]: exiting.