ubuntu16.04不能联网

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
xulianpu
帖子: 30
注册时间: 2011-05-04 11:50

ubuntu16.04不能联网

#1

帖子 xulianpu » 2016-08-28 16:25

从14.04升级后不能联网了
换回kernel 3.13能联网kernel 4.4不行
dmesg | grep iwl
[ 30.661052] iwlwifi 0000:04:00.0: PCI->APIC IRQ transform: INT A -> IRQ 17
[ 30.661128] iwlwifi 0000:04:00.0: can't ioremap BAR 0: [??? 0x00000000 flags 0x0]
[ 30.661130] iwlwifi 0000:04:00.0: pci_ioremap_bar failed
xulianpu
帖子: 30
注册时间: 2011-05-04 11:50

Re: ubuntu16.04不能联网

#2

帖子 xulianpu » 2016-08-28 16:40

kernel 4.4

*-network UNCLAIMED
description: Network controller
product: Centrino Wireless-N 1000 [Condor Peak]
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:04:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list
configuration: latency=0
*-network UNCLAIMED
description: Ethernet controller
product: AR8152 v1.1 Fast Ethernet
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:05:00.0
version: c1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vpd cap_list
configuration: latency=0
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: ubuntu16.04不能联网

#3

帖子 vickycq » 2016-08-28 16:52

尝试换用其它版本内核 如 Linux 4.7 (从 http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/ 下载)
或使用 Ubuntu 16.04 LiveCD/LiveUSB 测试。若正常,考虑备份文件后全新安装 16.04
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04不能联网

#4

帖子 poloshiao » 2016-08-28 17:49

*-network UNCLAIMED
product: Centrino Wireless-N 1000 [Condor Peak]
physical id: 0
configuration: latency=0
*-network UNCLAIMED
product: AR8152 v1.1 Fast Ethernet
physical id: 0
configuration: latency=0
兩者都沒有作用中的驅動 ?
兩者的 physical id 都是 0 ?

沒有載入合適的驅動模組 應該是主要原因
xulianpu
帖子: 30
注册时间: 2011-05-04 11:50

Re: ubuntu16.04不能联网

#5

帖子 xulianpu » 2016-08-29 5:59

vickycq 写了:尝试换用其它版本内核 如 Linux 4.7 (从 http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/ 下载)
或使用 Ubuntu 16.04 LiveCD/LiveUSB 测试。若正常,考虑备份文件后全新安装 16.04
使用内核4.7依然不行,用内核3.13了
xulianpu
帖子: 30
注册时间: 2011-05-04 11:50

Re: ubuntu16.04不能联网

#6

帖子 xulianpu » 2016-08-29 6:02

poloshiao 写了:
*-network UNCLAIMED
product: Centrino Wireless-N 1000 [Condor Peak]
physical id: 0
configuration: latency=0
*-network UNCLAIMED
product: AR8152 v1.1 Fast Ethernet
physical id: 0
configuration: latency=0
兩者都沒有作用中的驅動 ?
兩者的 physical id 都是 0 ?

沒有載入合適的驅動模組 應該是主要原因
驱动都有,用内核3.13是正常的
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04不能联网

#7

帖子 poloshiao » 2016-08-29 7:15

驱动都有,用内核3.13是正常的
可以把 内核 3.13 的
sudo lshw -numeric -class network
回應內容複製貼上來
xulianpu
帖子: 30
注册时间: 2011-05-04 11:50

Re: ubuntu16.04不能联网

#8

帖子 xulianpu » 2016-08-29 16:10

poloshiao 写了:
驱动都有,用内核3.13是正常的
可以把 内核 3.13 的
sudo lshw -numeric -class network
回應內容複製貼上來
*-network
description: Wireless interface
product: Centrino Wireless-N 1000 [Condor Peak] [8086:83]
vendor: Intel Corporation [8086]
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlan0
version: 00
serial: 8c:a9:82:1e:7b:d2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-92-generic firmware=39.31.5.1 build 35138 ip=192.168.1.105 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
resources: irq:47 memory:f0300000-f0301fff
*-network
description: Ethernet interface
product: AR8152 v1.1 Fast Ethernet [1969:2060]
vendor: Qualcomm Atheros [1969]
physical id: 0
bus info: pci@0000:05:00.0
logical name: eth0
version: c1
serial: 14:fe:b5:9d:3a:55
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=atl1c driverversion=1.0.1.1-NAPI latency=0 link=no multicast=yes port=twisted pair
resources: irq:50 memory:f0200000-f023ffff ioport:3000(size=128)
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: ubuntu16.04不能联网

#9

帖子 vickycq » 2016-08-29 16:46

一个相似案例 http://www.spinics.net/lists/linux-pci/msg27017.html
最终结果为不了了之
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04不能联网

#10

帖子 poloshiao » 2016-08-29 16:55

kernel 4.4
内核4.7依然不行
測試
1. 先把無線網卡 從 Bios 關閉 (或拔除)
測試看看
product: AR8152 v1.1 Fast Ethernet
行不行

2. 再把有線網卡 從 Bios 關閉 (或拔除)
測試看看
product: Centrino Wireless-N 1000 [Condor Peak]
行不行

3. 這樣可以鎖定有問題的網卡驅動 來解決
xulianpu
帖子: 30
注册时间: 2011-05-04 11:50

Re: ubuntu16.04不能联网

#11

帖子 xulianpu » 2016-08-29 19:07

poloshiao 写了:
kernel 4.4
内核4.7依然不行
測試
1. 先把無線網卡 從 Bios 關閉 (或拔除)
測試看看
product: AR8152 v1.1 Fast Ethernet
行不行

2. 再把有線網卡 從 Bios 關閉 (或拔除)
測試看看
product: Centrino Wireless-N 1000 [Condor Peak]
行不行

3. 這樣可以鎖定有問題的網卡驅動 來解決
关闭测试,问题依旧。。。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04不能联网

#12

帖子 poloshiao » 2016-08-29 19:20

关闭测试,问题依旧
分開 有線網卡 及 無線網卡 關閉
測試 問題還依舊嗎

那 可能不完全是 網卡驅動的問題
xulianpu
帖子: 30
注册时间: 2011-05-04 11:50

Re: ubuntu16.04不能联网

#13

帖子 xulianpu » 2016-08-29 19:35

poloshiao 写了:
关闭测试,问题依旧
分開 有線網卡 及 無線網卡 關閉
測試 問題還依舊嗎

那 可能不完全是 網卡驅動的問題
分别关闭,并且在3.13和4.7里分别试,现象和之前是一样的
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04不能联网

#14

帖子 poloshiao » 2016-08-30 8:43

0. 先把無線網卡關閉 測試有線網卡 自己編譯/安裝驅動
product: AR8152 v1.1 Fast Ethernet [1969:2060]
configuration: autonegotiation=on broadcast=yes driver=atl1c
4.4 或 4.7
1. https://wiki.linuxfoundation.org/networking/alx
atl1c provides support for these chipsets:
1969:2060 - AR8152 v1.1 Fast Ethernet

1-1. https://wiki.linuxfoundation.org/networking/alx
Code
For more details refer to the compat-drivers documentation.
https://backports.wiki.kernel.org/

1-2. https://backports.wiki.kernel.org/index.php/Main_Page
The project started since 2007 and was originally known as compat-wireless, evolved to compat-drivers and was recently renamed simply to backports.

1-3. 最近的穩定版
http://drvbp1.linux-foundation.org/~mcg ... backports/
http://www.kernel.org/pub/linux/kernel/ ... 6-1.tar.xz
http://www.kernel.org/pub/linux/kernel/ ... 1.tar.sign

1-4. 2016 最新版
https://www.kernel.org/pub/linux/kernel ... orts/2016/

1-5. 每日更新版
http://git.kernel.org/cgit/linux/kernel ... x-next.git

1-6. 安裝方法
https://wiki.linuxfoundation.org/networking/alx
Install
To only compile and install the alx driver you can do:
./scripts/driver-select alx (或 atl1c)
make
sudo make install

2. 安裝後 重開機 如果滿意
可以把
2-1. uname -r
2-2. sudo lshw -numeric -class network
的回應內容複製貼上來
xulianpu
帖子: 30
注册时间: 2011-05-04 11:50

Re: ubuntu16.04不能联网

#15

帖子 xulianpu » 2016-09-01 21:07

make时报警:compat-drivers by default supports kernels >= 2.6.24, try enabling only one driver though
回复