2.0

Table Of Contents
VMware, Inc. 247
Chapter 11 Configuring a Virtual Network
5Ifyouarerunningtherouteronthehostcomputer,assigndefaultrouteraddresses
basedontheaddressesofthehostonlyadaptersonthehostcomputer.Inthefirst
virtualmachine’snetworkingconfiguration,thedefaultrouteraddressshouldbe
theIPaddressforthehostonlyadapterconnectedtoVMnet1.
Inthesecondvirtual
machine’snetworkingconfiguration,thedefaultrouteraddressshouldbetheIP
addressforthehostonlyadapterconnectedtoVMnet2.
Ifyouarerunningtheroutersoftwareonthethirdvirtualmachine,setthedefault
routeraddressesinthefirsttwovirtualmachinesbasedonthose
usedbythethird
virtualmachine.Inthefirstvirtualmachine’snetworkingconfiguration,the
defaultrouteraddressshouldbetheIPaddressforthethirdvirtualmachine’s
networkadapterconnectedtoVMnet1.Inthesecondvirtualmachine’snetworking
configuration,thedefaultrouteraddressshouldbetheIPaddressforthethird
virtualmachine’snetworkadapterconnectedtoVMnet2.
Atthispointyoushouldbeabletopingtheroutermachinefromvirtualmachinesone
andtwo.Andiftheroutersoftwareissetupcorrectly,youshouldbeableto
communicatebetweenthefirstandsecondvirtualmachines.
Using Virtual Network Adapters in Promiscuous Mode on a
Linux Host
VMwareServerdoesnotallowthevirtualnetworkadaptertogointopromiscuous
modeunlesstheuserrunningVMwareServerhaspermissiontomakethatsetting.This
followsthestandardLinuxpracticethatonlyrootcanputanetworkinterfaceinto
promiscuousmode.
WhenyouinstallandconfigureVMwareServer,you
mustruntheinstallationasroot.
VMwareServercreatestheVMnetdeviceswithrootownershipandrootgroup
ownership,whichmeansthatonlyroothasreadandwritepermissionstothedevices.
Tosetthevirtualmachine’snetworkadaptertopromiscuousmode,youmustlaunch
VMwareServerasrootbecauseyou
musthavereadandwriteaccesstotheVMnet
device.Forexample,ifyouareusingbridgednetworking,youmusthaveaccessto
/dev/vmnet0.
TograntselectedotherusersreadandwriteaccesstotheVMnetdevice,youcancreate
anewgroup,addtheappropriateuserstothegroupand
grantthatgroupreadand
writeaccesstotheappropriatedevice.Youmustmakethesechangesastherootuser
onthehostoperatingsystem.Forexample,youcanenterthefollowingcommands:
chgrp <newgroup> /dev/vmnet0
chmod g+rw /dev/vmnet0
<newgroup>isthegroupthatshouldhavetheabilitytosetvmnet0topromiscuous
mode.