Ubuntu16.04无法上网

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
kimlee
帖子: 5
注册时间: 2016-05-23 19:13
系统: win10

Ubuntu16.04无法上网

#1

帖子 kimlee »

状况描述:使用NETWORKMANAGER就是桌面上右上角的网络连接软件无法连接有线,可以使用无线。尝试过使用PPPOECONF可以上网。求大神帮忙,系统全新装,双系统WIN10与UBUNTU,关闭了主板的SERCURE BOOT 。以下是系统信息。
只运行过SUDO APT-GET INSTALL R8168-DKMS 就是换了网卡驱动,之前是R8169也是一样的情况。
===============================================================================

代码: 全选

mark-w@markw-X450VB:~$ sudo lshw -C network
[sudo] mark-w 的密码: 
  *-network               
       description: Wireless interface
       product: AR9485 Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlp3s0
       version: 01
       serial: 24:0a:64:22:11:dc
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=4.4.0-21-generic firmware=N/A ip=10.181.52.246 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:17 memory:f7900000-f797ffff memory:f7980000-f798ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0.2
       bus info: pci@0000:04:00.2
       logical name: enp4s0f2
       version: 0a
       serial: 74:d0:2b:1a:2e:93
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.041.00-NAPI duplex=full latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:29 ioport:d000(size=256) memory:f7810000-f7810fff memory:f2100000-f2103fff
mark-w@markw-X450VB:~$ lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core processor DRAM Controller [8086:0154] (rev 09)
	Subsystem: ASUSTeK Computer Inc. 3rd Gen Core processor DRAM Controller [1043:126d]
	Kernel driver in use: ivb_uncore
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port [8086:0151] (rev 09)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
	Subsystem: ASUSTeK Computer Inc. 3rd Gen Core processor Graphics Controller [1043:126d]
	Kernel driver in use: i915
	Kernel modules: i915
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
	Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family USB xHCI Host Controller [1043:126d]
	Kernel driver in use: xhci_hcd
00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
	Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family MEI Controller [1043:126d]
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)
	Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family USB Enhanced Host Controller [1043:126d]
	Kernel driver in use: ehci-pci
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
	Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family High Definition Audio Controller [1043:126d]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.1 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 [8086:1e12] (rev c4)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.3 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 [8086:1e16] (rev c4)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04)
	Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family USB Enhanced Host Controller [1043:126d]
	Kernel driver in use: ehci-pci
00:1f.0 ISA bridge [0601]: Intel Corporation HM76 Express Chipset LPC Controller [8086:1e59] (rev 04)
	Subsystem: ASUSTeK Computer Inc. HM76 Express Chipset LPC Controller [1043:126d]
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e03] (rev 04)
	Subsystem: ASUSTeK Computer Inc. 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [1043:126d]
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller [8086:1e22] (rev 04)
	Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family SMBus Controller [1043:126d]
	Kernel modules: i2c_i801
01:00.0 3D controller [0302]: NVIDIA Corporation GK208M [GeForce GT 740M] [10de:1292] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GK208M [GeForce GT 740M] [1043:126d]
	Kernel driver in use: nouveau
	Kernel modules: nvidiafb, nouveau
03:00.0 Network controller [0280]: Qualcomm Atheros AR9485 Wireless Network Adapter [168c:0032] (rev 01)
	Subsystem: AzureWave AW-NE186H [1a3b:1186]
	Kernel driver in use: ath9k
	Kernel modules: ath9k
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader [10ec:5289] (rev 01)
	Subsystem: ASUSTeK Computer Inc. RTL8411 PCI Express Card Reader [1043:202f]
	Kernel driver in use: rtsx_pci
	Kernel modules: rtsx_pci
04:00.2 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0a)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:200f]
	Kernel driver in use: r8168
	Kernel modules: r8168
mark-w@markw-X450VB:~$ sudo ifconfig -a
enp4s0f2  Link encap:以太网  硬件地址 74:d0:2b:1a:2e:93  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  跃点数:1
          接收数据包:146 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:471 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000 
          接收字节:8760 (8.7 KB)  发送字节:54415 (54.4 KB)
          中断:29 基本地址:0x6000 

lo        Link encap:本地环回  
          inet 地址:127.0.0.1  掩码:255.0.0.0
          inet6 地址: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  跃点数:1
          接收数据包:767 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:767 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1 
          接收字节:85590 (85.5 KB)  发送字节:85590 (85.5 KB)

wlp3s0    Link encap:以太网  硬件地址 24:0a:64:22:11:dc  
          inet 地址:10.181.52.246  广播:10.181.255.255  掩码:255.255.0.0
          inet6 地址: fe80::d90b:a239:134d:f644/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  跃点数:1
          接收数据包:68391 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:3610 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:1000 
          接收字节:8524127 (8.5 MB)  发送字节:560606 (560.6 KB)

mark-w@markw-X450VB:~$ sudo route -nv
内核 IP 路由表
目标            网关            子网掩码        标志  跃点   引用  使用 接口
0.0.0.0         10.181.255.254  0.0.0.0         UG    0      0        0 wlp3s0
0.0.0.0         10.181.255.254  0.0.0.0         UG    600    0        0 wlp3s0
10.181.0.0      0.0.0.0         255.255.0.0     U     600    0        0 wlp3s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlp3s0
mark-w@markw-X450VB:~$ sudo cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
mark-w@markw-X450VB:~$ sudo dhclient -v
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlp3s0/24:0a:64:22:11:dc
Sending on   LPF/wlp3s0/24:0a:64:22:11:dc
Listening on LPF/enp4s0f2/74:d0:2b:1a:2e:93
Sending on   LPF/enp4s0f2/74:d0:2b:1a:2e:93
Sending on   Socket/fallback
DHCPREQUEST of 10.181.52.246 on wlp3s0 to 255.255.255.255 port 67 (xid=0x7106655d)
DHCPDISCOVER on enp4s0f2 to 255.255.255.255 port 67 interval 3 (xid=0x62f19d65)
DHCPACK of 10.181.52.246 from 10.181.255.254
RTNETLINK answers: File exists
bound to 10.181.52.246 -- renewal in 107039 seconds.
kimlee
帖子: 5
注册时间: 2016-05-23 19:13
系统: win10

Re: Ubuntu16.04无法上网

#2

帖子 kimlee »

补充一下,在等待大概十几分钟会显示连接enp4s0f2,通过IFCONFIG也能够看到IP地址,但是我必须使用DSL连接方法,我点击DSL连接,NETWORKMANAGER直接崩溃了。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: Ubuntu16.04无法上网

#3

帖子 poloshiao »

在等待大概十几分钟会显示连接enp4s0f2,通过IFCONFIG也能够看到IP地址,
1. 可能原因很多 大部分跟不正確設定有關
使用NETWORKMANAGER就是桌面上右上角的网络连接软件无法连接有线,可以使用无线。尝试过使用PPPOECONF可以上网。
2. 使用 NETWORKMANAGER就是桌面上右上角的网络连接软件
最好避免又在 /etc/network/interfaces 設定 會互相干擾
系统全新装,双系统WIN10与UBUNTU,关闭了主板的SERCURE BOOT 。
3. 雙系統 除了 Secure Boot 關閉外 所有 Win10 關機後 還耗用電源的設定 也要全部關閉 例如 休眠 網卡遠程喚醒 鍵盤喚醒開機 滑鼠喚醒開機 .... 等等
kimlee
帖子: 5
注册时间: 2016-05-23 19:13
系统: win10

Re: Ubuntu16.04无法上网

#4

帖子 kimlee »

poloshiao 写了:
在等待大概十几分钟会显示连接enp4s0f2,通过IFCONFIG也能够看到IP地址,
1. 可能原因很多 大部分跟不正確設定有關
但是系统是新装的。也没有设置什么啊。。最多是设置个DSL网络帐号。
kimlee
帖子: 5
注册时间: 2016-05-23 19:13
系统: win10

Re: Ubuntu16.04无法上网

#5

帖子 kimlee »

poloshiao 写了:
在等待大概十几分钟会显示连接enp4s0f2,通过IFCONFIG也能够看到IP地址,
1. 可能原因很多 大部分跟不正確設定有關
使用NETWORKMANAGER就是桌面上右上角的网络连接软件无法连接有线,可以使用无线。尝试过使用PPPOECONF可以上网。
2. 使用 NETWORKMANAGER就是桌面上右上角的网络连接软件
最好避免又在 /etc/network/interfaces 設定 會互相干擾
系统全新装,双系统WIN10与UBUNTU,关闭了主板的SERCURE BOOT 。
3. 雙系統 除了 Secure Boot 關閉外 所有 Win10 關機後 還耗用電源的設定 也要全部關閉 例如 休眠 網卡遠程喚醒 鍵盤喚醒開機 滑鼠喚醒開機 .... 等等
1.这个系统是全新安装的,并不存在什么设置问题。
2。双系统WIN10的问题,相同环境下,我安装了ubuntu14.10完全可以使用NETWORKMANAGER的dsl上网,只是那个版本太低了,软件源都不支持了,我才又重新装到16。04版本。所以系统的WIN10和主板设置应该是没有问题。
3。除了网卡驱动,那我也进行更换了。不知道还有什么问题导致的。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: Ubuntu16.04无法上网

#6

帖子 poloshiao »

sudo ifconfig -a
enp4s0f2 Link encap:以太网 硬件地址 74:d0:2b:1a:2e:93
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:146 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:471 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:8760 (8.7 KB) 发送字节:54415 (54.4 KB)
中断:29 基本地址:0x6000
1. 有線網卡 沒有獲得分配 IPv4
1-1. 但是 有數據包 流通 ? 待查
sudo ifconfig -a
wlp3s0 Link encap:以太网 硬件地址 24:0a:64:22:11:dc
inet 地址:10.181.52.246 广播:10.181.255.255 掩码:255.255.0.0
inet6 地址: fe80::d90b:a239:134d:f644/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:68391 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:3610 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:8524127 (8.5 MB) 发送字节:560606 (560.6 KB)
2. 無線網卡 已經獲得分配 IPv4 10.181.52.246
2-1. 而且 已有數據包 流通
2-2. 無線網卡連線 在哪裡設定 ? 桌面上右上角的网络连接软件 ?
sudo route -nv
内核 IP 路由表
目标 网关 子网掩码 标志 跃点 引用 使用 接口
0.0.0.0 10.181.255.254 0.0.0.0 UG 0 0 0 wlp3s0
0.0.0.0 10.181.255.254 0.0.0.0 UG 600 0 0 wlp3s0
10.181.0.0 0.0.0.0 255.255.0.0 U 600 0 0 wlp3s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp3s0
2-3. 無線網卡連線 有兩個 路由 ?
2-3-1. 可以 刪除其中一個
先刪除
0.0.0.0 10.181.255.254 0.0.0.0 UG 600 0 0 wlp3s0
這個看看
2-3-2. 先檢查 你在哪個設定裡有 跃点 600 的設定
但是我必须使用DSL连接方法,我点击DSL连接,NETWORKMANAGER直接崩溃了。
3. 你啟動 DSL 以前 先關閉 無線網卡連線了嗎 ?
kimlee
帖子: 5
注册时间: 2016-05-23 19:13
系统: win10

Re: Ubuntu16.04无法上网

#7

帖子 kimlee »

poloshiao 写了:
sudo ifconfig -a
enp4s0f2 Link encap:以太网 硬件地址 74:d0:2b:1a:2e:93
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:146 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:471 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:8760 (8.7 KB) 发送字节:54415 (54.4 KB)
中断:29 基本地址:0x6000
1. 有線網卡 沒有獲得分配 IPv4
1-1. 但是 有數據包 流通 ? 待查
sudo ifconfig -a
wlp3s0 Link encap:以太网 硬件地址 24:0a:64:22:11:dc
inet 地址:10.181.52.246 广播:10.181.255.255 掩码:255.255.0.0
inet6 地址: fe80::d90b:a239:134d:f644/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:68391 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:3610 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:8524127 (8.5 MB) 发送字节:560606 (560.6 KB)
2. 無線網卡 已經獲得分配 IPv4 10.181.52.246
2-1. 而且 已有數據包 流通
2-2. 無線網卡連線 在哪裡設定 ? 桌面上右上角的网络连接软件 ?
sudo route -nv
内核 IP 路由表
目标 网关 子网掩码 标志 跃点 引用 使用 接口
0.0.0.0 10.181.255.254 0.0.0.0 UG 0 0 0 wlp3s0
0.0.0.0 10.181.255.254 0.0.0.0 UG 600 0 0 wlp3s0
10.181.0.0 0.0.0.0 255.255.0.0 U 600 0 0 wlp3s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp3s0
2-3. 無線網卡連線 有兩個 路由 ?
2-3-1. 可以 刪除其中一個
先刪除
0.0.0.0 10.181.255.254 0.0.0.0 UG 600 0 0 wlp3s0
這個看看
2-3-2. 先檢查 你在哪個設定裡有 跃点 600 的設定
但是我必须使用DSL连接方法,我点击DSL连接,NETWORKMANAGER直接崩溃了。
3. 你啟動 DSL 以前 先關閉 無線網卡連線了嗎 ?
我已经解决了,我的解决办法就是连接无线,更新至最新的软件和系统,重启后竟然神奇的好了,我也不知道为什么,可能是之前的系统或者软件有BUG,新的修复了吧。ANYWAY,谢谢你。
回复