Workstation User’s Manual
316 VMware, Inc.
Using Virtual Network Adapters in Promiscuous Mode on
a Linux Host
Workstationdoesnotallowthevirtualnetworkadaptertogointopromiscuousmode
unlesstheuserrunningWorkstationhaspermissiontomakethatsetting.This
restrictionfollowsthestandardLinuxpracticethatonlytherootusercanputanetwork
interfaceintopromiscuousmode.
WhenyouinstallandconfigureWorkstation,youmustruntheins
tallationastheroot
user.Workstationcreatesthevmnetdeviceswithrootownershipandrootgroup
ownership,whichmeansthatonlytherootuserhasreadandwritepermissionstothe
devices.
Tosetthevirtualmachine’snetworkadaptertopromiscuousmode,youmustlaunch
Workstationastherootus
erbecauseyo
umusthavereadandwriteaccesstothevmnet
device.Forexample,ifyouareusingbridgednetworking,youmusthaveaccessto
/dev/vmnet0.
Tograntselectedotherusersreadandwriteaccesstothevmnetdevice,youcancreate
anewgroup,addtheappropriateuserstothegr
oup,andgrantthatgroupreadand
writeaccesstotheappropriatedevice.Youmustmakethesechangesonthehost
operatingsystemastherootuser(su -).Forexample,youcanenterthefollowing
commands:
chgrp <newgroup> /dev/vmnet0
chmod g+rw /dev/vmnet0
Here<newgroup>isthegroupthatshouldbeabletosetvmnet0topromiscuousmode.
Foralluserstobeabletosetthevirtualnetworkadapter(/dev/vmnet0intheexample)
topromiscuousmode,runthefollowingcommandonthehostoperatingsystemasthe
rootuser:
chmod a+rw /dev/vmnet0
Using NAT
NATprovidesawayforvirtualmachinestousemostclientapplicationsoveralmost
anytypeofnetworkconnectionavailabletothehost.Theonlyrequirementisthatthe
networkconnectionmustsupportTCP/IP.
NATisusefulwhenyouhavealimitedsupplyofIPaddressesorareconnectedtothe
netw
orkthrougha
non‐Ethernetnetworkadapter.NATworksbytranslatingaddresses
ofvirtualmachinesinaprivateVMnetnetworktotheaddressofthehostmachine.
Whenavirtualmachinesendsarequesttoaccessanetworkresource,itappearstothe
networkresourceasiftherequestiscomingfromthehostmac
hin
e.
Kommentare zu diesen Handbüchern