2.0

Table Of Contents
VMware, Inc. 243
Chapter 11 Configuring a Virtual Network
Configuration 3 — Connect to Two Host-Only Interfaces
1 Createthevirtualmachineoruseanexistingvirtualmachine.
2 LaunchVI WebAccessandselectthevirtualmachine.
3Edittheconfigurationusingthevirtualnetworkeditor.
Selectthefirstnetworkadapterinthelistofdevices,selectCustom,andselect
VMnet1(Hostonly)(onaWindowshost)or/dev/vmnet1(ona
Linuxhost)from
thedropdownlistontheright.Selectthesecondnetworkadapterinthelistof
devices,selectCustom,thenselectVMnet2(Hostonly)(onaWindowshost)or
/dev/vmnet2(onaLinuxhost)fromthedropdownlistontheright.
Ifyouneedto
addoneormorenetworkadapters,clickAdd,andusetheAdd
Hardwarewizardtoaddanadapter.
Atthispointyoucanpoweronthevirtualmachineandinstallyourguestoperating
system.Inconfigurations1and2youseeoneAMDPCNetAdapter.Inconfiguration3
youseetwo
AMDPCNetAdapterswithintheguest.Configurethenetworkadapters
asyouwouldphysicaladaptersonaphysicalcomputer,givingeachadapteranIP
addressontheappropriateVMnetsubnet.
OnWindowshosts,youcanopenacommandpromptandrunipconfig /alltosee
whatIPaddresseseachhostonly
networkisusing.
OnLinuxhosts,youcanopenaterminalandrunifconfigtoseewhatIPaddresses
eachhostonlynetworkisusing.
Routing Between Two Host-Only Networks
Ifyouaresettingupacomplextestnetworkusingvirtualmachines,youmightwantto
havetwoindependenthostonlynetworkswitharouterbetweenthem.
Therearetwobasicapproaches.Inone,theroutersoftwarerunsonthehostcomputer.
Intheother,theroutersoftwarerunsinits
ownvirtualmachine.Inbothcases,youneed
twohostonlyinterfaces.
Theexamplesdescribedhereoutlinethesimplestcase,withonevirtualmachineon
eachofthehostonlynetworks.Formorecomplexconfigurations,youcanaddmore
virtualmachinesandhostonlynetworksasappropriate.