Você está na página 1de 2

2/6/2015

InterviewquestionsonDHCPTCPIPGURU|TCPIPGURU

InterviewquestionsonDHCP
InaDHCPenvironment,whichofthecomponents(ClientorServer)initiatestherequest
TheclientwouldalwaysinitiatetheDHCPrequest.Therequestistriggerredfromtheclient,whentheTCP/IP
adapterisconfiguredfortheoptionObtainIPaddressautomatically.Whenthisisselected,theoperatingsystem
wouldautomaticallygeneratetheDHCPDiscovertoidentifyvalidDHCPServersonthenetwork.
HowmanyDHCPpacketsareexchangedbetweenaclientandaserverbeforetheclientreceivesanIP
address
4DHCPpacketsareexchangedbetweentheclientandtheserver.TheyareDHCPDiscover,DHCPOffer,DHCP
Request,DHCPAck.
WhattypeofpacketisaDHCPDiscoverpacket
DHCPDiscoverisalayer3broadcastpacketwithdestinationIPaddressas255.255.255.255
250+NetworkEngineerInterviewQuestions&Answers

250+Network
Engineer
Interview
Questionsand
Answers

WhatisanIPHelperaddressfeatureandwhyisitrequiredinaDHCPenvironment
DHCPDiscoverpacketsarebroadcastpackets.ThismeansthataDHCPDiscoverpacketwhichissentfromthe
clientwouldnotreachtheDHCPServer,iftheserverresidesonadifferentnetwork.Thisisbecause,routersare
requiredforcommunicationbetweendifferentnetworksandroutersdonotforwardbroadcastpackets.TheIP
Helperaddressfeatureisconfiguredontherouter.ThefeatureinformstheroutertheDHCPServersIPaddressfor
thenetwork.So,WhentherouterreceivestheDHCPDiscoverpacket,itwouldconvertitfrombroadcasttounicast
packetandthensendittotheDHCPServer.
WhatisaDHCPScopeandwhyisitrequired
AscopeincludesinformationlikeIPaddressranges,SubnetMasks,gatewayaddress,DNSServeretc.This
requiredsothatclientswouldrequirethenecessaryinformationfromtheserver.
WhatwouldhappeniftherearemultipleDHCPserversonanetwork
TheclientswouldtriggerDHCPDiscoverpacketsandtheserverwhichrespondsfirstwouldprovidetheIPaddress
totheclient
Howdoesaclientknowthataleasehasexpiredandhowisitrenewed
WhenaclientreceivesanIPaddressfromtheDHCPServer,theleaseexpirydateandtimeisprovidedaspartof
data:text/htmlcharset=utf8,%3Ch1%20style%3D%22color%3A%20rgb(34%2C%2034%2C%2034)%3B%20fontfamily%3A%20Georgia%2C%20Times

1/2

2/6/2015

InterviewquestionsonDHCPTCPIPGURU|TCPIPGURU

DHCPoptions.Thisismaintainedandrecordedbytheclient.Justbeforetheleaseexpirytime,theclientwould
initiatearenewrequesttotheserverforanewlease
HowmanyDHCPServerscanresideononesubnet
Itsunlimited.ButifthereisaDHCPclient,whichserverwouldleaseouttheIPaddress?Itsasimplelogic.The
firstserverwhichrespondstotheDHCPclientsIPaddressrequestwouldleaseouttheIPaddress.
ExplainthecommunicationflowbetweenaDHCPclientandserveronanetworkwithtwoDHCPServers
ThefirstpackettheDHCPClientinitiateswouldbetheDHCPDiscoverpacket.TheDHCPDiscoverpacketis
broadcastinnatureandwouldbereceivedbyboththeDHCPservers.TheDHCPserverswouldrespondwith
DHCPofferpacketcontainingtheIPaddresseswhichtheyoffer.BasedonthefirstDHCPoffertheclientreceives,
theclientwouldrespondwithDHCPrequestpacketwhichcontainstheIPaddresswhichitwouldbeusingalong
withtheDHCPserversIPaddresswhichhadprovidetherespective.Thispacketissendasbroadcast.Thepacket,
whenreceivedbytheotherDHCPserverwouldunderstandthattheIPaddresswhichithadleasedtotheclient(In
theDHCPofferpacket)isnottaken.SotheDHCPserverwouldputtheIPaddressbacktoitspool.

data:text/htmlcharset=utf8,%3Ch1%20style%3D%22color%3A%20rgb(34%2C%2034%2C%2034)%3B%20fontfamily%3A%20Georgia%2C%20Times

2/2

Você também pode gostar