Windows10 和ubuntu 16.04双系统,ubuntu 有线网络显示已连接,但没有网络

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
rockan007
帖子: 9
注册时间: 2017-07-06 22:35
系统: ubuntu16.04

Windows10 和ubuntu 16.04双系统,ubuntu 有线网络显示已连接,但没有网络

#1

帖子 rockan007 » 2017-11-10 21:36

如题,WIFI能正常使用,win10 有线能正常使用,ubuntu显示有线网络已连接,但无法上网。

[b]$ uname -r[/b]
4.10.0-38-generic

[b]$ sudo lspci -knn[/b]

00:00.0 Host bridge [0600]: Intel Corporation Device [8086:5910] (rev 05)
Subsystem: Dell Device [1028:0798]
00:01.0 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x16) [8086:1901] (rev 05)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:591b] (rev 04)
DeviceName: Onboard IGD
Subsystem: Dell Device [1028:0798]
Kernel driver in use: i915
Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 05)
Subsystem: Dell Skylake Processor Thermal Subsystem [1028:0798]
Kernel driver in use: proc_thermal
Kernel modules: processor_thermal_device
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31)
Subsystem: Dell Sunrise Point-H USB 3.0 xHCI Controller [1028:0798]
Kernel driver in use: xhci_hcd
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-H Thermal subsystem [8086:a131] (rev 31)
Subsystem: Dell Sunrise Point-H Thermal subsystem [1028:0798]
Kernel driver in use: intel_pch_thermal
Kernel modules: intel_pch_thermal
00:15.0 Signal processing controller [1180]: Intel Corporation Sunrise Point-H LPSS I2C Controller #0 [8086:a160] (rev 31)
Subsystem: Dell Sunrise Point-H Serial IO I2C Controller [1028:0798]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:15.1 Signal processing controller [1180]: Intel Corporation Sunrise Point-H LPSS I2C Controller #1 [8086:a161] (rev 31)
Subsystem: Dell Sunrise Point-H Serial IO I2C Controller [1028:0798]
Kernel driver in use: intel-lpss
Kernel modules: intel_lpss_pci
00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-H CSME HECI #1 [8086:a13a] (rev 31)
Subsystem: Dell Sunrise Point-H CSME HECI [1028:0798]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:17.0 RAID bus controller [0104]: Intel Corporation 82801 Mobile SATA Controller [RAID mode] [8086:282a] (rev 31)
Subsystem: Dell 82801 Mobile SATA Controller [RAID mode] [1028:0798]
Kernel driver in use: ahci
Kernel modules: ahci
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #5 [8086:a114] (rev f1)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #6 [8086:a115] (rev f1)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controller [8086:a152] (rev 31)
Subsystem: Dell Sunrise Point-H LPC Controller [1028:0798]
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [8086:a121] (rev 31)
Subsystem: Dell Sunrise Point-H PMC [1028:0798]
00:1f.3 Audio device [0403]: Intel Corporation Device [8086:a171] (rev 31)
Subsystem: Dell Device [1028:0798]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31)
Subsystem: Dell Sunrise Point-H SMBus [1028:0798]
Kernel modules: i2c_i801
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1c8c] (rev a1)
Subsystem: Dell Device [1028:0798]
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1028:0798]
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Network controller [0280]: Intel Corporation Wireless 3165 [8086:3165] (rev 79)
Subsystem: Intel Corporation Wireless 3165 [8086:4410]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
[b]
$ sudo lshw -numeric -class network [/b]
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10EC:8168]
vendor: Realtek Semiconductor Co., Ltd. [10EC]
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 15
serial: d4:81:d7:89:40:ab
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:125 ioport:d000(size=256) memory:df204000-df204fff memory:df200000-df203fff
*-network
description: Wireless interface
product: Wireless 3165 [8086:3165]
vendor: Intel Corporation [8086]
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 79
serial: 70:1c:e7:84:79:8e
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.10.0-38-generic firmware=22.391740.0 ip=192.168.1.109 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:128 memory:df100000-df101fff

[b]$ sudo ifconfig -a[/b]
enp2s0 Link encap:以太网 硬件地址 d4:81:d7:89:40:ab
inet6 地址: fe80::b704:c858:f809:46b9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:1056 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1291 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:217847 (217.8 KB) 发送字节:129394 (129.3 KB)

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

ppp0 Link encap:点对点协议
inet 地址:100.69.158.70 点对点:100.69.128.1 掩码:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 跃点数:1
接收数据包:87 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:145 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:3
接收字节:9737 (9.7 KB) 发送字节:12632 (12.6 KB)

wlp3s0 Link encap:以太网 硬件地址 70:1c:e7:84:79:8e
inet 地址:192.168.1.109 广播:192.168.1.255 掩码:255.255.255.0
inet6 地址: fe80::54fc:9a10:3dc1:7cdd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:4425 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:3857 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:2120271 (2.1 MB) 发送字节:592939 (592.9 KB)


[b] sudo route -nv[/b]
内核 IP 路由表
目标 网关 子网掩码 标志 跃点 引用 使用 接口
0.0.0.0 100.69.128.1 0.0.0.0 UG 100 0 0 ppp0
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlp3s0
100.69.128.1 0.0.0.0 255.255.255.255 UH 100 0 0 ppp0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp3s0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp3s0


[b]$ sudo dhclient -v[/b]
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/70:1c:e7:84:79:8e
Sending on LPF/wlp3s0/70:1c:e7:84:79:8e
Listening on LPF/enp2s0/d4:81:d7:89:40:ab
Sending on LPF/enp2s0/d4:81:d7:89:40:ab
Sending on Socket/fallback
DHCPDISCOVER on wlp3s0 to 255.255.255.255 port 67 interval 3 (xid=0xdc3e1435)
DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 3 (xid=0x3e98f77b)
DHCPREQUEST of 192.168.1.109 on wlp3s0 to 255.255.255.255 port 67 (xid=0x35143edc)
DHCPOFFER of 192.168.1.109 from 192.168.1.1
DHCPACK of 192.168.1.109 from 192.168.1.1
RTNETLINK answers: File exists
bound to 192.168.1.109 -- renewal in 3575 seconds.

[b]$ sudo cat /etc/network/interfaces[/b]
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


[b]$ sudo ls -al /etc/resolv.conf [/b]
lrwxrwxrwx 1 root root 29 11月 10 20:13 /etc/resolv.conf -> ../run/resolvconf/resolv.conf


[b]$ sudo cat /run/resolvconf/resolv.conf [/b]
# 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
search DHCP HOST



###########################################################################################################
××××××××××××××信息补充1×××××××××××××××××××××××××××
$ ping -c 3 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.074 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.038 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.059 ms

--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2036ms
rtt min/avg/max/mdev = 0.038/0.057/0.074/0.014 ms
rockan007@rockan007-Inspiron-15-7000-Gaming:~$ ping -c 3 127.0.1.1
PING 127.0.1.1 (127.0.1.1) 56(84) bytes of data.
64 bytes from 127.0.1.1: icmp_seq=1 ttl=64 time=0.044 ms
64 bytes from 127.0.1.1: icmp_seq=2 ttl=64 time=0.040 ms
64 bytes from 127.0.1.1: icmp_seq=3 ttl=64 time=0.040 ms

--- 127.0.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2052ms
rtt min/avg/max/mdev = 0.040/0.041/0.044/0.005 ms


$ ping -c 3 100.69.128.1
PING 100.69.128.1 (100.69.128.1) 56(84) bytes of data.
64 bytes from 100.69.128.1: icmp_seq=1 ttl=255 time=1.73 ms
64 bytes from 100.69.128.1: icmp_seq=2 ttl=255 time=2.95 ms
64 bytes from 100.69.128.1: icmp_seq=3 ttl=255 time=2.72 ms

--- 100.69.128.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.731/2.468/2.952/0.533 ms
rockan007@rockan007-Inspiron-15-7000-Gaming:~$ ping -c 3 100.69.158.70
PING 100.69.158.70 (100.69.158.70) 56(84) bytes of data.

--- 100.69.158.70 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2049ms

ping -c 3 104.27.159.18
PING 104.27.159.18 (104.27.159.18) 56(84) bytes of data.
64 bytes from 104.27.159.18: icmp_seq=1 ttl=53 time=277 ms
64 bytes from 104.27.159.18: icmp_seq=2 ttl=53 time=254 ms
64 bytes from 104.27.159.18: icmp_seq=3 ttl=53 time=276 ms

--- 104.27.159.18 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 254.542/269.361/277.487/10.512 ms


[b]$ ping -c 3 forum.ubuntu.com.cn[/b]
PING forum.ubuntu.com.cn (104.27.158.18) 56(84) bytes of data.
64 bytes from 104.27.158.18: icmp_seq=1 ttl=53 time=257 ms
64 bytes from 104.27.158.18: icmp_seq=2 ttl=53 time=264 ms
64 bytes from 104.27.158.18: icmp_seq=3 ttl=53 time=283 ms

--- forum.ubuntu.com.cn ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 6802ms
rtt min/avg/max/mdev = 257.550/268.313/283.111/10.818 ms


sudo ifconfig -a
[sudo] rockan007 的密码:
enp2s0 Link encap:以太网 硬件地址 d4:81:d7:89:40:ab
inet6 地址: fe80::b704:c858:f809:46b9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:286 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:384 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:37914 (37.9 KB) 发送字节:32882 (32.8 KB)

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

ppp0 Link encap:点对点协议
inet 地址:100.69.167.154 点对点:100.69.128.1 掩码:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 跃点数:1
接收数据包:233 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:302 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:3
接收字节:29548 (29.5 KB) 发送字节:20880 (20.8 KB)

wlp3s0 Link encap:以太网 硬件地址 70:1c:e7:84:79:8e
BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)


网络为ADSL拨号
上次由 rockan007 在 2017-11-11 13:41,总共编辑 2 次。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: Windows10 和ubuntu 16.04双系统,ubuntu 有线网络显示已连接,但没有网络

#2

帖子 poloshiao » 2017-11-11 8:56

ubuntu显示有线网络已连接,但无法上网。
enp2s0 Link encap:以太网 硬件地址 d4:81:d7:89:40:ab
inet6 地址: fe80::b704:c858:f809:46b9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:1056 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1291 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:217847 (217.8 KB) 发送字节:129394 (129.3 KB)
ppp0 Link encap:点对点协议
inet 地址:100.69.158.70 点对点:100.69.128.1 掩码:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 跃点数:1
接收数据包:87 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:145 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:3
接收字节:9737 (9.7 KB) 发送字节:12632 (12.6 KB)
1. 你的 ppp0 跟 enp2s0 有何關聯 ?
1-1. 例如 ppp0 搭在 enp2s0 線路上

2. 以下測試期間 暫時把無線關閉 然後 重新開機
ppp0 Link encap:点对点协议
inet 地址:100.69.158.70 点对点:100.69.128.1 掩码:255.255.255.255
0.0.0.0 100.69.128.1 0.0.0.0 UG 100 0 0 ppp0
100.69.128.1 0.0.0.0 255.255.255.255 UH 100 0 0 ppp0
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
sudo cat /run/resolvconf/resolv.conf
nameserver 127.0.1.1
3. 把下面指令 複製 貼進終端機 執行
3-1. ping -c 3 127.0.0.1
3-2. ping -c 3 127.0.1.1
3-3. ping -c 3 100.69.158.70
3-4. ping -c 3 100.69.128.1
3-5. ping -c 3 104.27.159.18
3-6. ping -c 3 forum.ubuntu.com.cn
把結果直接 選取/複製/貼上來
回复