安装 Ubuntu 14.04 LTS 后以太网连接不起作用

Jul*_*ibe 6 networking internet ethernet ip 14.04

编辑:问题又回来了..我想不出一个永久可靠的方法来解决这个错误(已经设法让这个错误消失了 2 次)我的文件在他们的名字后不断复制自己,所以如果我修改 rc.local,一个名为 rc.local~ 的文件突然冒出来,我不明白这是做什么的。

我也没有 /etc/init/module-init-tools.conf 文件,我修改了 kmod.conf 中的脚本...

帮助表示赞赏。

编辑:问题解决了https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1003297

我在 Windows 7 旁边安装了 Ubuntu 14.04 LTS,我的以太网连接在 Windows 中没有问题,但在 Ubuntu 中不起作用。我认为问题与驱动程序有关,并且不允许我获取/分配 IP 地址。感谢您尝试提供帮助,我将描述前面的问题。

我的 wifi 连接没有问题。当我禁用我的 wifi 时:我的网络管理器尝试使用有线连接 1 进行连接,它总是返回“断开连接 - 你现在离线”,然后它尝试再次连接并重复循环(断开连接 - 你现在离线)。

诊断信息:

~$ lspci | 以太网

00:07.0 桥接器:NVIDIA Corporation MCP61 以太网(修订版 a2)

~$ ifconfig

eth0
Link encap:Ethernet HWaddr bc:5f:f4:6f:26:c0
inet6 addr: fe80::be5f:f4ff:fe6f:26c0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors :12 丢弃:0 溢出:11 帧:1 TX 数据包:140 错误:0 丢弃:0 溢出:0 载波:0 冲突:0 txqueuelen:1000 RX 字节:0 (0.0 B) TX 字节:27262 (27.2 KB)

lo
Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packet:1679 errors:0 drops:0 overruns:0帧:0 TX 数据包:1679 错误:0 丢弃:0 溢出:0 载波:0 冲突:0 txqueuelen:0 RX 字节:147779 (147.7 KB) TX 字节:147779 (147.7 KB)

关于我的以太网控制器:我不太了解,但这是我得到的信息:

~$ sudo lshw -class 桥

*-bridge 描述:以太网接口产品:MCP61 以太网供应商:NVIDIA Corporation 物理 ID:7 总线信息:pci@0000:00:07.0 逻辑名称:eth0 版本:a2 串行:bc:5f:f4:6f:26:c0 大小:100000000 容量:100000000 宽度:32 位时钟:66MHz 功能:桥接 pm msi ht bus_master cap_list 以太网物理 mii 10bt 10bt-fd 100bt 100bt-fd 自动协商配置:autonegotiation driver=0forcedelay6duforce =0 link=yes maxlatency=20 mingnt=1 multicast=yes port=MII speed=100Mbit/s 资源:irq:44 memory:eeefd000-eeefdfff ioport:d080(size=8)

最后,我设法获得了一个诊断连接的脚本,这是当我的 wifi 关闭并且我尝试通过以太网连接时的输出:

警告:此系统没有默认路由

信息:主机本地主机对 ICMP ping 的回答

信息:环回接口工作正常

信息:lo 接口已启动

信息:lo 接口已分配 IP 地址 127.0.0.1/8 ::1/128

信息:lo 接口有 tx 和 rx 数据包。

信息:eth0 接口已启动 信息:eth0 接口已分配 IP 地址 fe80::be5f:f4ff:fe6f:26c0/64 ERR:eth0 接口没有 tx 或 rx 任何数据包。链接挂了?

警告:eth0 接口有 rx 错误。

警告:wlan0 接口已关闭

ERR:系统没有配置任何名称服务器

警告:系统似乎无法通过 ICMP 访问 Internet 主机 www.debian.org 警告:无法访问 Internet 主机 www.debian.org 上的 Web 服务器

感谢您的阅读,如果您能帮助我,将不胜感激。

编辑: $sudo lshw -class 网络

  *-network DISABLED      
   description: Wireless interface
   physical id: 1
   bus info: usb@1:4
   logical name: wlan0
   serial: 00:e0:4c:c0:c4:2c
   capabilities: ethernet physical wireless
   configuration: broadcast=yes driver=rtl8192cu driverversion=3.16.0-34-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11bgn
Run Code Online (Sandbox Code Playgroud)

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:    14.04
Codename:   trusty
Run Code Online (Sandbox Code Playgroud)

Eld*_*eek 4

注意:我将此解决方法发布为答案,因为此问题已多次被报告为错误,但此后不久就会过期并再次出现。

测试

  1. 进入 Ubuntu 恢复模式:打开系统电源并Shift在启动过程中按 GRUB 菜单。

    b. 选择“Ubuntu的高级选项”> Ubuntu,[内核版本](恢复模式)

  2. 选择“root”并键入以下命令:

    rmmod forcedeth
    modprobe forcedeth msi=0 msix=0
    exit
    
    Run Code Online (Sandbox Code Playgroud)
  3. 选择“恢复”恢复正常启动

现在网络应该没问题,直到下次使用 AM3+ CPU 启动为止。

如果该解决方法适用于您的系统,请修改以下文件以在启动时自动运行脚本:

错误解决方案:

  1. exec rmmod forcedeth在文件 /etc/init/module-init-tools.conf 或 /etc/init/kmod.conf 中的“script”下一行(grep 上方?)添加该行

  2. 将行添加modprobe forcedeth msi=0 msix=0到 /etc/rc.local

  3. 重启系统验证

资料来源:主要是 Achkap 帖子 #16 http://ubuntuforums.org/showthread.php?t=2020571&page=2

https://bugs.launchpad.net/ubuntu/+s...x/+bug/1003297

https://bugs.launchpad.net/ubuntu/+bug/1264509

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1281930

朱利安·乌里韦评论中的线索。