网络停止在Ubuntu上工作


6

我通过Wubi安装程序安装了Ubuntu 10.04(有趣的是,我今天安装了它,并以为我会得到10.10)。我有网络连接,并且一切正常。我几次重新启动计算机,然后突然无法连接到网络,当我单击无线/网络图标时,它显示“网络已禁用”。

我重新安装了Ubuntu,问题消失了。重启几次后,问题返回。我尝试重新启动,看看是否还会回来以及下面列出的其他一些内容。任何其他建议,将不胜感激。

尝试通过/etc/init.d/networking重新启动网络:

amato@ubuntu:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                          Ignoring unknown interface eth0=eth0.
                                                                         [ OK ]

试图停止并启动它:

amato@ubuntu:~$ sudo /etc/init.d/networking stop
 * Deconfiguring network interfaces...                                   [ OK ] 
amato@ubuntu:~$ 
amato@ubuntu:~$ sudo /etc/init.d/networking start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service networking start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start networking
networking stop/waiting

尝试开始联网:

amato@ubuntu:~$ start networking
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.58" (uid=1000 pid=2241 comm="start) interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))
amato@ubuntu:~$ sudo start networking
networking stop/waiting

尝试重新启动服务网络:

amato@ubuntu:~$ service networking restart
restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.60" (uid=1000 pid=2248 comm="restart) interface="com.ubuntu.Upstart0_6.Job" member="Restart" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))
amato@ubuntu:~$ sudo service networking restart
restart: Unknown instance: 

这是我的/ etc / network / interfaces的内容。

auto lo
iface lo inet loopback

我什至试图对此进行修改(根据我在网上阅读的内容,不确定我在这里做的是否正确)。再次尝试了一切,没有运气:

auto lo eth0
iface lo inet loopback

iface eth0 inet dhcp

可能更适合askubuntu.com或superuser.com
Andreas Wong

DHCP还是静态配置?向我们展示您的/ etc / network / interfaces

这可能是暂时性的问题-您的wifi接收效果如何?您的wifi网络是否有密码?当您尝试使用GUI或连接到网络时sudo service networking restart,出现什么消息/var/log/syslog
Gilles 2010年

您还可以张贴ifconfig哪个助手的输出来诊断正在发生的事情吗?
M. Tibbits

Answers:


2

以前这是在我的笔记本电脑上发生的-原来我不小心按下了可杀死wifi的开关,而当我打开开关后,Ubuntu并没有重新打开wifi。我解决了:

rfkill unblock wifi

试一试。


1

如果您尝试过sudo start networkingsudo service networking start收到了,networking stop/waiting那么您可能没有正确配置的内容。

在您的/etc/network/interfaces文件中:

auto lo eth0
iface lo inet loopback

iface eth0 inet dhcp

表示eth0这是当前已插入Internet连接的物理适配器。我的直觉是,由于某种原因,您与尝试使用相同IP地址的另一台设备存在冲突。因此,您可以尝试使用静态IP地址(如果使用支持dhcp的路由器-例如Linksys / Cisco):

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 192.168.1.200
    netmask 255.255.255.0
    gateway 192.168.1.2

192.168.1.2路由器的地址在哪里。还要检查这个问题


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.