wifi经常连接好久,连接不上,怎么破?

笔记本/便携移动设备,手机平板等软硬件
回复
wanggaoqiu
帖子: 52
注册时间: 2009-03-30 11:31

wifi经常连接好久,连接不上,怎么破?

#1

帖子 wanggaoqiu » 2017-08-19 11:10

如题,开机经常连接好久,连接不上。
wifi本身是没有问题的。
谢谢!
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: wifi经常连接好久,连接不上,怎么破?

#2

帖子 vickycq » 2017-08-19 13:32

执行以下指令将结果全株复制贴上来

代码: 全选

uname -a
cat /etc/issue
sudo lshw -numeric -C net
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
wanggaoqiu
帖子: 52
注册时间: 2009-03-30 11:31

Re: wifi经常连接好久,连接不上,怎么破?

#3

帖子 wanggaoqiu » 2017-08-21 14:07

a@a-Z8350:~$ uname -a
Linux a-Z8350 4.4.0-2017080701+ #90 SMP Mon Aug 7 15:28:35 CST 2017 x86_64 x86_64 x86_64 GNU/Linux
a@a-Z8350:~$ cat /etc/issue
Ubuntu 16.04.2 LTS \n \l

自己编译的4.4.0的内核。

a@a-Z8350:~$ sudo lshw -numeric -C net
[sudo] password for a:
*-network:0
description: Wireless interface
physical id: 1
logical name: wlan0
serial: a0:2c:36:cd:e6:ed
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8723bs ip=192.168.1.158 multicast=yes wireless=IEEE 802.11bgn
*-network:1
description: Ethernet interface
physical id: 2
logical name: enp0s20u2
serial: 82:50:7b:5f:23:68
size: 10Mbit/s
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.08.2 duplex=half link=no multicast=yes port=MII speed=10Mbit/s
a@a-Z8350:~$ ifconfig
enp0s20u2 Link encap:Ethernet HWaddr 82:50:7b:5f:23:68
inet6 addr: fe80::fb3a:7ebe:fb97:1711/64 Scope:Link
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)

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:220 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16678 (16.6 KB) TX bytes:16678 (16.6 KB)

wlan0 Link encap:Ethernet HWaddr a0:2c:36:cd:e6:ed
inet addr:192.168.1.158 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ebcd:34ac:2d84:7d63/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36 errors:0 dropped:41 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5162 (5.1 KB) TX bytes:10920 (10.9 KB)

a@a-Z8350:~$ ping www.baidu.com
PING www.a.shifen.com (119.75.216.20) 56(84) bytes of data.
64 bytes from 119.75.216.20: icmp_seq=1 ttl=50 time=262 ms
64 bytes from 119.75.216.20: icmp_seq=2 ttl=50 time=300 ms
64 bytes from 119.75.216.20: icmp_seq=3 ttl=50 time=241 ms
64 bytes from 119.75.216.20: icmp_seq=4 ttl=50 time=233 ms
64 bytes from 119.75.216.20: icmp_seq=5 ttl=50 time=245 ms
64 bytes from 119.75.216.20: icmp_seq=6 ttl=50 time=460 ms
64 bytes from 119.75.216.20: icmp_seq=7 ttl=50 time=110 ms
64 bytes from 119.75.216.20: icmp_seq=8 ttl=50 time=287 ms
64 bytes from 119.75.216.20: icmp_seq=9 ttl=50 time=231 ms
64 bytes from 119.75.216.20: icmp_seq=10 ttl=50 time=511 ms
64 bytes from 119.75.216.20: icmp_seq=11 ttl=50 time=179 ms
64 bytes from 119.75.216.20: icmp_seq=12 ttl=50 time=259 ms
64 bytes from 119.75.216.20: icmp_seq=13 ttl=50 time=263 ms
64 bytes from 119.75.216.20: icmp_seq=14 ttl=50 time=83.0 ms
64 bytes from 119.75.216.20: icmp_seq=15 ttl=50 time=181 ms
64 bytes from 119.75.216.20: icmp_seq=16 ttl=50 time=254 ms
64 bytes from 119.75.216.20: icmp_seq=17 ttl=50 time=51.7 ms
64 bytes from 119.75.216.20: icmp_seq=18 ttl=50 time=82.3 ms
64 bytes from 119.75.216.20: icmp_seq=19 ttl=50 time=279 ms
64 bytes from 119.75.216.20: icmp_seq=20 ttl=50 time=189 ms
64 bytes from 119.75.216.20: icmp_seq=21 ttl=50 time=161 ms
64 bytes from 119.75.216.20: icmp_seq=22 ttl=50 time=199 ms
64 bytes from 119.75.216.20: icmp_seq=23 ttl=50 time=216 ms
64 bytes from 119.75.216.20: icmp_seq=24 ttl=50 time=167 ms
64 bytes from 119.75.216.20: icmp_seq=25 ttl=50 time=367 ms
64 bytes from 119.75.216.20: icmp_seq=26 ttl=50 time=188 ms
64 bytes from 119.75.216.20: icmp_seq=27 ttl=50 time=66.1 ms
64 bytes from 119.75.216.20: icmp_seq=28 ttl=50 time=71.8 ms
64 bytes from 119.75.216.20: icmp_seq=29 ttl=50 time=86.6 ms
64 bytes from 119.75.216.20: icmp_seq=30 ttl=50 time=102 ms
64 bytes from 119.75.216.20: icmp_seq=31 ttl=50 time=88.6 ms
64 bytes from 119.75.216.20: icmp_seq=32 ttl=50 time=144 ms
64 bytes from 119.75.216.20: icmp_seq=33 ttl=50 time=84.2 ms
64 bytes from 119.75.216.20: icmp_seq=34 ttl=50 time=123 ms
64 bytes from 119.75.216.20: icmp_seq=35 ttl=50 time=50.6 ms
64 bytes from 119.75.216.20: icmp_seq=36 ttl=50 time=166 ms
^C
--- www.a.shifen.com ping statistics ---
38 packets transmitted, 36 received, 5% packet loss, time 37065ms
rtt min/avg/max/mdev = 50.689/194.289/511.605/107.009 ms

这是运行了上述命令后,桌面右上角的wifi图标还显示wifi在一直连接中。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: wifi经常连接好久,连接不上,怎么破?

#4

帖子 poloshiao » 2017-08-21 16:46

wifi经常连接好久,连接不上
*-network:1
description: Ethernet interface
physical id: 2
logical name: enp0s20u2
serial: 82:50:7b:5f:23:68
size: 10Mbit/s
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.08.2 duplex=half link=no multicast=yes port=MII speed=10Mbit/s
暫時 從 Bios 把有線網卡 設定為 disabled 看看
如果問題依舊 請再貼文
wanggaoqiu
帖子: 52
注册时间: 2009-03-30 11:31

Re: wifi经常连接好久,连接不上,怎么破?

#5

帖子 wanggaoqiu » 2017-08-21 17:38

poloshiao 写了:
wifi经常连接好久,连接不上
*-network:1
description: Ethernet interface
physical id: 2
logical name: enp0s20u2
serial: 82:50:7b:5f:23:68
size: 10Mbit/s
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.08.2 duplex=half link=no multicast=yes port=MII speed=10Mbit/s
暫時 從 Bios 把有線網卡 設定為 disabled 看看
如果問題依舊 請再貼文

大部分时候是能正常连接的。
wanggaoqiu
帖子: 52
注册时间: 2009-03-30 11:31

Re: wifi经常连接好久,连接不上,怎么破?

#6

帖子 wanggaoqiu » 2017-08-21 17:39

poloshiao 写了:
wifi经常连接好久,连接不上
*-network:1
description: Ethernet interface
physical id: 2
logical name: enp0s20u2
serial: 82:50:7b:5f:23:68
size: 10Mbit/s
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.08.2 duplex=half link=no multicast=yes port=MII speed=10Mbit/s
暫時 從 Bios 把有線網卡 設定為 disabled 看看
如果問題依舊 請再貼文
有线的网线没有插。只有联接wifi.
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: wifi经常连接好久,连接不上,怎么破?

#7

帖子 poloshiao » 2017-08-21 17:48

有线的网线没有插。
1. 纜線插不插 跟有線網卡 是否被啟動 沒有影響
1-1. 有些症狀 需要試試才知道如何抓錯
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: wifi经常连接好久,连接不上,怎么破?

#8

帖子 vickycq » 2017-08-21 22:25

wanggaoqiu 写了:driver=rtl8723bs ip=192.168.1.158
inet addr:192.168.1.158 Bcast:192.168.1.255 Mask:255.255.255.0

64 bytes from 119.75.216.20: icmp_seq=1 ttl=50 time=262 ms
64 bytes from 119.75.216.20: icmp_seq=17 ttl=50 time=51.7 ms

这是运行了上述命令后,桌面右上角的wifi图标还显示wifi在一直连接中。
在运行上述命令的同时,桌面右上角的wifi图标还显示wifi在一直连接中,但命令结果显示已经获取到 ip 地址,也可以 ping 通百度。您看看是不是已经连接成功了,只是图标显示问题。(这是可能的)
在连接过程中使用 sudo journalctl -f 或 sudo tail -f /var/log/syslog 查看系统日志,看连接过程中的状态
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复