计网实验TCPIPConfigurationWord文档下载推荐.docx
《计网实验TCPIPConfigurationWord文档下载推荐.docx》由会员分享,可在线阅读,更多相关《计网实验TCPIPConfigurationWord文档下载推荐.docx(10页珍藏版)》请在冰豆网上搜索。
ClosetheDOSwindowbytypingEXITonthecommandlineandthenpressEnter,orbyclickingtheClosebuttonintheupperrightcornerofthewindow.
ObtaintheTCP/IPConfigurationInformation
UsetheStartmenutoopentheCommandPrompt,anMS-DOS-likewindow.PressStart>
Programs>
Accessories>
CommandPromptorStart>
CommandPrompt.
ThefollowingfigureshowstheCommandscreen.TypeipconfigandpresstheEnterkey.Thespellingofipconfigiscriticalwhilecaseisnot.ItisshortforIPConfiguration.
ThisfirstscreenshowstheIPaddress,subnetmask,anddefaultgateway.TheIPaddressandthedefaultgatewayshouldbeinthesamenetworkorsubnet,otherwisethishostwouldnotbeabletocommunicateoutsidethenetwork.Inthefigurethesubnetmasktellsusthatthefirstthreeoctetsmustbethesametobeinthesamenetwork.
Note:
IfthiscomputerisonaLAN,thedefaultgatewaymightnotbeseenifitisrunningbehindaProxyServer.Recordthefollowinginformationforthiscomputer.
RecordthefollowingTCP/IPinformationforthiscomputer
6.
ComparetheTCP/IPconfigurationofthiscomputertoothersontheLAN
7.IfthiscomputerisonaLAN,comparetheinformationofseveralmachines.
RecordacoupleoftheIPAddresses:
1)IPsddresses1:
192.168.156.57
2)IPaddresses2:
192.168.156.66
Arethereanysimilarities?
前三个字段相同,
WhatissimilarabouttheIPaddresses?
最后字段存在差异
Whatissimilaraboutthedefaultgateways?
完全相同
TheIPaddressesshouldsharethesamenetworkportion.AllmachinesintheLANshouldsharethesamedefaultgateway.
CheckadditionalTCP/IPconfigurationinformation
Toseedetailedinformation,typeipconfig/allandpressEnter.ThefigureshowsthedetailedIPconfigurationscreen.
Thehostname,includingthecomputernameandNetBIOSnameshouldbedisplayed.Also,theDHCPserveraddress,ifused,andthedatetheIPleasestartsandendsshouldbedisplayed.Lookovertheinformation.EntriesfortheDNS,usedinnameresolutionservers,mayalsobepresent.
8.MarkthePhysicalAddress(MAC)andtheNICmodel(Description).
9.Whilenotarequirement,mostLANadministratorstrytostandardizecomponentslikeNICs.Therefore,itwouldnotbesurprisingtofindallmachinessharethefirstthreeHexpairsintheadapteraddress.Thesethreepairsidentifythemanufactureroftheadapter.
10.WritedowntheIPaddressesofanyserverslisted(ifany):
IPsddresses1:
IPaddresses2:
WritedownthecomputerHostName:
118stu-06
WritedowntheHostNamesofacoupleothercomputers:
DoalloftheserversandworkstationssharethesamenetworkportionoftheIPaddressasthestudentworkstation?
NO
Itwouldnotbeunusualforsomeoralloftheserversandworkstationstobeinanothernetwork.Itmeansthatthecomputerdefaultgatewayisgoingtoforwardrequeststotheothernetwork.
UsingpingfromaWorkstation
Accessthecommandprompt
UsetheStartmenutoopentheCommandPromptwindow.PressStart>
AllPrograms>
pingtheIPaddressofanothercomputer
Inthewindow,typeping,aspace,andtheIPaddressofacomputerlocatedinyourworkingarea.
11.ThefollowingfigureshowsthesuccessfulresultsofpingtothisIPaddress.
PingusestheICMPechorequestandechoreplyfeaturetotestphysicalconnectivity.Sincepingreportsonfourattempts,itgivesanindicationofthereliabilityoftheconnection.Lookovertheresultsandverifythatthepingwassuccessful.Isthepingsuccessful?
Ifnot,performappropriatetroubleshooting.成功
Ifasecondnetworkedcomputerisavailable,trytopingtheIPaddressofthesecondmachine.
Notetheresults.
pingtheIPaddressofaDHCPorDNSservers
12.TrytopingtheIPaddressofanyDHCPand/orDNSserverslistedinthelastexercise.Ifthisworksforeitherserver,andtheyarenotinthenetwork,whatdoesthisindicate?
Wasthepingsuccessful?
成功
pingthehostnameofanothercomputer
Trytopingthehostnameofthecomputerthatwasrecordedpreviously.Thefigureshowsthesuccessfulresultofthepingthehostname.
Lookovertheresults.Noticethatthefirstlineofoutputshowsthehostname,DESKTOPintheexample,followedbytheIPaddress.ThismeansthecomputerwasabletoresolvethehostnametoanIPaddress.Withoutnameresolution,thepingwouldhavefailedbecauseTCP/IPonlyunderstandsvalidIPaddresses,notnames.
Ifthepingwassuccessful,itmeansthatconnectivityanddiscoveryofIPaddressescanbedonewithonlyahostname.Infact,thisishowmanyearlynetworkscommunicated.Ifsuccessful,thenpingahostnamealsoshowsthatthereisprobablyaWINSserverworkingonthenetwork.WINSserversoralocal“lmhosts”fileresolvecomputerhostnamestoIPaddresses.Ifthepingfails,thenchancesarethereisnoNetBIOSnametoIPaddressesresolutionrunning.
pingtheIPaddressofthedefaultgateway
13.WhatistheIPaddressofyourdefaultgateway?
192.168.156.254
TrytopingtheIPaddressofthedefaultgateway.Wasitsuccessful?
成功
Ifthepingissuccessful,itmeansthereisphysicalconnectivitytotherouteronthelocalnetworkandprobablytherestoftheworld.
Typetracertatthecommandprompt,followedbyahostnameorIPaddressfromyourworkingarea.
tracertisTCP/IPabbreviationfortraceroute.TheprecedingfigureshowsthesuccessfulresultwhenrunningtracertfromonaLAN.ThefirstoutputlineshowstheFQDNfollowedbytheIPaddress.Therefore,aDNSserverwasabletoresolvethenametoanIPaddress.Ifyouareconnectedonahugenetwork(liketheInternet)therewillbelistingsofallroutersthetracertrequestshadtopassthroughtogettothedestination.
tracertusesthesameechorequestsandrepliesasthepingcommandbutinaslightlydifferentway.
Eachrouterrepresentsapointwhereonenetworkconnectstoanothernetworkandthepacketwasforwardedthrough.
14.Tracertawebsiteandexplainwhatyouhavefound.