How do I use multiple private networks in vmware

11 views
Skip to first unread message

Dan Barrett

unread,
Mar 24, 2016, 3:27:15 PM3/24/16
to Vagrant
I am doing network protocol development and have always created my vms by hand. I'm trying to do this with vagrant to make it easier to bootstrap test networks, but am not clear on how to get what I need.

My setup is multiple hosts  defined in the vagrant file, each connected to the natted 'share with my mac' network on eth0 and then connected to one or more different private networks (vmnet2,vmnet3,...) depending on the topology I'm creating. On virtualbox I can say:

r0.vm.network :private_network, type: "dhcp", virtualbox__intnet: "named-network-<n>"

what's the correct syntax for vmware? 

r0.vm.network :private_network, type: "dhcp", "vmnet2" 

thanks!
dan

Reply all
Reply to author
Forward
0 new messages