![有线连接无法正常工作 Ubuntu 12.04](https://linux22.com/image/820882/%E6%9C%89%E7%BA%BF%E8%BF%9E%E6%8E%A5%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C%20Ubuntu%2012.04.png)
到目前为止,我的连接都很好,但我的有线连接在 Ubuntu 12.04 中不起作用。我已经在 Windows 7 分区旁边安装了 Ubuntu 12.04,连接在 Windows 上有效,但在 Ubuntu 12.04 上无效。我的无线连接也没有问题。问题特定于 Ubuntu 12.04 上的有线连接。我在下面提供了一些详细信息。
ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:ec:8d:f0:03
inet6 addr: fe80::21e:ecff:fe8d:f003/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:376 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:316 (316.0 B) TX bytes:33769 (33.7 KB)
Interrupt:19
eth2 Link encap:Ethernet HWaddr 00:21:00:4e:ac:58
inet6 addr: fe80::221:ff:fe4e:ac58/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1660 errors:0 dropped:0 overruns:0 frame:28
TX packets:1846 errors:61 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1372676 (1.3 MB) TX bytes:254576 (254.5 KB)
Interrupt:18
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:16436 Metric:1
RX packets:1862 errors:0 dropped:0 overruns:0 frame:0
TX packets:1862 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:155767 (155.7 KB) TX bytes:155767 (155.7 KB)
sudo lshw -C network
*-network
description: Wireless interface
product: BCM4312 802.11b/g LP-PHY
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth2
version: 01
serial: 00:21:00:4e:ac:58
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=wl0 driverversion=5.100.82.38 ip=10.0.0.3 latency=0 multicast=yes wireless=IEEE 802.11bg
resources: irq:18 memory:99700000-99703fff
*-network
description: Ethernet interface
product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:04:00.0
logical name: eth0
version: 02
serial: 00:1e:ec:8d:f0:03
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=N/A latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
resources: irq:19 ioport:3000(size=256) memory:93410000-93410fff memory:93400000-9340ffff memory:93420000-9343ffff
答案1
升级到 12.04 后我遇到了同样的问题。
以下解决方案对我有用:
以 root 身份在文本编辑器中打开此文件:
gksu gedit /etc/network/interfaces
将以下行添加到文件:
auto eth0 iface eth0 inet dhcp
保存文件并退出文本编辑器。
现在重启网络:
答案2
我所要做的就是从端口拔下以太网电缆,然后再插上。它成功了。太荒谬了。
答案3
尝试启用/禁用连接,并删除当前活动的连接并在下次添加!
答案4
尝试
sudo service network-manager restart
然后重置IP
sudo /etc/init.d/networking restart
之后检查
ifconfig
看看会发生什么变化。