将我的双启动 Windows 10 和 Ubuntu 14.04 LTS 升级到 16.04 后,有线连接停止工作。以太网选项变灰,只有无线连接可用。以太网连接在 Windows 10 中也不起作用。在 Windows 中运行诊断程序显示未连接以太网电缆。我在我的笔记本电脑上尝试了相同的 LAN 电缆和设置,它起作用了。
我的设置是通过 LAN 电缆连接到 NETGEAR 电力线扩展器,然后连接到我的 Virgin Media NETGEAR Superhub。它与我的笔记本电脑完美配合。
命令cat /etc/network/interfaces
显示:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
ip link
显示:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether f8:0f:41:d7:6e:4c brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether 30:10:b3:58:9e:a0 brd ff:ff:ff:ff:ff:ff
ifconfig -a
显示:
eth0 Link encap:Ethernet HWaddr f8:0f:41:d7:6e:4c
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
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 packets:2505 errors:0 dropped:0 overruns:0 frame:0
TX packets:2505 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:249314 (249.3 KB) TX bytes:249314 (249.3 KB)
wlan0 Link encap:Ethernet HWaddr 30:10:b3:58:9e:a0
inet addr:192.168.0.13 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::3210:b3ff:fe58:9ea0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:256489 errors:0 dropped:0 overruns:0 frame:0
TX packets:257071 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:259396146 (259.3 MB) TX bytes:30064247 (30.0 MB)
dmesg | grep eth0
显示:
[ 1.883397] r8169 0000:02:00.0 eth0: RTL8168g/8111g at 0xffffc9000064a000, f8:0f:41:d7:6e:4c, XID 0c000800 IRQ 35
[ 1.883404] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 103.024707] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 104.161199] r8169 0000:02:00.0 eth0: rtl_phy_reset_cond == 1 (loop: 100, delay: 1).
[ 104.163807] r8169 0000:02:00.0 eth0: link down
[ 104.163900] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
lspci -v
显示以太网控制器:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
DeviceName: Onboard Realtek LAN
Subsystem: Acer Incorporated [ALI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Flags: bus master, fast devsel, latency 0, IRQ 35
I/O ports at e000 [size=256]
Memory at fe800000 (64-bit, non-prefetchable) [size=4K]
Memory at d0800000 (64-bit, prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
Capabilities: [170] Latency Tolerance Reporting
Kernel driver in use: r8169
Kernel modules: r8169
我使用升级了网卡驱动程序sudo apt-get install r8168-dkms
但这并不能解决问题。