有线网络不工作;显示已连接到网络但我无法访问互联网..!系统 DELL 17R SE
输出lspci -nnk | grep -iEA3 "(network|ethernet|wireless|broadcom)"
lspci -nnk | grep -iEA3 "(network|ethernet|wireless|broadcom)"
02:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 2230 [8086:0887] (rev c4)
Subsystem: Intel Corporation Centrino Wireless-N 2230 BGN [8086:4462]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
Subsystem: Dell Device [1028:0578]
Kernel driver in use: r8169
Kernel modules: r8169
输出ifconfig -a
eth1 Link encap:Ethernet HWaddr 5c:f9:dd:50:6a:ae
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:13083 errors:0 dropped:0 overruns:0 frame:0
TX packets:761 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1229231 (1.2 MB) TX bytes:90241 (90.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:16436 Metric:1
RX packets:3610 errors:0 dropped:0 overruns:0 frame:0
TX packets:3610 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:498516 (498.5 KB) TX bytes:498516 (498.5 KB)
wlan1 Link encap:Ethernet HWaddr 84:a6:c8:be:66:62
inet addr:192.168.129.101 Bcast:192.168.129.255 Mask:255.255.255.0
inet6 addr: fe80::86a6:c8ff:febe:6662/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47879 errors:0 dropped:0 overruns:0 frame:0
TX packets:46247 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:55790608 (55.7 MB) TX bytes:6349692 (6.3 MB)
答案1
在 Ubuntu 中,如果安装期间有无线和有线适配器可用,则默认启用无线适配器并禁用有线适配器(在后端 - 在网络管理器中打开它不会执行任何操作)。
打开有线适配器的唯一方法是手动编辑 /etc/network/interfaces 并添加一行:
eth0 自动 inet
然后使用命令:
sudo ifup eth0
启用适配器。