我通过五笔安装程序安装了 Ubuntu 10.04(有趣,我今天安装了它,以为我会得到 10.10)。我有网络连接,一切正常。我重新启动了计算机几次,然后突然无法连接到网络,当我单击无线/网络图标时,它显示“网络已禁用”。
我重新安装了 Ubuntu,问题就消失了。几次重启后,问题又回来了。我尝试重新启动,看看它是否会恢复以及下面列出的其他一些事情。任何其他建议将不胜感激。
amato@ubuntu:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... Ignoring unknown interface eth0=eth0.
[ OK ]
Run Code Online (Sandbox Code Playgroud)
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
Run Code Online (Sandbox Code Playgroud)
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
Run Code Online (Sandbox Code Playgroud)
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:
Run Code Online (Sandbox Code Playgroud)
auto lo
iface lo inet loopback
Run Code Online (Sandbox Code Playgroud)
我什至试图将它修改为这个(基于我在网上阅读的内容,不确定我在这里做的是否正确)。再次尝试一切,但没有运气:
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
Run Code Online (Sandbox Code Playgroud)
如果您尝试过sudo start networking或sudo service networking start收到了,networking stop/waiting那么您可能没有正确配置。
在你的/etc/network/interfaces文件中:
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
Run Code Online (Sandbox Code Playgroud)
意味着这eth0是当前插入您的互联网连接的物理适配器。我的预感是,由于某种原因,您与尝试使用相同 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
Run Code Online (Sandbox Code Playgroud)
192.168.1.2你的路由器地址在哪里。另请检查这个问题。
| 归档时间: |
|
| 查看次数: |
19036 次 |
| 最近记录: |