ubuntu 16.04 LTS 以太网上不了网(有时候 Wi-Fi 也上不了网)

ubuntu 16.04 LTS 以太网上不了网(有时候 Wi-Fi 也上不了网)

半年前,我安装了这个版本的 Ubuntu,同时安装了现有的 Windows 10。一切都很顺利,但几周前,它有时不允许我通过以太网电缆或 Wi-Fi 访问互联网。现在,当我用这根电缆连接我的电脑时,它根本无法识别它。甚至有一段时间什么都不起作用,我唯一的访问方式是通过蓝牙。我试过这个:

sudo dhclient -v eth0

它说:“找不到设备“eth0””。但是,当我通过:

dmesg | grep r8169

终端没有反馈。还有什么办法可以解决网络问题吗?

还有一件事:我曾经从我的电脑创建了一个热点,当我连续几天使用这个热点时,以太网就永远停止正常工作了(我不知道它是否有帮助,但仍然......)

sudo lshw -class network

给我:

  *-network UNCLAIMED     
       description: Ethernet controller
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0.2
       bus info: pci@0000:07:00.2
       version: 0a
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list
       configuration: latency=0
       resources: ioport:2000(size=256) memory:61404000-61404fff memory:61400000-61403fff
  *-network
       description: Wireless interface
       product: Centrino Wireless-N 2230
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:08:00.0
       logical name: wlo1
       version: c4
       serial: 84:a6:c8:87:e0:c4
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-47-generic firmware=18.168.6.1 ip=192.168.2.8 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:31 memory:61500000-61501fff

lspci

给我:

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] (rev ff)
07:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader (rev 01)
07:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)
08:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)

使用此命令时没有任何内容被阻止:

rfkill list all

更新: 好的,原来是我的eth0被改名为eno1了。

答案1

因此,感谢 @chili555,我发现我的端口已从 重命名eth0eno1。我被建议解析的命令是:

sudo modprobe r8169 && dmesg | grep r8169

现在以太网可以工作了,虽然我不知道 Wi-Fi 是否仍然拒绝连接某些地方。

相关内容