桥接 .NAT

 

如果你是校园网,那么 用.NAT!!!!

 

转 :https://blog.csdn.net/arthur819/article/details/79279607

 

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

 

一、NAT模式:

 

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

 

 

 

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

 

 

 

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

 

 ifconfig eth0 down

 

 ifconfig eth0 up

 

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

 

相关文章:

  • 2021-10-19
  • 2021-06-29
  • 2021-12-22
  • 2022-01-03
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
猜你喜欢
  • 2021-09-15
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-09-30
  • 2021-12-15
相关资源
相似解决方案