Ubuntu(双启动 Windows)以太网未连接/检测

Ubuntu(双启动 Windows)以太网未连接/检测

我对 Linux 完全陌生,刚刚在 Windows 10 上安装了 Ubuntu 16.04 LTS。(我将 Ubuntu 安装在与 Windows 不同的分区上,如果这有帮助的话)。所以我设置了 Ubuntu,但我的以太网未被检测和连接。在 Windows 上也是如此。我在这个网站上搜索了其他问题,但没有一个能解决我的问题。如果有人能在这里帮助我,我会很高兴!谢谢!

好吧,我是悬赏该问题的用户。由于声誉不佳,我无法发表评论。但现在我认为我应该掌控这个问题。所以,我将描述我的系统的属性。

我已将 Ubuntu 16.04 与 Windows 10 并行安装在单独的分区上。笔记本电脑是联想 Z51-70。问题是 Ubuntu 上的以太网无法连接。

这是在 Windows 上“ipconfig”的结果。

Windows IP Configuration


Wireless LAN adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::d01f:a297:5f9c:80f%4
   IPv4 Address. . . . . . . . . . . : 10.9.73.16
   Subnet Mask . . . . . . . . . . . : 255.255.224.0
   Default Gateway . . . . . . . . . : 10.9.70.250

Ethernet adapter Ethernet 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Wi-Fi:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter isatap.{5F5A44D4-1648-49E4-8C87-54CB2AB99206}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter Local Area Connection* 12:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

另外,我想补充一点,重启没有用。重启网络管理器也没有用。在启动 Ubuntu 之前放弃 Windows 上的 IP 也没有用。

@DavidFoerster 提到的脚本的输出位于无线信息.txt

答案1

网络连接问题的圣经

最好的起点是你最喜欢的网络连接圣经,例如(wiki.archlinux.org - 在 Windows 驱动程序中启用 WOL)来自 ArchLinux。

尽管你可以尝试很多方法:

1 Check the connection 2 Set the hostname
2.1 Local network hostname resolution 3 Device driver
3.1 Check the status
3.2 Load the module 4 Network interfaces
4.1 Device names
4.1.1 Get current device names
4.1.2 Change device name
4.1.3 Reverting to traditional device names
4.2 Set device MTU and queue length
4.3 Enabling and disabling network interfaces 5 Configure the IP address
5.1 Dynamic IP address
5.1.1 systemd-networkd
5.1.2 dhcpcd
5.1.3 dhclient
5.1.4 netctl
5.2 Static IP address
5.2.1 netctl
5.2.2 systemd-networkd
5.2.3 dhcpcd
5.2.4 Manual assignment
5.2.5 Calculating addresses 6 Tips and tricks
6.1 ifplugd for laptops
6.2 Bonding or LAG
6.3 IP address aliasing
6.3.1 Example
6.4 Change MAC/hardware address
6.5 Internet sharing
6.6 Router configuration
6.7 Promiscuous mode 7 Troubleshooting
7.1 Swapping computers on the cable modem
7.2 The TCP window scaling problem
7.2.1 How to diagnose the problem
7.2.2 Ways of fixing it
7.2.2.1 Bad
7.2.2.2 Good
7.2.2.3 Best
7.2.3 More about it
7.3 Realtek no link / WOL problem
7.3.1 Enable the NIC directly in Linux
7.3.2 Rollback/change Windows driver
7.3.3 Enable WOL in Windows driver
7.3.4 Newer Realtek Linux driver
7.3.5 Enable LAN Boot ROM in BIOS/CMOS
7.4 No interface with Atheros chipsets
7.5 Broadcom BCM57780
7.6 Realtek RTL8111/8168B
7.7 Gigabyte Motherboard with Realtek 8111/8168/8411 8 See also

由于网卡在 Windows 上可用,但在 Ubuntu 上不可用,因此我们将根据有限的信息从最有可能的情况开始。这将在下一节中概述。

Windows 在关机时禁用 NIC(网络接口卡)

当 BIOS 功能称为局域网唤醒 (WOL)禁用后,您的 NIC 将没有闪烁的 LED 指示连接,并且没有连接到路由器。Windows 可以在关机时禁用您的 NIC。为了防止这种情况在 Windows XP 下的 Realtek 卡上发生(示例),请使用:

Right click my computer and choose "Properties"
--> "Hardware" tab   --> Device Manager
 --> Network Adapters
  --> "double click" Realtek ...
   --> Advanced tab
    --> Wake-On-Lan After Shutdown
     --> Enable

由于没有提供确切的细节,这可能无法解决 OP 问题。但是,我们高度确信此网页上的其他解决方案之一可以解决该问题。

答案2

我发现这个网站对于在 Alienware M15 上运行 Ubuntu 18.04 和 Killer Wireless AX1650 很有帮助,它是安装驱动程序的指南。请注意,必须禁用安全启动。该指南适用于 Ubuntu 16.04 / 18.04 / 19.04。https://support.killernetworking.com/knowledge-base/killer-ax1650-in-debian-ubuntu-16-04/

截至 2019 年 10 月 24 日,该网站的说明如下:

在终端中逐行输入以下命令。

步骤 1 – 下载最新的 Git 和 Build-Essential 软件包

sudo apt update
sudo apt-get install -y git
sudo apt-get install -y build-essential

第 2 步 - 下载 Iwlwifi-Firmware.git 存储库

git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
cd linux-firmware
sudo cp iwlwifi-* /lib/firmware/
cd ..

步骤 3 – 下载 Backport-Iwlwifi.git 存储库 因为 'Make 将生成未签名的驱动程序,所以您可能会看到 SSL 错误/警告。这很好,但这就是必须禁用安全启动的原因。如果启用了安全启动,您的计算机将不会使用未签名的驱动程序!

git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git
cd backport-iwlwifi
sudo make defconfig-iwlwifi-public
sudo make -j4
sudo make install

以下命令可能需要强制您的机器从启动时使用驱动程序:

update-initramfs -u

重新启动你的机器!

答案3

我在使用 Debian 10 和 Windows 10 双启动时也遇到了类似的问题。解决方案是通过禁用快速启动来“真正”关闭 Windows 10 Control Panel -> Power Options -> Choose what the power buttons do -> Change settings that are currently unavailable -> Unckeck Turn on fast startup and then Save changes

答案4

我绝不是专家,但当我第一次开始使用双启动计算机时,我也遇到了这个问题。我使用的是 14.04,它有类似的问题。从我在网上找到的信息来看(这里和其他技术网站),这似乎是以太网卡配置的问题。从其他人的说法来看,Windows 和 Ubuntu 使用不同的以太网卡配置。由于 Windows 的工作方式,它以 Ubuntu 无法重新配置的方式配置卡。解决这个问题的最简单方法是让 Windows“释放”以太网卡。但是,Windows 仅在完全关闭时执行此操作;而不是在重新启动时。反之则不同。在 Ubuntu 使用以太网卡后,Windows 能够重新配置它。

总之,从 Ubuntu 重启到 Windows 是可以的。完全关闭 Windows 然后启动到 Ubuntu 也是可以的。不可以的是从 Windows 重启到 Ubuntu。我尝试寻找一种方法来强制 Ubuntu 重新配置卡。我还寻找一种方法来强制 Windows 在重启时“释放”卡,就像完全关闭一样。但是,我的搜索到目前为止一无所获。

相关内容