win7配置虚拟机的IP

1.安装WMware

2.选择NAT模式,本机主机必须具有静态IP?

3.选择桥接模式,这时本机连的是无线网络,自动获取的IP

4.sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE="eth0"
BOOTPROTO="static"
HWADDR="00:0C:29:4D:60:B6"
IPV6INIT="yesl"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="cd4086da-1f86-4479-8655-e62e3bcb062f"
IPADDR="172.21.14.101"
NETMASK="255.255.255.0"
GATEWAY=172.21.15.254
DNS1=192.168.255.34
DNS2=114.114.114.114


5.设置完毕后 service network restart


6.右键安装的centos6,5,选择环境克隆,如此增加新的IP

你可能感兴趣的:(linux)