Lab Assignment 02Word格式文档下载.docx
《Lab Assignment 02Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《Lab Assignment 02Word格式文档下载.docx(13页珍藏版)》请在冰豆网上搜索。
Topic:
CommandPrompt(CMD)Networking
[A]Aim:
Togetusetotheuseofsomecommoncommandsforcomputernetworkingusingcommandprompt(cmd).
[B]Objectives:
1.Use“ipconfig”command;
2.graspthemeaningof“ping”command;
3.Understandmeaningofthe“Netstat”commandandapplication;
4.Understandmeaningofthe“tracert”commandandapplication;
5.Understandmeaningofthe“nslookup”commandandapplication;
6.Understandmeaningofthe“ARP”commandandapplication;
7.Understandmeaningandapplicationof“Telnet”.
[C]Materials:
1.APCconnectedtoLANnetworkwithinternet.
2.commandprompt(cmd)
[D]Procedure/Method:
A.Theuseof“ipconfig/all”command
Note:
ipconfigcommandisthecommandweoftenuse,itcancheckthesituationofthenetworkconnection,suchasthemachine'
sIPaddress,subnetmask,DNSconfiguration,theDHCPconfigurationetc/allparametersisshowingallconfigurationparameters.
Todothispracticefollowingstepsshouldbedone:
1)Inthe"
start"
-"
run"
pop-updialogboxtype"
CMD"
pressenter,thepop-upwindow,thentypein"
ipconfig/all"
enter,asshowninfigure.
2)ThepictureaboveshowsthecorrespondingaddresssuchasIPaddress,subnetmask,andsoon.Asshowninfigure:
3)Ifthehost(computer)isnotconnectedtotheinternet:
a.Pingtheipaddressofthecomputer
b.Displaywillshowthatitcan'
tsurftheInternet.Thedatagram:
send=4acceptlost=0=4
B.Theuseof“ping”command
1)Input“ping”
2)InputpingIPaddress–t,asshowninfigure:
AppearabovethesecanshownormalaccesstotheInternet,toexplaintheTTL
TTL:
survivaltimespecifiedthedatagramisallowedbythenumberofsegmentsbeforerouterismissing.
TTLissetbythesendinghost,inordertopreventthepacketsintheIPInternetconstantlycyclewillneverend.ForwardingIPpackets,requireatleasttheTTLroutersreduce1.
speedisequaltothematerialofthenumberofbytes(send/returntime[ms])Kbytes.
ifyourmachineTTLis251,thatmeansyourmachine'
sregistrywaschanged!
Asshowninfigure:
Packets:
send=100receive=100;
3)Theuseofping-n
Forexample:
ping192.168.28.101-n3totheIPpingthreetimesbeforeterminationofoperations,nnumberofrepresentative;
4)Theuseofping-l,asshown:
TotheIPuserstosend2000bytes;
Ifyouwanttogrowcanpress"
CTRL+c"
buildterminationofoperation;
5)Ping-l-acombinationofusing,asshown.
SendtheIPusercontinuous2000bytes
C.Theuseof“netstat”command
Annotation:
”netstat”isDOScommands,monitorTCP/IPnetworkisaveryusefultool,itcandisplaytheroutingtable,theactualnetworkconnectionandthestatusinformationofeachnetworkinterfaceequipment.“netstat”displaysandIP,TCP,UDP,andICMPprotocolrelatedstatisticaldata,commonlyusedtotestthemachinenetworkconnectionconditionofeachport.
1)Input“netstat”
2)Input“netstat-a”
3)Input“netstat-e”
4)Input“netstat-n”
D.Theuseof“tracert”command
“tracert”(tracerouting)istheroutingtrackingutility,usedtodeterminetheIPdatagramaccess.“tracert”commandtousetheIPtimetolive(TTL)fieldandICMPerrormessages
Determinefromonehosttootherhostsonthenetworkrouting.
1)Input“tracert”
E.Theuseof“nslookup”command
“nslookup”isconnecttotheDNSserverintheNT,2000,querythedomainnameinformationisaveryusefulcommandbythelocalDNScachereadoutdirectly,ratherthanthelocalDNSaskreallyresponsibleforthedomainnameserver.“nslookup”mustbeinstalledtheTCP/IPnetworkenvironment.“nslookup”mustbeinstalledtheTCP/IPnetworkenvironment.
1)Input“nslookup”
TheaboveresultsshowthattheworkingoftheDNSserverhost,,itistheIPaddressofthe202.102.128.68
2)ToreverseDNS123.235.44.38addressaswww.Basshown:
3)Ifoneofthese,thetesthostinthenetwork,didn'
tfindtheDNSserverthatcanbeused“nslookup”
***Can'
tfindservernamefordomain:
Noresponsefromserver
trepair:
Non-existentdomain
4)Ifoneofthese,thisshowsthattheDNSserverinthenetworkns-atwork,butcan'
trealizethedomainnameresolvedproperly.
Server:
ns-
Address:
202.96.209.5
***ns-can'
tfindaNon-existentdomain
F.Theuseof“arp”command
theARPProtocolistheabbreviationof"
AddressResolutionProtocol"
.Theactualtransmissioninlocalareanetwork(LAN),anetworkisa"
frame"
frameinsideisatargethostMACaddress.
1)Input“arp”
Arpworkingprinciple:
10.1.1.1host10.1.1.2tocommunication,firstofalltofinditsownARPcache,ifwithout10.1.1.2slow
Saverecordissentthefollowingradiopackage:
"
I'
mthehostIamhosting10.1.1.1,myMACis00-58-4c-00-03-B0,IPforhost10.1.1.2pleasetellyourMAC"
Ipforhost10.1.1.2responsethisradio,replyARPbroadcastasfollows:
Iam10.1.1.2,myMACis0e-59-4c-00-33-B0"
So,thehost10.1.1.1ARPcacherefreshyourself,andthenissuetheIPpacket.
G.Theuseof“Telnet”command
Telnetistransmissioncontrolprotocol/Internetprotocol(TCP/IP)network(suchastheInternet)loginandsimulationprogram.ItwasoriginallydevelopedbyARPANET,butnowitismainlyusedintheInternetfield.
Itsbasicfunctionisthatallowstheusertologintotheremotehostsystem.Atfirst,itjustmakestheuserofthiscomputerconnectedtotheremotecomputer,andthusbecomeaterminaltotheremotehost.Someofitsnewerversionperformingmoreprocessinginlocal,socanprovidebetterresponse,andreducethelinksenttothefarhosttheamountofinformation.
1)Forexample,ifyouareinschoolyouareathometotheremotemachinecanbesethereonthedorightclick"
mycomputer"
choose"
management"
asshowninfigure:
Right-clickontheAdminsitrator--select--"
setpassword"
popsup
Dialogbox,continuetosingleuserpasswordsothatyoucan.
2)RemoteComputer
Click"
"
program"
accessories"
--"
remotedesktopconnection"
.Thepop-updialog.Asshowninfigure:
InthecomputerinputtheIPaddressoftheremotecomputeryouwant.Clickthe"
link"
button
Input"
username"
and"
password"
clickok.Asshowninfigure:
Theyoucanseethedesktopofremotecomputerconnectedto.
[E]Results:
Addscreenshotsforeverymethodfortheobjectivesandlabelthescreenshotsaccordingly.
[F]Conclusion:
Writeindividualconclusiononwhatdoyoulearninthislabsession.