我们最近更换了 ISP,我发现 ubuntu 电脑现在上网很困难。它经常在下载过程中挂起。
当我在有线 Windows 机器上访问 speedtest.net 时,下载速度达到 100MB/s。
无线安卓平板电脑的速度为10MB/s。
当我在 ubuntu 笔记本电脑上尝试相同操作时,它经常挂起并报告套接字错误。
我安装了 speedtest-cli 并看到了如下结果。
服务网络管理器重启通常可以解决这个问题,但我不知道它为什么会挂起。
任何意见,将不胜感激
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ speedtest-cli 正在检索 speedtest.net 配置... 来自 TWC (现为 Spectrum) (97.99.67.127) 的测试... 正在检索 speedtest.net 服务器列表... 根据 ping 选择最佳服务器... 主办方:[23.66 公里]: 24.126 毫秒 测试下载速度...... 下载:6.31 Mbit/s 测试上传速度................ 上传:0.00 Mbit/s $ speedtest-cli 正在检索 speedtest.net 配置... 无法检索速度测试配置 错误:urlopen 错误 [Errno -3] 名称解析暂时失败
~~~~~~~~~~~~
$ ifconfig
eno1 Link encap:Ethernet HWaddr d4:be:d9:16:b0:26
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:20 Memory:e2e00000-e2e20000
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:113642 errors:0 dropped:0 overruns:0 frame:0
TX packets:113642 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:10046445 (10.0 MB) TX bytes:10046445 (10.0 MB)
wlp2s0 Link encap:Ethernet HWaddr 24:77:03:3b:3c:4c
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::ea11:22f4:8e44:76e5/64 Scope:Link
inet6 addr: 2605:6001:e167:6700:5dae:8526:4231:5282/64 Scope:Global
inet6 addr: 2605:6001:e167:6700:7c7a:e8d1:4d11:f74a/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1153546 errors:0 dropped:0 overruns:0 frame:0
TX packets:765597 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
~~~~~~~~~~~~~~~
sudo lshw -C 网络
*-network
description: Ethernet interface
product: 82579LM Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eno1
version: 04
serial: d4:be:d9:16:b0:26
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=3.2.6-k firmware=0.13-3 latency=0 link=no multicast=yes port=twisted pair
resources: irq:28 memory:e2e00000-e2e1ffff memory:e2e80000-e2e80fff ioport:4080(size=32)
*-network
description: Wireless interface
product: Centrino Ultimate-N 6300
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 35
serial: 24:77:03:3b:3c:4c
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet
physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-81-
generic firmware=9.221.4.1 build 25532 ip=192.168.0.10 latency=0 link=yes
multicast=yes wireless=IEEE 802.11abgn
resources: irq:29 memory:e2d00000-e2d01fff
RX bytes:1293352701 (1.2 GB) TX bytes:136286156 (136.2 MB)
~~~~~有线~~~~~~
sudo lshw -C 网络
*-network
description: Ethernet interface
product: 82579LM Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eno1
version: 04
serial: d4:be:d9:16:b0:26
size: 1Gbit/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=3.2.6-k duplex=full firmware=0.13-3 ip=192.168.0.9 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:28 memory:e2e00000-e2e1ffff memory:e2e80000-e2e80fff ioport:4080(size=32)
*-network
description: Wireless interface
product: Centrino Ultimate-N 6300
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 35
serial: 24:77:03:3b:3c:4c
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-81-generic firmware=9.221.4.1 build 25532 ip=192.168.0.10 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
resources: irq:29 memory:e2d00000-e2d01fff
~~~~~有线~~~~~
$ ifconfig
eno1 Link encap:Ethernet HWaddr d4:be:d9:16:b0:26
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: 2605:6001:e167:6700:4ca3:18de:cd85:9ba7/64 Scope:Global
inet6 addr: fe80::c80f:aaa4:7183:e5b5/64 Scope:Link
inet6 addr: 2605:6001:e167:6700:4bbc:d3c4:e746:a6dd/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:321 errors:0 dropped:0 overruns:0 frame:0
TX packets:348 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:77840 (77.8 KB) TX bytes:58218 (58.2 KB)
Interrupt:20 Memory:e2e00000-e2e20000
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:114936 errors:0 dropped:0 overruns:0 frame:0
TX packets:114936 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:10157001 (10.1 MB) TX bytes:10157001 (10.1 MB)
wlp2s0 Link encap:Ethernet HWaddr 24:77:03:3b:3c:4c
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::ea11:22f4:8e44:76e5/64 Scope:Link
inet6 addr: 2605:6001:e167:6700:5dae:8526:4231:5282/64 Scope:Global
inet6 addr: 2605:6001:e167:6700:7c7a:e8d1:4d11:f74a/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1155782 errors:0 dropped:0 overruns:0 frame:0
TX packets:767395 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1294160759 (1.2 GB) TX bytes:136590978 (136.5 MB)