hankleo

命令是:

sudo /etc/init.d/networking restart

但是可能会遇到下面的提示:

Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces

 

如果在VMware中修改了 Ubuntu 虚拟机的网络连接方式,比如从 Bridged 方式改成 NAT 方式之后,ping www.baidu.com 就会失败。这时如果执行 sudo /etc/init.d/networking restart ,并且遇到上面的提示,可能会发现 ping www.baidu.com 还是失败。

没有找到什么好办法,但是 reboot 之后貌似就好了。

 

from: https://blog.csdn.net/yasi_xi/article/details/8048294

分类:

技术点:

相关文章:

  • 2021-10-02
  • 2021-10-02
  • 2021-10-02
  • 2021-11-03
  • 2021-10-02
  • 2021-10-16
  • 2021-11-04
猜你喜欢
  • 2021-10-02
  • 2021-10-16
  • 2021-12-15
  • 2021-11-03
  • 2021-10-02
  • 2021-10-02
  • 2021-10-02
相关资源
相似解决方案