vmware安装ubuntu后配置网络

vmware安装ubuntu后配置网络

摘要

vmware安装ubuntu后配置网络,桥接网络,局域网配置.

设置桥接

修改IP

sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.20
netmask 255.255.255.0
gateway 192.168.1.1

Ctrl+x保存退出

修改DNS

sudo nano /etc/resolvconf/resolv.conf.d/base
nameserver 192.168.1.1
nameserver 223.5.5.5
nameserver 223.6.6.6

重启

reboot

这样建好的ubuntu虚拟机,就跟自己的宿主机电脑在同一个局域网中了.
而且可以访问外网.

下载地址

ubuntu 14.04 64位 Server版
http://releases.ubuntu.com/14.04/ubuntu-14.04.5-server-amd64.iso.torrent?_ga=1.182498532.33729667.1474078529

再附一个VMware Player (免费) 的下载页面
http://www.vmware.com/products/player/playerpro-evaluation.html

windows版本(64)
https://download3.vmware.com/software/player/file/VMware-player-12.5.0-4352439.exe

Linux版本(64)
https://download3.vmware.com/software/player/file/VMware-Player-12.5.0-4352439.x86_64.bundle