VMware, Inc. 311
Chapter 15 Advanced Virtual Networking
Potential Issues with Host-Only Networking on Linux
Thefollowingarecommonissuesyoumightencounterwhenyouareconfiguringa
host‐onlynetworkonLinux.
DHCPD on the Linux Host Does Not Work After Installing
Workstation
IfyouwererunningtheDHCPserverdhcpdutilityonyourmachinebeforeyou
installedWorkstation,itprobablywasconfiguredtorespondtoDHCPrequestsfrom
clientsonanynetworkinterfacepresentonthemachine.Whenhost‐onlynetworking
isconfigured,anadditionalnetworkinterface,vmnet1,ismarkedupandavailablefor
us
e,anddhcpdmightnoticethis.
Insuchcases,somedhcpdimplementationsabortiftheirconfigurationfilesdonot
includeasubnetspecificationfortheinterface.Thiscanhappenevenifdhcpdisnot
supposedtorespondtomessagesthatarrivethroughtheinterface.
Thebestsolutionistoaddali
netothedhcpdconfigurationfileinthefollowingformat:
subnet <net>.0 netmask 255.255.255.0 {}
Here <net>isthenetworknumberassignedtoyourhost‐onlynetwork,forexample,
192.168.0.Thislineintheconfigurationfileinformsdhcpdaboutthehost‐onlynetwork
andtellsitexplicitlynottorespondtoanyDHCPrequestsarrivingfromit.
Analternativesolutionistoexplicitlystatethesetofne
tworkinterfacesfo
rdhcpdto
monitoreachtimeyoustarttheprogram.Forexample,ifyourmachinehasone
Ethernetinterface,eth0,eachtimeyoustartdhcpd,listtheinterfaceonthecommand
line:
dhcpd eth0
Thispreventsdhcpdfromsearchingforallavailablenetworkinterfaces.
Ifthesesolutionsdonot workforyourDHCPserver program,itmightbeanoldDHCP
server.YoucantryupgradingtoamorecurrentversionofDHCPavailablefromthe
InternetSystemsConsortium(ISC)Website.
DHCP and DDNS
UseDHCPtosupplyIPaddressesaswellasotherinformation,suchastheidentityof
ahostrunninganameserverandthenearestrouterorgateway.TheDHCPserverin
Workstationdoesnotprovideameanstodynamicallyestablisharelationshipbetween
theIPaddressitassignsandacl
ient’sname(thatis,toupdateaDNSserverusing
dynamicdomainnameservice(DDNS).
Kommentare zu diesen Handbüchern