
VMware, Inc. 305
Chapter 15 Advanced Virtual Networking
Determining Whether to Use DHCP or Statically Assign
Addresses
UsingDHCPtoassignIPaddressesissimplerandmoreautomaticthanstatically
assigningthem.MostWindowsoperatingsystems,forexample,arepreconfiguredto
useDHCPatboottime,soWindowsvirtualmachinescanconnecttothenetworkthe
firsttimetheyarebooted,withoutadditionalconfiguration.Ifyouwantyourvi
rtual
machinestocommunicatewitheachotherusingnamesinsteadofIPaddresses,
however,youmustsetupanamingconvention,anameserverontheprivatenetwork,
orboth.InthatcaseitmightbesimplertousestaticIPaddresses.
Ingeneral,ifyouhavevirtualmachinesyouintendtous
efrequentlyorforextended
periodsoftime,itismostconvenienttoassignthemstaticIPaddressesorconfigurethe
VMwareDHCPservertoalwaysassignthesameIPaddresstoeachofthesevirtual
machines.
DHCP Conventions for Assigning IP Addresses
Fortemporaryvirtualmachines,useDHCPandletitallocateanIPaddress.
Foreachhost‐onlyorNATnetwork,theavailableIPaddressesareallocatedusingthe
conventionsshowninTable 15‐1andTable 15‐2,where<net>isthenetworknumber
assignedtoyourhost‐onlyorNATnetwor k.Workstationalw
aysus
esaClassCaddress
forhost‐onlyandNATnetworks.
Table 15-1. IP Address Use on a Host-Only Network
Range Address Use Example
<net>.1 Hostmachine 192.168.0.1
<net>.2–<net>.127 Staticaddresses 192.168.0.2–192.168.0.127
<net>.128–<net>.253 DHCP‐assigned 192.168.0.128–192.168.0.253
<net>.254 DHCPserver 192.168.0.254
<net>.255 Broadcasting 192.168.0.255
Table 15-2. IP Address Use on a NAT Network
Range Address Use Example
<net>.1 Hostmachine 192.168.0.1
<net>.2 NATdevice 192.168.0.2
<net>.3–<net>.127 Staticaddresses 192.168.0.3–192.168.0.127
<net>.128–<net>.253 DHCP‐assigned 192.168.0.128–192.168.0.253
Kommentare zu diesen Handbüchern