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

我是Linux的新手,刚刚在Windows 10上安装了Ubuntu 16.04 LTS。(我已经在不同于Windows的分区上安装了Ubuntu,如果有任何帮助的话)。 所以我设置了Ubuntu,但我的以太网没有被检测到并连接。 在Windows上同样可以正常工作。 我在这个网站上搜索过其他问题,但没有一个能解决我的问题。 如果有人帮助我,我会很高兴的! 谢谢!

好的,所以我是在这个问题上给予赏金的用户。 由于缺乏声誉,我无法发表评论。 但是现在我想我应该把这个问题掌握在我手中。 所以,我将描述我的系统的属性。

我在与Windows 10并行的单独分区上安装了Ubuntu 16.04。笔记本电脑是联想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提到的脚本输出位于wireless-info.txt 。

网络连接问题的圣经

最好的起点是使用ArchLinux中最喜欢的网络连接( wiki.archlinux.org – 在Windows驱动程序中启用WOL )。

虽然有很多东西可以尝试:

 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(网络接口卡)

当禁用称为Wake on LAN(WOL)的BIOSfunction时,您的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问题,因为没有给出确切的细节。 但是,我们非常有信心,本网页上的其他解决方案之一将解决问题。

首先检查以太网卡驱动程序是否在您的安装中正常工作。

 lspci | grep -i eth 

这将给出如下输出:

 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 05) 

如果输出为空,请编辑/etc/NetworkManager/NetworkManager.conf文件并设置managed=true 。 重启网络管理器的udo service network-manager restart

您也可以尝试使用compat-wireless-2.6.tar.bz2驱动程序。

这似乎更像是一个驱动程序问题,因为在Windows 10中这很好。您可能在Ubuntu中遇到以太网卡驱动程序的问题。

我相信这个链接中提到的选项会有所帮助。 如果输入不起作用,请告诉我您的以太网卡详细信息,输出ifconfig/etc/network/interfaces

我无论如何都不是专家,但是当我第一次开始使用双启动计算机时,我也遇到了这个问题。 我使用14.04有类似的问题。 从我在网上找到的(这里和其他技术网站),它似乎是以太网卡配置的问题。 根据其他人的说法,Windows和Ubuntu使用不同的以太网卡配置。 由于Windows的工作方式,它以一种Ubuntu无法重新配置它的方式配置卡。 最简单的方法是让Windows“释放”以太网卡。 但是,Windows仅在完全关闭期间执行此操作; 不是在重启期间。 朝另一个方向走的是不一样的。 在Ubuntu使用它之后,Windows能够重新配置以太网卡。

总之,从Ubuntu重新启动到Windows是可以的。 完全关闭Windows然后启动进入Ubuntu是可以的。 什么不好是从Windows重启到Ubuntu。 我试图寻找一种方法来强制Ubuntu重新配置卡。 我还搜索了一种方法来强制Windows在重新启动时“释放”该卡,就像它完全关闭一样。 但是,到目前为止,我的搜索结果都没有。