我运行的是 11.04,没有 remix。安装后,我可以使用无线网络,但不能使用以太网。当我单击连接菜单项时,它显示
Wired Network
disconnected
我该如何解决?
以下是以太网部分ifconfig
:
eth0 Link encap:Ethernet HWaddr 00:16:36:86:f3:43
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)
Interrupt:17
结果是lspci
:
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5788 Gigabit Ethernet (rev 03)
02:09.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
02:09.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
02:09.4 Communication controller: Texas Instruments PCIxx12 GemCore based SmartCard controller
08:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Net
我的/etc/network/interfaces
样子是这样的:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
但我没有得到任何输出sudo ifconfig eth0 up
。
输出自nm-applet
:
** (nm-applet:1824): DEBUG: old state indicates that this was not a disconnect 0
** (nm-applet:1824): DEBUG: old state indicates that this was not a disconnect 0
第二次运行时nm-applet
:
** (nm-applet:2752): DEBUG: old state indicates that this was not a disconnect 0
** (nm-applet:2752): DEBUG: old state indicates that this was not a disconnect 0
** (nm-applet:2752): WARNING **: _nm_object_get_property: Error getting 'WpaFlags' for /org/freedesktop/NetworkManager/AccessPoint/10: (19) Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
** (nm-applet:2752): WARNING **: _nm_object_get_property: Error getting 'RsnFlags' for /org/freedesktop/NetworkManager/AccessPoint/10: (19) Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
** (nm-applet:2752): WARNING **: Error in getting active connection 'Vpn' property: (19) Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
** (nm-applet:2752): WARNING **: _nm_object_array_demarshal: couldn't create object for /org/freedesktop/NetworkManager/ActiveConnection/0
** Message: <info> No keyring secrets found for Auto HeyJude88/802-11-wireless-security; asking user.
** (nm-applet:2752): WARNING **: applet.c.2882 (applet_settings_new_secrets_requested_cb): couldn't find details for connection
** Message: <info> No keyring secrets found for Auto HeyJude88/802-11-wireless-security; asking user.
** (nm-applet:2752): DEBUG: going for offline with icon: notification-network-wireless-disconnected
** (nm-applet:2752): DEBUG: foo_client_state_changed_cb
** (nm-applet:2752): DEBUG: foo_client_state_changed_cb
** (nm-applet:2752): DEBUG: foo_client_state_changed_cb
** (nm-applet:2752): DEBUG: going for offline with icon: notification-network-wireless-disconnected
** (nm-applet:2752): DEBUG: foo_client_state_changed_cb
更多内容如下ifconfig
:
wlan0 Link encap:Ethernet HWaddr 00:18:de:31:70:20
inet addr:172.16.6.210 Bcast:172.16.6.255 Mask:255.255.255.0
inet6 addr: fe80::218:deff:fe31:7020/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2384 errors:0 dropped:0 overruns:0 frame:0
TX packets:1367 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:514654 (514.6 KB) TX bytes:215138 (215.1 KB)
答案1
编辑接口文件以删除
auto eth0
iface eth0 inet dhcp
保存重启,使用网络管理器编辑连接,设置为自动连接。
此命令将在 Gedit 中打开接口文件并具有保存文件的权限:
sudo gedit /etc/network/interfaces
我有有线和无线连接,并且我的接口文件中只有这两行
auto lo
iface lo inet loopback
我从经验中发现,任何其他东西都无法阻止连接,而移除多余的东西可以解决问题。
答案2
基本第 1 层接地检查 - 您的以太网端口是否已连接,您确定电线和调制解调器端口是否正常?连接电线时,请确认以太网端口指示灯是否闪烁(绿色或琥珀色)。否则,这是物理层问题。它是否在同一个交换机端口的其他机器上工作?
假设上述内容已得到解决,您尝试过吗
sudo ifconfig eth0 up
?另外,检查你的
/etc/network/interfaces
文件,看看是否有以下行自动 eth0
这将在启动时自动启用 eth0
答案3
如果你执行我在评论中提到的第一个命令
killall -9 nm-applet
然后
sudo service network-manager stop
这将停止网络管理器服务然后输入此命令
sudo rm /var/lib/NetworkManager/NetworkManager.state
这将删除 NetworkManager.state 文件,不用担心,此文件将被重新生成,然后使用此命令重新启动网络管理器服务
sudo service network-manager stop
最后用这个命令重新启动 nm-applet
nohup nm-applet &
现在应该就可以连接了。
发生这种情况的原因是上次网络断开是由于崩溃。由于崩溃可能与网络连接有关,因此暂时禁用它以允许您重新启动并修复问题,然后再重新启用连接。