当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 14 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-10-18 9:47 

注册: 2016-10-15 13:57
帖子: 15
系统: ubuntu 16.10
送出感谢: 0 次
接收感谢: 0 次
我的电脑断网后 怎么也连不上,只有重启才能重新连上,为什么?怎么设置才能不用重启链接网络??


页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-10-18 10:05 
头像

注册: 2011-03-20 13:12
帖子: 4521
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
foreast 写道:
我的电脑断网

1. 说明“断”掉的是有线网/无线网;
2. 说明是怎样“断网”的;
3. 执行以下指令将结果全部复制贴上来
代码:
uname -a
cat /etc/issue
lspci -knn | grep -iA2 net
lsusb
sudo lshw -numeric -C net


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
3 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-10-19 21:55 

注册: 2016-10-15 13:57
帖子: 15
系统: ubuntu 16.10
送出感谢: 0 次
接收感谢: 0 次
:Cry 又断了 我把你给的命令结果贴上 你帮我看一下 谢谢了
@ubuntu:~$ uname -a

Linux ubuntu 4.8.0-22-generic #24-Ubuntu SMP Sat Oct 8 09:15:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

@ubuntu:~$ cat /etc/issue

Ubuntu 16.10 \n \l

@ubuntu:~$ lspci -knn | grep -iA2 net

03:00.0 Network controller [0280]: Qualcomm Atheros AR9287 Wireless Network Adapter (PCI-Express) [168c:002e] (rev 01)
Subsystem: Foxconn International, Inc. T77H167.00 [105b:e034]
Kernel driver in use: ath9k
--
04:00.0 Ethernet controller [0200]: Broadcom Limited NetLink BCM57785 Gigabit Ethernet PCIe [14e4:16b5] (rev 10)
Subsystem: Acer Incorporated [ALI] NetLink BCM57785 Gigabit Ethernet PCIe [1025:0500]
Kernel driver in use: tg3
Kernel modules: tg3

@ubuntu:~$ lsusb

Bus 002 Device 003: ID 17ef:6016 Lenovo
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04fc:2801 Sunplus Technology Co., Ltd
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

@ubuntu:~$ sudo lshw -numeric -C net
[sudo] password for :

*-network DISABLED
description: Wireless interface
product: AR9287 Wireless Network Adapter (PCI-Express) [168C:2E]
vendor: Qualcomm Atheros [168C]
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
version: 01
serial: e0:06:e6:29:db:12
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.8.0-22-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:17 memory:f3500000-f350ffff
*-network
description: Ethernet interface
product: NetLink BCM57785 Gigabit Ethernet PCIe [14E4:16B5]
vendor: Broadcom Limited [14E4]
physical id: 0
bus info: pci@0000:04:00.0
logical name: eth0
version: 10
serial: 20:6a:8a:7d:3b:83
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi msix pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 duplex=full firmware=sb latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:19 memory:f3400000-f340ffff memory:f3410000-f341ffff memory:cfa00000-cfa007ff


页首
 用户资料  
 
4 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-10-19 23:10 
头像

注册: 2011-03-20 13:12
帖子: 4521
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
foreast 写道:
Linux ubuntu 4.8.0-22-generic #24-Ubuntu SMP Sat Oct 8 09:15:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
*-network DISABLED
product: AR9287 Wireless Network Adapter (PCI-Express) [168C:2E]
logical name: wlan0

下次遇到断网时,立刻执行以下指令
假设用户名为 foreast
代码:
sudo journalctl --no-pager | tail -n500 | tee -a /home/foreast/diag
sudo rfkill list all | tee -a /home/foreast/diag
sudo ifconfig -a | tee -a /home/foreast/diag
sudo iwconfig | tee -a /home/foreast/diag
lsmod | tee -a /home/foreast/diag
cat /sys/class/dmi/id/{sys_vendor,product_name} | tee -a /home/foreast/diag


然后执行以下指令看能否恢复网络连接
代码:
sudo rfkill unblock all
sudo ifconfig wlan0 up
sudo modprobe -r ath9k; sleep 1; sudo modprobe ath9k
sudo systemctl restart NetworkManager


网络连接恢复后,执行以下指令
代码:
sudo apt install pastebinit
cat /home/foreast/diag | pastebinit

将回应的网址 (http://paste.ubuntu.com/XXXXXXX) 全部复制贴上来


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
5 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-10-24 13:57 

注册: 2016-10-15 13:57
帖子: 15
系统: ubuntu 16.10
送出感谢: 0 次
接收感谢: 0 次
你的命令我试过了还是断,断了后有的时候能自动连,有的时候连不上,不用重启电脑,把网线拔掉,再插上,就连上了。


页首
 用户资料  
 
6 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-10-24 16:18 

注册: 2009-08-04 16:33
帖子: 16891
送出感谢: 21
接收感谢: 1826
引用:
*-network DISABLED
product: AR9287 Wireless Network Adapter (PCI-Express) [168C:2E]
logical name: wlan0
physical id: 0
configuration: broadcast=yes driver=ath9k driverversion=4.8.0-22-generic firmware=N/A

引用:
*-network
description: Ethernet interface
product: NetLink BCM57785 Gigabit Ethernet PCIe [14E4:16B5]
vendor: Broadcom Limited [14E4]
physical id: 0
bus info: pci@0000:04:00.0
logical name: eth0
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 duplex=full firmware=sb latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s

1. 你的無線網卡驅動 ath9k 可能不是合適驅動 或者 沒有合適設定
導致 去爭用 有線網卡的 physical id: 0
1-1. 一般 有線網卡的 physical id 跟 有線網卡的 physical id 應該是不一樣的
引用:
我的电脑断网后

引用:
1. 说明“断”掉的是有线网/无线网;

引用:
断了后有的时候能自动连,有的时候连不上,不用重启电脑,把网线拔掉,再插上,就连上了。

2. 建議
2-1. 測試有線網卡時 把 無線網卡 拔出 或 從 Bios 關閉
2-2. 測試無線網卡時 把 有線網卡 從 Bios 關閉
2-3. 如果是從左上方連線圖示設定連線 確認 自動連線 有沒有 打勾 (包含有線及無線)


页首
 用户资料  
 
7 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-11-21 11:27 
头像

注册: 2006-07-08 14:07
帖子: 1805
送出感谢: 14
接收感谢: 1
poloshiao 写道:
引用:
*-network DISABLED
product: AR9287 Wireless Network Adapter (PCI-Express) [168C:2E]
logical name: wlan0
physical id: 0
configuration: broadcast=yes driver=ath9k driverversion=4.8.0-22-generic firmware=N/A

引用:
*-network
description: Ethernet interface
product: NetLink BCM57785 Gigabit Ethernet PCIe [14E4:16B5]
vendor: Broadcom Limited [14E4]
physical id: 0
bus info: pci@0000:04:00.0
logical name: eth0
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 duplex=full firmware=sb latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s

1. 你的無線網卡驅動 ath9k 可能不是合適驅動 或者 沒有合適設定
導致 去爭用 有線網卡的 physical id: 0
1-1. 一般 有線網卡的 physical id 跟 有線網卡的 physical id 應該是不一樣的
引用:
我的电脑断网后

引用:
1. 说明“断”掉的是有线网/无线网;

引用:
断了后有的时候能自动连,有的时候连不上,不用重启电脑,把网线拔掉,再插上,就连上了。

2. 建議
2-1. 測試有線網卡時 把 無線網卡 拔出 或 從 Bios 關閉
2-2. 測試無線網卡時 把 有線網卡 從 Bios 關閉
2-3. 如果是從左上方連線圖示設定連線 確認 自動連線 有沒有 打勾 (包含有線及無線)


似呼也有这现像


页首
 用户资料  
 
8 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-11-21 11:31 
头像

注册: 2006-07-08 14:07
帖子: 1805
送出感谢: 14
接收感谢: 1
代码:
sudo lshw -numeric -C net
[sudo] 密码:
  *-network               
       description: Ethernet interface
       product: NetLink BCM57780 Gigabit Ethernet PCIe [14E4:1692]
       vendor: Broadcom Corporation [14E4]
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: enp1s0
       version: 01
       serial: 88:ae:1d:82:50:37
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 duplex=half firmware=sb latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:28 memory:b3400000-b340ffff
  *-network
       description: Wireless interface
       product: AR9287 Wireless Network Adapter (PCI-Express) [168C:2E]
       vendor: Qualcomm Atheros [168C]
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 01
       serial: 4c:0f:6e:10:4e:2b
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=4.4.0-47-generic firmware=N/A ip=192.168.1.115 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:17 memory:b2400000-b240ffff


页首
 用户资料  
 
9 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-11-21 11:34 
头像

注册: 2006-07-08 14:07
帖子: 1805
送出感谢: 14
接收感谢: 1
突然断网(无线)时,电脑很卡。但系统管理器里没看到异常。


页首
 用户资料  
 
10 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-11-21 11:35 
头像

注册: 2006-07-08 14:07
帖子: 1805
送出感谢: 14
接收感谢: 1
@poloshiao


页首
 用户资料  
 
11 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-11-21 11:45 
头像

注册: 2006-07-08 14:07
帖子: 1805
送出感谢: 14
接收感谢: 1
https://bugzilla.kernel.org/show_bug.cgi?id=42877

这……

但我这个出现只在16.04,之前都没有


最后由 eagle5678 编辑于 2016-11-21 11:47,总共编辑了 1 次

页首
 用户资料  
 
12 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-11-21 11:47 

注册: 2009-08-04 16:33
帖子: 16891
送出感谢: 21
接收感谢: 1826
1. 檢查一下
viewtopic.php?p=3178427#p3178427
2-3. 如果是從左上方連線圖示設定連線 確認 自動連線 有沒有 打勾 (包含有線及無線)

2. 補充
如果你是在 /etc/network/interfaces 設定
断网后 無法自動再連網
只能手動下指令 或 重開機


页首
 用户资料  
 
13 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-11-21 11:59 

注册: 2009-08-04 16:33
帖子: 16891
送出感谢: 21
接收感谢: 1826
viewtopic.php?p=3180428#p3180428
自 #38 2016-03-29 19:29:13 UTC 以後
許多報告 提到類似問題 但是還沒看到 有效的解決方案


页首
 用户资料  
 
14 楼 
 文章标题 : Re: ubuntu 断网后 为什么 只有重启才能再连上???
帖子发表于 : 2016-12-01 16:03 
头像

注册: 2006-07-08 14:07
帖子: 1805
送出感谢: 14
接收感谢: 1
代码:
 解决方法:
Try blacklisting the  acer-wmi  kernel module.
sudo gedit /etc/modprobe.d/blacklist.conf
add  blacklist acer_wmi  as a new line at the bottom of this file.
Then reboot.
 
原理:
edit:
The acer-wmi kernel module enables you to control the following:
the wireless LAN card radio
inbuilt Bluetooth adapter
inbuilt 3G card
mail LED of your laptop
brightness of the LCD panel
With regards to wireless, all  acer-wmi  does is enable the radio on the card. It is not responsible for the wireless LED - once the radio is enabled, this is down to the wireless driver for your card.
However for some acer laptop models - there is a conflict between the Acer firmware and the kernel implementation. This is why you need to blacklist.


这样子处理,暂时还好。acer


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 14 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译