Changing network configuration for VMs in VMWare Player

The most convenient and trouble-free network setting for VMware images is NAT. The default setting useDHCP for the VMs meaning that when more then one VM gets started (like in UDA or when palying with Hadoop clusters) IP addresses get randomized. Creating fixed IP addresses works around this, but means that we may have to change the default VMWare palyer subent used for NAT. The script below will do this automatically, changing it to 192.168.100.x

vnetlib.exe -- stop nat

vnetlib.exe -- stop dhcp

vnetlib.exe -- set vnet vmnet8 mask 255.255.255.0

vnetlib.exe -- set vnet vmnet8 addr 192.168.100.0

vnetlib.exe -- set adapter vmnet8 addr 192.168.100.2

vnetlib.exe -- set nat vmnet8 internalipaddr 192.168.100.254

vnetlib.exe -- update dhcp vmnet8

vnetlib.exe -- update nat vmnet8

vnetlib.exe -- update adapter vmnet8

vnetlib.exe -- start dhcp

vnetlib.exe -- start nat

留言 • 评论

发布

在本站发言请遵守 相关协议!

0条评论

©2024 | 小木匠 All Rights Reserved | 本站已赖死不活的运行了3124天 | 本站说明