红联Linux门户
Linux帮助

ubuntu 12.10设置上网出现问题(重启网络,系统直接挂掉)

发布时间:2013-01-04 17:28:11来源:红联作者:zhouruheng
最近使用VM8 安装了ubuntu12.10,但是在设置上网环节出现了问题。。。。目前还是上不了网!

首先我使用的是 桥接模式!关闭了PC和虚拟机的防火墙。
其次在 sudo vi /etc/network/interfaces中添加了address、gateway、netwask
接着在 sudo vi /etc/resolv.conf 中添加了DNS: nameserver。

但是在重启网络时,出现了致命的错误!!!
sudo /etc/init.d/networking restart
然后终端上提示:
rather than invoking init scripts through /etc/init.d/. use the service(8)
utility , e.g. service networking restart.

since the script you are attempting to invoke has been converted to an
upstart job, you may also use the stop(8), and then start(8) utilities,
e.g. stop networing ; start networking .the restart(8) utility is also aliable.

几秒钟后系统就死了。然后只能重启系统。!!

网上都没找到这些问题的解决方法。

ps:虚拟机和PC互相ping是可以的。就是虚拟机ping主机开始有些慢!
文章评论

共有 11 条评论

  1. 2005wind 于 2015-01-15 11:42:02发表:

    你上面的提示不是你所说的致命的系统的提示
    那个是告诉你 你所运行的脚本 应该有restart networking 来替代
    现在ubuntu 已经不使用init来启动了 你看看相关资料吧 upstart

  2. thrive 于 2015-01-10 11:04:04发表:

    我也是碰到这个问题了,有没有谁知道这个问题怎么解决的。。。。。

  3. 于 2013-12-01 17:38:39发表:

    坐等答案!!!!!!!!!!!!!!

  4. qq470320278 于 2013-04-19 14:49:08发表:

    按说是木问题的啊

  5. 枫静水镜 于 2013-04-18 17:37:57发表:

    请教一下 初学者应该看那学书籍???

  6. append 于 2013-04-13 20:49:13发表:

    推荐楼主采用NAT方式上网,这个最方便,快捷。
    只要主机能够正常上网,采用NAT方式后虚拟机里面的系统可以直接上网,无需任何设置!

  7. songbol 于 2013-04-13 02:30:06发表:

    学习先,看看先,试着用下

  8. 于 2013-04-12 09:25:14发表:

    我也是哦,求解啊~~

  9. 于 2013-03-27 08:36:17发表:

    我的也是同样的问题

  10. 马弋博 于 2013-01-06 14:07:34发表:

    哦 手机的呀

  11. taoty 于 2013-01-05 21:26:04发表:

    记得我以前在VM里安装时不需要设置网络,主机只要能上,VM里的系统就能上……