我最近在我的计算机上添加了一个装有 Ubuntu 14.04 LTS 64 位的分区。
它是 Turbo-X 与 Windows 7 双启动。以太网在 Windows 中运行良好,但在 Ubuntu 中却不工作。
有线连接一直在尝试连接交换机,但无法连接。
george@myia:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:90:f5:8c:2e:04
inet6 addr: fe80::290:f5ff:fe8c:2e04/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:310 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4920 (4.9 KB) TX bytes:56934 (56.9 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 packets:410 errors:0 dropped:0 overruns:0 frame:0
TX packets:410 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:33513 (33.5 KB) TX bytes:33513 (33.5 KB)
wlan0 Link encap:Ethernet HWaddr 00:1d:e0:84:b6:39
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21d:e0ff:fe84:b639/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:254 errors:0 dropped:0 overruns:0 frame:0
TX packets:318 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45164 (45.1 KB) TX bytes:38175 (38.1 KB)
george@myia:~$ nm-tool
NetworkManager Tool
State: connected (global)
- Device: eth0 -----------------------------------------------------------------
Type: Wired
Driver: r8169
State: disconnected
Default: no
HW Address: 00:90:F5:8C:2E:04
Capabilities:
Carrier Detect: yes
Speed: 1000 Mb/s
Wired Properties
Carrier: on
- Device: wlan0 [MF60_B6EF5F] -------------------------------------------------
Type: 802.11 WiFi
Driver: iwl4965
State: connected
Default: yes
HW Address: 00:1D:E0:84:B6:39
Capabilities:
Speed: 54 Mb/s
Wireless Properties
WEP Encryption: yes
WPA Encryption: yes
WPA2 Encryption: yes
Wireless Access Points (* = current AP)
*MF60_B6EF5F: Infra, 78:E8:B6:B6:EF:5F, Freq 2437 MHz, Rate 54 Mb/s, Strength 79 WPA
IPv4 Settings:
Address: 192.168.0.102
Prefix: 24 (255.255.255.0)
Gateway: 192.168.0.1
DNS: 192.168.0.1
george@myia:~$ lspci -nn | grep Ethernet
07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 02)
答案1
sudo dhclient -r
和sudo dhclient eth0
答案2
我也遇到了同样的问题。
进入我的 BIOS 并打开主板的 IOMMU 选项。
之后,Ubuntu 可以看到以太网并正常工作。