您尚未登录。

#1 2017-10-17 00:33:45

freezai
会员
注册时间: 2011-11-20
帖子: 128

[求助]无线网络问题:可以连接无线路由器,但无法上网

话说我的archlinux系统已经比较稳定地运行了5、6年了。但是前几天某一次开机后发现无法使用无线上网了,由于使用网线可以上网,而且家里其他的无线设备也可以正常上网,初步判断不是路由器的问题。现在的情况是:

1、开机之后无线网卡可以正确的分配到IP地址

>>ifconfig -a wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.105  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::219:7dff:fe98:f9f8  prefixlen 64  scopeid 0x20<link>
        ether 00:19:7d:98:f9:f8  txqueuelen 1000  (Ethernet)
        RX packets 163  bytes 15641 (15.2 KiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 42  bytes 4845 (4.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

2、netctl可以启动

>>netctl status wlan0-TP-LINK_501 
● netctl@wlan0\x2dTP\x2dLINK_501.service - Automatically generated profile by wifi-menu
   Loaded: loaded (/etc/systemd/system/netctl@wlan0\x2dTP\x2dLINK_501.service; enabled; vendor preset: disabled)
   Active: active (exited) since Mon 2017-10-16 15:20:23 CST; 20min ago
     Docs: man:netctl.profile(5)
  Process: 570 ExecStart=/usr/lib/netctl/network start wlan0-TP-LINK_501 (code=exited, status=0/SUCCESS)
 Main PID: 570 (code=exited, status=0/SUCCESS)
   Status: "online"
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/system-netctl.slice/netctl@wlan0\x2dTP\x2dLINK_501.service
           ├─ 740 wpa_supplicant -q -B -P /run/wpa_supplicant-wlan0.pid -i wlan0 -D nl80211,wext -c/run/netctl/wpa
           └─1274 dhcpcd -4 -q -t 30 -L wlan0

3、用另一台电脑登录无线路由器管理界面,可以看到这台机器已连接,但无上下行数据。

4、用tcpdump抓包结果如下:

>>sudo tcpdump -i wlan0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 bytes
15:53:32.972031 IP6 Arch-Linux > ff02::2: ICMP6, router solicitation, length 16
15:53:33.007203 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:53:34.011983 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:53:35.052001 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:53:38.012462 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:53:39.051987 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:53:40.091985 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:53:53.852000 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:20.321623 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:20.659822 IP _gateway.45919 > 255.255.255.255.commplex-link: UDP, length 117
15:54:21.371941 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:22.411944 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:25.322067 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:26.332002 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:27.371982 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:30.330079 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:31.371966 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:32.411950 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:35.332117 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:36.411998 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:37.452005 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:40.341117 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:40.660069 IP _gateway.45919 > 255.255.255.255.commplex-link: UDP, length 117
15:54:41.371998 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:42.411977 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:42.761982 IP6 Arch-Linux > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
15:54:42.997083 EAPOL key (3) v2, len 95
15:54:42.997628 EAPOL key (3) v1, len 117
15:54:43.008496 EAPOL key (3) v2, len 151
15:54:43.009003 EAPOL key (3) v1, len 95
15:54:43.031993 IP6 Arch-Linux > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
15:54:43.752355 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:19:7d:98:f9:f8 (oui Unknown), length 359
15:54:43.764271 IP _gateway.bootps > Arch-Linux.bootpc: BOOTP/DHCP, Reply, length 274
15:54:43.812184 ARP, Request who-has Arch-Linux tell 0.0.0.0, length 28
15:54:43.931951 IP6 Arch-Linux > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
15:54:44.822049 ARP, Request who-has Arch-Linux tell 0.0.0.0, length 28
15:54:46.108542 ARP, Request who-has Arch-Linux tell 0.0.0.0, length 28
15:54:48.142466 ARP, Request who-has Arch-Linux tell Arch-Linux, length 28
15:54:49.437171 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:50.145306 ARP, Request who-has Arch-Linux tell Arch-Linux, length 28
15:54:50.491923 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:51.531955 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:54.442649 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:55.451950 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:56.491946 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:54:59.447591 ARP, Request who-has _gateway tell Arch-Linux, length 28
15:55:00.492004 ARP, Request who-has _gateway tell Arch-Linux, length 28

5、查看网关

>>ip route show 
default via 192.168.1.1 dev wlan0 src 192.168.1.105 metric 303 
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.105 metric 303

>>route -n     
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    303    0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     303    0        0 wlan0

对于网络问题我基本是个门外汉,所以请大家帮我看看问题出在哪里,怎么解决?谢谢!

补充:
6、不能ping通网关和同一路由器下的其他设备

ping -c3 192.168.1.102
PING 192.168.1.102 (192.168.1.102) 56(84) bytes of data.
From 192.168.1.103 icmp_seq=1 Destination Host Unreachable
From 192.168.1.103 icmp_seq=2 Destination Host Unreachable
From 192.168.1.103 icmp_seq=3 Destination Host Unreachable

--- 192.168.1.102 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2098ms
pipe 3
>>ping -c3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.103 icmp_seq=1 Destination Host Unreachable
From 192.168.1.103 icmp_seq=2 Destination Host Unreachable
From 192.168.1.103 icmp_seq=3 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2096ms
pipe 3

最近编辑记录 freezai (2017-10-17 13:45:02)


Arch Linux的老小白
—“老”当总讲,就是一贯地卖年糕
—连驴打滚都没卖过
—没有

离线

#2 2017-10-17 11:16:01

matrikslee
会员
注册时间: 2017-04-21
帖子: 442
个人网站

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

咋不试试能不能ping通网关呢?能不能ping通连接在路由器上的其他设备呢?

不能上网也有可能是dns问题,也就是系统在用无线网卡的时候的dns配置出问题了,虽然这种可能性不大。

离线

#3 2017-10-17 13:41:47

freezai
会员
注册时间: 2011-11-20
帖子: 128

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

matrikslee 说:

咋不试试能不能ping通网关呢?能不能ping通连接在路由器上的其他设备呢?

不能上网也有可能是dns问题,也就是系统在用无线网卡的时候的dns配置出问题了,虽然这种可能性不大。

哦,试过了,忘贴出来了。不能ping通网关和同一路由器下的其他设备。


Arch Linux的老小白
—“老”当总讲,就是一贯地卖年糕
—连驴打滚都没卖过
—没有

离线

#4 2017-10-17 13:56:05

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

一直在进行 ARP 询问但是没有回应,说明数据包没发出去,或者收不到回应包。

检查内核日志看有无相关报错。考虑降级内核。

----

你这诊断信息写得挺详细的,不像是门外汉呢。

离线

#5 2017-10-17 14:07:45

freezai
会员
注册时间: 2011-11-20
帖子: 128

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

依云 说:

一直在进行 ARP 询问但是没有回应,说明数据包没发出去,或者收不到回应包。

检查内核日志看有无相关报错。考虑降级内核。

----

你这诊断信息写得挺详细的,不像是门外汉呢。

我去查看内核日志。你的意思是有可能因为内核版本的原因?

会写诊断没用,会治病才是医生。


Arch Linux的老小白
—“老”当总讲,就是一贯地卖年糕
—连驴打滚都没卖过
—没有

离线

#6 2017-10-17 14:39:22

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

freezai 说:

我去查看内核日志。你的意思是有可能因为内核版本的原因?

会写诊断没用,会治病才是医生。

怀疑是网卡驱动的问题。

至少能够很快就进入正题。现在我早已没兴趣挤牙膏似的问别人问题的症状了,直接忽略掉的。

离线

#7 2017-10-17 20:08:30

zsrkmyn
lazy...
注册时间: 2013-05-05
帖子: 331

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

arp 命令输出什么?是空的的话查看一下路由器 mac 地址然后手动用 arp --set 设置一下试试?
iptables -L -v 看看有没有防火墙过滤?
好奇怪的问题……
重启试试

离线

#8 2017-10-18 13:55:11

freezai
会员
注册时间: 2011-11-20
帖子: 128

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

依云 说:
freezai 说:

我去查看内核日志。你的意思是有可能因为内核版本的原因?

会写诊断没用,会治病才是医生。

怀疑是网卡驱动的问题。

至少能够很快就进入正题。现在我早已没兴趣挤牙膏似的问别人问题的症状了,直接忽略掉的。

嗯,我知道了。有可能,毕竟这个笔记本是2006年的。硬件和驱动都太古老了,谢谢


Arch Linux的老小白
—“老”当总讲,就是一贯地卖年糕
—连驴打滚都没卖过
—没有

离线

#9 2017-10-18 13:56:36

freezai
会员
注册时间: 2011-11-20
帖子: 128

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

zsrkmyn 说:

arp 命令输出什么?是空的的话查看一下路由器 mac 地址然后手动用 arp --set 设置一下试试?
iptables -L -v 看看有没有防火墙过滤?
好奇怪的问题……
重启试试

谢谢,我去看看。
如果说我哪条linux命令用的最6,一定是reboot


Arch Linux的老小白
—“老”当总讲,就是一贯地卖年糕
—连驴打滚都没卖过
—没有

离线

#10 2017-10-18 18:01:14

roadgo
会员
注册时间: 2012-04-07
帖子: 380

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

wlan0这个东东有可能变了。

离线

#11 2017-10-19 11:50:26

freezai
会员
注册时间: 2011-11-20
帖子: 128

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

roadgo 说:

wlan0这个东东有可能变了。

啥意思?我要怎么识破它变成了啥?


Arch Linux的老小白
—“老”当总讲,就是一贯地卖年糕
—连驴打滚都没卖过
—没有

离线

#12 2017-10-20 19:30:50

roadgo
会员
注册时间: 2012-04-07
帖子: 380

Re: [求助]无线网络问题:可以连接无线路由器,但无法上网

以前都是wlan0,现在都变了。wiki有的

离线

页脚