环境:VMware 14;Ubuntu14.04

VMware中网络设置有三种:NAT、桥接和Host-only。其中Host-only模式下,虚拟机不能上网。这里只介绍前面两种。

一、NAT模式:

(1)虚拟机设置中选择,NAT模式

(一)Ubuntu14.04下的网络设置

(2)修改/etc/network/interfaces文件内容

(一)Ubuntu14.04下的网络设置

(3)重新启动网卡,Ubuntu14.04中重启网卡命令改为

 ifconfig eth0 down

 ifconfig eth0 up

(4)ping www.baidu.com测试网络

(一)Ubuntu14.04下的网络设置

二、桥接模式(正在搞)

()ping www.baidu.com

相关文章:

  • 2021-07-06
  • 2021-07-24
  • 2022-12-23
  • 2021-09-04
  • 2022-01-09
  • 2021-09-08
  • 2022-12-23
  • 2021-09-17
猜你喜欢
  • 2021-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2021-07-26
  • 2021-09-15
  • 2021-11-15
相关资源
相似解决方案