Ubuntu 16.04 无线能够上网,但是有线连接不能上网

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
sevenun
帖子: 5
注册时间: 2016-05-25 22:06
系统: Ubuntu

Ubuntu 16.04 无线能够上网,但是有线连接不能上网

#1

帖子 sevenun » 2016-05-25 22:14

现在的情况就是,我有线连接偶尔能够连接上,然后我只可以打开一个网页,接着就上不了网了。
之前在安装过程中,我就一直ping http://www.baidu.com,这期间一直没问题,然后安装中途突然就不断unreachable了。
然而我无线倒是可以正常上网,求大家帮忙 :Cry
目前我上网找了好多资料,有的说ip dns设置问题,可是我也试了没问题。有的说驱动问题,可是我不知道怎么重装个
我上:https://www.kernel.org/pub/linux/kernel ... ts/stable/,下载了backports-4.4.2-1,然后在安装不成功
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: Ubuntu 16.04 无线能够上网,但是有线连接不能上网

#2

帖子 vickycq » 2016-05-25 23:08

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

代码: 全选

uname -a
lspci -knn | grep -iA2 net
sudo lshw -C net
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
sevenun
帖子: 5
注册时间: 2016-05-25 22:06
系统: Ubuntu

Re: Ubuntu 16.04 无线能够上网,但是有线连接不能上网

#3

帖子 sevenun » 2016-05-26 8:44

vickycq 写了:执行以下指令将结果全部复制贴上来

代码: 全选

uname -a
lspci -knn | grep -iA2 net
sudo lshw -C net

您好。下面是我的结果

sevenun@sevenun-Lenovo-G480:~$ uname -a
Linux sevenun-Lenovo-G480 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


sevenun@sevenun-Lenovo-G480:~$ lspci -knn | grep -iA2 net

03:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8162 Fast Ethernet [1969:1090] (rev 08)
Subsystem: Lenovo AR8162 Fast Ethernet [17aa:3979]
Kernel driver in use: alx
Kernel modules: alx
04:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
Subsystem: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:051b]
Kernel driver in use: bcma-pci-bridge
Kernel modules: bcma


sevenun@sevenun-Lenovo-G480:~$ sudo lshw -C net
*-network
description: Ethernet interface
product: AR8162 Fast Ethernet
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:03:00.0
logical name: enp3s0
version: 08
serial: b8:88:e3:70:e7:46
size: 10Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=alx duplex=full latency=0 link=yes multicast=yes port=twisted pair speed=10Mbit/s
resources: irq:31 memory:d3500000-d353ffff ioport:2000(size=128)
*-network
description: Network controller
product: BCM4313 802.11bgn Wireless Network Adapter
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:04:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=bcma-pci-bridge latency=0
resources: irq:17 memory:d3400000-d3403fff
*-network
description: Wireless interface
physical id: 1
logical name: wlp4s0b1
serial: 84:4b:f5:8d:a6:1a
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=brcmsmac driverversion=4.4.0-21-generic firmware=610.812 ip=10.173.161.123 link=yes multicast=yes wireless=IEEE 802.11bgn
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: Ubuntu 16.04 无线能够上网,但是有线连接不能上网

#4

帖子 vickycq » 2016-05-26 9:24

sevenun 写了: Linux 4.4.0-21-generic
Qualcomm Atheros AR8162 Fast Ethernet [1969:1090] (rev 08)
Kernel driver in use: alx
看看是不是这个问题 https://bugzilla.kernel.org/show_bug.cgi?id=70761
有两个可能的方案

1 - 增大 MTU 至 8192。
具体参见 viewtopic.php?f=116&t=474851&hilit=+alx

2 - 安装 Linux 4.5 或以上。
从这里下载 Linux 4.5.5 / Linux 4.6 对应的 linux-image-* linux-headers-* 安装
http://kernel.ubuntu.com/~kernel-ppa/ma ... 5-yakkety/
http://kernel.ubuntu.com/~kernel-ppa/ma ... 6-yakkety/

参考
https://bugzilla.kernel.org/show_bug.cgi?id=70761#c61
https://www.reddit.com/r/linux/comments ... m_atheros/
http://askubuntu.com/questions/616182/a ... king-15-04
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
sevenun
帖子: 5
注册时间: 2016-05-25 22:06
系统: Ubuntu

Re: Ubuntu 16.04 无线能够上网,但是有线连接不能上网

#5

帖子 sevenun » 2016-05-26 9:36

vickycq 写了:
sevenun 写了: Linux 4.4.0-21-generic
Qualcomm Atheros AR8162 Fast Ethernet [1969:1090] (rev 08)
Kernel driver in use: alx
看看是不是这个问题 https://bugzilla.kernel.org/show_bug.cgi?id=70761
有两个可能的方案

1 - 增大 MTU 至 8192。
具体参见 viewtopic.php?f=116&t=474851&hilit=+alx

2 - 安装 Linux 4.5 或以上。
从这里下载 Linux 4.5.5 / Linux 4.6 对应的 linux-image-* linux-headers-* 安装
http://kernel.ubuntu.com/~kernel-ppa/ma ... 5-yakkety/
http://kernel.ubuntu.com/~kernel-ppa/ma ... 6-yakkety/

参考
https://bugzilla.kernel.org/show_bug.cgi?id=70761#c61
https://www.reddit.com/r/linux/comments ... m_atheros/
http://askubuntu.com/questions/616182/a ... king-15-04
好感谢!!原来只用改MTU就够了!昨天折腾了一整天了
qwe2508
帖子: 4
注册时间: 2017-06-08 21:54

Re: Ubuntu 16.04 无线能够上网,但是有线连接不能上网

#6

帖子 qwe2508 » 2017-06-08 22:04

你好,我的现在也出现这些问题了,但是,我看了你的,不知道怎么改,我现在把输出贴上,你能帮忙看看吗?
qwe2508@ubuntu:~$ uname -a
Linux ubuntu 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
qwe2508@ubuntu:~$ lspci -knn | grep -iA2 net
02:01.0 Ethernet controller [0200]: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) [8086:100f] (rev 01)
DeviceName: Ethernet0
Subsystem: VMware PRO/1000 MT Single Port Adapter [15ad:0750]
Kernel driver in use: e1000
qwe2508@ubuntu:~$ sudo lshw -C net
[sudo] password for qwe2508:
*-network
description: Ethernet interface
product: 82545EM Gigabit Ethernet Controller (Copper)
vendor: Intel Corporation
physical id: 1
bus info: pci@0000:02:01.0
logical name: ens33
version: 01
serial: 00:0c:29:06:34:0b
capacity: 1Gbit/s
width: 64 bits
clock: 66MHz
capabilities: pm pcix bus_master cap_list rom ethernet physical logical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI latency=0 link=no mingnt=255 multicast=yes port=twisted pair
resources: irq:19 memory:fd5c0000-fd5dffff memory:fdff0000-fdffffff ioport:2000(size=64) memory:fd500000-fd50ffff
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: Ubuntu 16.04 无线能够上网,但是有线连接不能上网

#7

帖子 vickycq » 2017-06-09 19:34

qwe2508 写了:02:01.0 Ethernet controller [0200]: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) [8086:100f] (rev 01)
DeviceName: Ethernet0
Subsystem: VMware PRO/1000 MT Single Port Adapter [15ad:0750]
Kernel driver in use: e1000
是虚拟机啊,改虚拟网卡型号试试。比如改成 AMD PCNet,或 Intel 82574L,或 VMXNET
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复