VMWare虚拟机下为Ubuntu 12.04.1配置静态IP(NAT方式)

确认VMnet8虚拟网卡已启用

下面开始进入Ubuntu虚拟机设置静态IP。

在Ubuntu 12.04.1中设置静态IP

1. 启动虚拟机Ubuntu系统,打开终端,利用如下命令打开并编辑网络接口配置文件:

vi /etc/network/interfaces

2.重启ubuntu的网卡
/etc/init.d/networking stop
/etc/init.d/networking start

 
3.ping测试互联网连通性

ping www.baidu.com

  有数据包反馈说明网络通了。

原文地址:https://www.cnblogs.com/fx2008/p/4720495.html