Ubuntu18.04显示网络连接激活失败

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
wangwenqian
帖子: 1
注册时间: 2018-06-12 13:40
系统: win10
送出感谢: 0
接收感谢: 0

Ubuntu18.04显示网络连接激活失败

#1

帖子 wangwenqian » 2018-06-12 13:46

我在vm14上安装了Ubuntu18.04,刚安装完成时可以有线连接上网,但是现在一直显示网络连接激活失败。
poloshiao
论坛版主
帖子: 18275
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1948 次

Re: Ubuntu18.04显示网络连接激活失败

#2

帖子 poloshiao » 2018-06-12 16:47

但是现在一直显示网络连接激活失败。
先假設是有線網路

把下面指令 複製 貼進終端機 執行
0. uname -a
1. sudo lspci -knn | grep -iA5 Ethernet
2. sudo lshw -numeric -class network
3. sudo nmcli dev status
4. sudo ip addr show
5. sudo ip route show
6. sudo ls -al /etc/resolv.conf
7. sudo cat /etc/resolv.conf
把指令及回應結果直接 選取/複製/貼上來
vincentwuu
帖子: 1
注册时间: 2018-07-25 8:16
系统: ubuntu18.04
送出感谢: 0
接收感谢: 0

Re: Ubuntu18.04显示网络连接激活失败

#3

帖子 vincentwuu » 2018-07-25 8:24

poloshiao 写了:
2018-06-12 16:47
但是现在一直显示网络连接激活失败。
先假設是有線網路

把下面指令 複製 貼進終端機 執行
0. uname -a
1. sudo lspci -knn | grep -iA5 Ethernet
2. sudo lshw -numeric -class network
3. sudo nmcli dev status
4. sudo ip addr show
5. sudo ip route show
6. sudo ls -al /etc/resolv.conf
7. sudo cat /etc/resolv.conf
把指令及回應結果直接 選取/複製/貼上來
vincent@vincent-pc:~$ uname -a
Linux vincent-pc 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

vincent@vincent-pc:~$ sudo lspci -knn | grep -iA5 Ethernet
05:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12)
Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:200f]
Kernel driver in use: r8169
Kernel modules: r8169

vincent@vincent-pc:~$ sudo lshw -numeric -class network
*-network
description: Wireless interface
product: QCA9565 / AR9565 Wireless Network Adapter [168C:36]
vendor: Qualcomm Atheros [168C]
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlp4s0
version: 01
serial: dc:85:de:f8:76:dd
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.15.0-29-generic firmware=N/A ip=192.168.3.44 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:18 memory:f7900000-f797ffff memory:f7980000-f798ffff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10EC:8168]
vendor: Realtek Semiconductor Co., Ltd. [10EC]
physical id: 0.1
bus info: pci@0000:05:00.1
logical name: enp5s0f1
version: 12
serial: 08:62:66:e2:e4:5f
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd 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=rtl8411-2_0.0.1 07/08/13 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:19 ioport:d000(size=256) memory:f7814000-f7814fff memory:f7810000-f7813fff

vincent@vincent-pc:~$ sudo nmcli dev status
DEVICE TYPE STATE CONNECTION
wlp4s0 wifi 已连接 HUAWEI-DMPEF2
enp5s0f1 ethernet 正在连接(正在获取 IP 配置) 有线连接 1
lo loopback 未托管 --

vincent@vincent-pc:~$ sudo ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp5s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:62:66:e2:e4:5f brd ff:ff:ff:ff:ff:ff
3: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether dc:85:de:f8:76:dd brd ff:ff:ff:ff:ff:ff
inet 192.168.3.44/24 brd 192.168.3.255 scope global dynamic noprefixroute wlp4s0
valid_lft 85693sec preferred_lft 85693sec
inet6 fe80::473d:3def:bcfe:83a0/64 scope link noprefixroute
valid_lft forever preferred_lft forever

vincent@vincent-pc:~$ sudo ip route show
default via 192.168.3.1 dev wlp4s0 proto dhcp metric 600
169.254.0.0/16 dev wlp4s0 scope link metric 1000
192.168.3.0/24 dev wlp4s0 proto kernel scope link src 192.168.3.44 metric 600
vincent@vincent-pc:~$ sudo ls -al /etc/resolv.conf
lrwxrwxrwx 1 root root 29 4月 12 14:23 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

vincent@vincent-pc:~$ 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
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.

nameserver 127.0.0.53

您好,我的问题也是这样,可以连接无线网络,但有线总是连接激活失败,请问该如何解决?谢谢
poloshiao
论坛版主
帖子: 18275
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1948 次

Re: Ubuntu18.04显示网络连接激活失败

#4

帖子 poloshiao » 2018-07-25 19:20

#3
vincentwuu
您好,我的问题也是这样,可以连接无线网络,但有线总是连接激活失败,请问该如何解决?谢谢
sudo lspci -knn | grep -iA5 Ethernet
05:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12)
Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:200f]
Kernel driver in use: r8169
Kernel modules: r8169
sudo lshw -numeric -class network
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10EC:8168]
configuration: ... driver=r8169 ,,,
1. 有線網卡目前作用中的驅動是 r8169
1-1. 但是 r8169 不是合適的網卡驅動 (有時 還會影響無線網卡)
1-2. 試試
安裝 r8168-dkms 套件
1-2-1. https://packages.ubuntu.com/bionic/r8168-dkms
Package: r8168-dkms (8.045.08-2) [universe]
1-3. 安裝後 看看
https://packages.ubuntu.com/bionic/all/ ... s/filelist
sudo cat /etc/modprobe.d/r8168-dkms.conf
有沒有 把 r8169 加入載入黑名單
1-3-1. 如果沒有 手動把 把 r8169 加入載入黑名單
然後重新啟動
看看 有沒有改善
回复

回到 “网卡问题以及网络和拨号”