Ubuntu 14.04 昨天运行良好。我想我安装了一些常规更新。今天当我启动我的电脑(一台 ThinkPad x220 笔记本电脑)时,我无法获得有线互联网连接(顶部栏中有箭头符号表示连接,但我无法连接到网页或ping
谷歌)。但是,我能够使用其网络共享功能无线连接到我的手机。
我重启进入 Windows 8,一切正常(现在依然如此,我写这篇文章是在 Windows 上写的)。使用 ubuntu live cd 一切也都正常。然后当我重启回 ubuntu 时,我甚至无法再无线连接到我的手机了。
我尝试过从网络管理器中删除连接并重新连接。我还尝试过禁用无线(我的笔记本电脑上有一个硬件开关)。这两种方法都没有什么效果。
我住在公寓大楼里。我猜想某处有一个路由器,但我无法访问它,只能使用墙上的一个以太网端口。
编辑:我发现如果禁用 IPv6,我可以 ping IP 地址(但仍然无法访问网站)。添加 DNS 服务器的常规方法(通过“编辑连接”)不起作用,但我能够通过创建文件 /etc/resolv.conf 并添加以下行来使其工作nameserver 8.8.8.8
。但我仍然更喜欢不需要禁用 IPv6 的解决方案。
以下是输出ifconfig -a
:
eth0 Link encap:Ethernet HWaddr f0:de:f1:8c:99:da
inet6 addr: 2001:1620:2018:1c:d101:c3c8:2dca:19a2/64 Scope:Global
inet6 addr: 2001:1620:2018:1c:f2de:f1ff:fe8c:99da/64 Scope:Global
inet6 addr: fe80::f2de:f1ff:fe8c:99da/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1877 errors:0 dropped:0 overruns:0 frame:0
TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:123802 (123.8 KB) TX bytes:29027 (29.0 KB)
Interrupt:20 Memory:f2500000-f2520000
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:5784 errors:0 dropped:0 overruns:0 frame:0
TX packets:5784 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:439348 (439.3 KB) TX bytes:439348 (439.3 KB)
wlan0 Link encap:Ethernet HWaddr 74:de:2b:0d:90:8a
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1785 (1.7 KB) TX bytes:16437 (16.4 KB)
以下是输出sudo lshw -C network
*-network
description: Ethernet interface
product: 82579LM Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 04
serial: f0:de:f1:8c:99:da
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k duplex=full firmware=0.13-3 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:41 memory:f2500000-f251ffff memory:f252b000-f252bfff ioport:6080(size=32)
*-network
description: Wireless interface
product: RTL8188CE 802.11b/g/n WiFi Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
version: 01
serial: 74:de:2b:0d:90:8a
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtl8192ce driverversion=3.13.0-45-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 ioport:5000(size=256) memory:f2400000-f2403fff
ipconfig /all
以下是Windows 中的输出:
Windows IP Configuration
Host Name . . . . . . . . . . . . : Explorer
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Wireless LAN adapter Wireless Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : 1x1 11b/g/n Wireless LAN PCI Express Half
Mini Card Adapter
Physical Address. . . . . . . . . : 74-DE-2B-0D-90-8A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82579LM Gigabit Network Connecti
on
Physical Address. . . . . . . . . : F0-DE-F1-8C-99-DA
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:1620:2018:1c:5c6d:939e:a030:23b2(Pre
ferred)
Temporary IPv6 Address. . . . . . : 2001:1620:2018:1c:6de5:ffa5:cced:3911(Pre
ferred)
Link-local IPv6 Address . . . . . : fe80::5c6d:939e:a030:23b2%10(Preferred)
IPv4 Address. . . . . . . . . . . : 82.197.169.178(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.192
Lease Obtained. . . . . . . . . . : 15 February 2015 12:14:45
Lease Expires . . . . . . . . . . : 15 February 2015 23:14:44
Default Gateway . . . . . . . . . : fe80::768e:f8ff:fe74:6500%10
82.197.169.129
DHCP Server . . . . . . . . . . . : 77.109.140.198
DNS Servers . . . . . . . . . . . : 77.109.128.2
213.144.129.20
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.{52B632EE-432C-43F8-8127-3CB90FFACBD6}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter isatap.{34F5D21C-C5B4-414E-8C3C-BACEA03584CB}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6abd:12:3cb9:ad3a:564d(Prefer
red)
Link-local IPv6 Address . . . . . : fe80::12:3cb9:ad3a:564d%12(Preferred)
Default Gateway . . . . . . . . . :
NetBIOS over Tcpip. . . . . . . . : Disabled
谢谢你的时间。