计算机网络实验二 在PC机上熟悉常用网络命令实验报告_第1页
计算机网络实验二 在PC机上熟悉常用网络命令实验报告_第2页
计算机网络实验二 在PC机上熟悉常用网络命令实验报告_第3页
计算机网络实验二 在PC机上熟悉常用网络命令实验报告_第4页
计算机网络实验二 在PC机上熟悉常用网络命令实验报告_第5页
已阅读5页,还剩24页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

计算机网络实验二在PC机上熟悉常用网络命令实验报告计算机网络实验二在PC机上熟悉常用网络命令实验报告计算机网络原理实验报告实验二熟悉常用的网络命令实验报告姓名:陈津生班级:12级数字媒体技术2班学号:2012329700056指导教师:张芳-aDisplayscurrentARPentriesbyinterrogatingthecurrentprotocoldata.Ifinet_addrisspecified,theIPandPhysicaladdressesforonlythespecifiedcomputeraredisplayed.IfmorethanonenetworkinterfaceusesARP,entriesforeachARPtablearedisplayed.-gSameas-a.inet_addrSpecifiesaninternetaddress.-Nif_addrDisplaystheARPentriesforthenetworkinterfacespecifiedbyif_addr.-dDeletesthehostspecifiedbyinet_addr.inet_addrmaybewildcardedwith*todeleteallhosts.-sAddsthehostandassociatestheInternetaddressinet_addrwiththePhysicaladdresseth_addr.ThePhysicaladdressisgivenas6hexadecimalbytesseparatedbyhyphens.Theentryispermanent.eth_addrSpecifiesaphysicaladdress.if_addrIfpresent,thisspecifiestheInternetaddressoftheinterfacewhoseaddresstranslationtableshouldbemodified.Ifnotpresent,thefirstapplicableinterfacewillbeused.Example:>arp-s1200-aa-00-62-c6-09....Addsastaticentry.>arp-a....Displaysthearptable.2、ftp:(功能就不用描述了,请参看下面的具体用法)ftp>openConnectedto.220欢迎登陆计算机基础教研室FTP服务器User(:(none)):1234567891234331Usernameokay,needpassword.Password:230Userloggedin,proceed.ftp>-vInvalidcommand.ftp>ftp-vInvalidcommand.ftp>ftp[-v]Invalidcommand.ftp>cdRemotedirectoryftp!550/ftp:Nosuchfileordirectory.ftp>!MicrosoftWindowsXP[版本5.1.2600](C)版权所有1985-2001MicrosoftCorp.3、IpconfigC:\DocumentsandSettings\ligong>ipconfigWindowsIPConfigurationEthernetadapter本地连接2:Connection-specificDNSSuffix.:IPAddress............:19SubnetMask...........:DefaultGateway.........:C:\DocumentsandSettings\ligong>4、Nbtstat.exeC:\DocumentsandSettings\ligong>nbtstat.exeDisplaysprotocolstatisticsandcurrentTCP/IPconnectionsusingNBT(NetBIOSoverTCP/IP).NBTSTAT[[-aRemoteName][-AIPaddress][-c][-n][-r][-R][-RR][-s][-S][interval]]-a(adapterstatus)Liststheremotemachine'snametablegivenitsname-A(Adapterstatus)Liststheremotemachine'snametablegivenitsIPaddress.-c(cache)ListsNBT'scacheofremote[machine]namesandtheirIPaddresses-n(names)ListslocalNetBIOSnames.-r(resolved)ListsnamesresolvedbybroadcastandviaWINS-R(Reload)Purgesandreloadstheremotecachenametable-S(Sessions)ListssessionstablewiththedestinationIPaddresses-s(sessions)ListssessionstableconvertingdestinationIPaddressestocomputerNETBIOSnames.-RR(ReleaseRefresh)SendsNameReleasepacketstoWINSandthen,startsRefreshRemoteNameRemotehostmachinename.IPaddressDotteddecimalrepresentationoftheIPervalRedisplaysselectedstatistics,pausingintervalsecondsbetweeneachdisplay.PressCtrl+Ctostopredisplayingstatistics.C:\DocumentsandSettings\ligong>nbtstat-CDisplaysprotocolstatisticsandcurrentTCP/IPconnectionsu(NetBIOSoverTCP/IP).NBTSTAT[[-aRemoteName][-AIPaddress][-c][-n][-r][-R][-RR][-s][-S][interval]]-a(adapterstatus)Liststheremotemachine'snametable-A(Adapterstatus)Liststheremotemachine'snametableIPaddress.-c(cache)ListsNBT'scacheofremote[machine]addresses-n(names)ListslocalNetBIOSnames.-r(resolved)Listsnamesresolvedbybroadcastand-R(Reload)Purgesandreloadstheremotecachen-S(Sessions)Listssessionstablewiththedestina-s(sessions)ListssessionstableconvertingdestiaddressestocomputerNETBIOSnames.-RR(ReleaseRefresh)SendsNameReleasepacketstoWINSaneshRemoteNameRemotehostmachinename.IPaddressDotteddecimalrepresentationoftheIPaddresintervalRedisplaysselectedstatistics,pausingintervbetweeneachdisplay.PressCtrl+Ctostopredstatistics.C:\DocumentsandSettings\ligong>nbtstat-n本地连接2:NodeIpAddress:[19]ScopeId:[]NetBIOSLocalNameTableNameTypeStatus---------------------------------------------H16<00>UNIQUERegisteredH16<20>UNIQUERegistered2HJF<00>GROUPRegistered2HJF<1E>GROUPRegisteredC:\DocumentsandSettings\ligong>nbtstat-s本地连接2:NodeIpAddress:[19]ScopeId:[]NoConnections5、net:C:\DocumentsandSettings\ligong>net此命令的语法是:NET[ACCOUNTS|COMPUTER|CONFIG|CONTINUE|FILE|GROUP|HELP|HELPMSG|LOCALGROUP|NAME|PAUSE|PRINT|SEND|SESSION|SHARE|START|STATISTICS|STOP|TIME|USE|USER|VIEW]C:\DocumentsandSettings\ligong>C:\DocumentsandSettings\ligong>net此命令的语法是:NET[ACCOUNTS|COMPUTER|CONFIG|CONTINUE|FILEHELPMSG|LOCALGROUP|NAME|PAUSE|PRINT|SHARE|START|STATISTICS|STOP|TIME|USEC:\DocumentsandSettings\ligong>netstat.exeActiveConnectionsProtoLocalAddressForeignAddressTCPH16:1455localhost:ftpTCPH16:20780:8000TCPH16:2085localhost:4809TCPH16:2086localhost:netbios-ssTCPH16:2088localhost:netbios-ssTCPH16:2090localhost:netbios-ssTCPH16:2091localhost:microsoft-C:\DocumentsandSettings\ligong>netstat-asIPv4StatisticsPacketsReceived=188648ReceivedHeaderErrors=0ReceivedAddressErrors=41385DatagramsForwarded=0UnknownProtocolsReceived=0ReceivedPacketsDiscarded=1636ReceivedPacketsDelivered=158463OutputRequests=11606RoutingDiscards=0DiscardedOutputPackets=0OutputPacketNoRoute=0ReassemblyRequired=0ReassemblySuccessful=0ReassemblyFailures=0DatagramsSuccessfullyFragmented=0DatagramsFailingFragmentation=0FragmentsCreated=0ICMPv4StatisticsReceivedSentMessages3637Errors00DestinationUnreachable34TimeExceeded00ParameterProblems00SourceQuenches00Redirects00Echos312EchoReplies231Timestamps00TimestampReplies00AddressMasks00AddressMaskReplies00TCPStatisticsforIPv4ActiveOpens=415PassiveOpens=57FailedConnectionAttempts=145ResetConnections=29CurrentConnections=3SegmentsReceived=1888SegmentsSent=2228SegmentsRetransmitted=276UDPStatisticsforIPv4DatagramsReceived=213179NoPorts=4718ReceiveErrors=95DatagramsSent=90466、Netstat.exeC:\DocumentsandSettings\ligong>netstat.exeActiveConnectionsProtoLocalAddressForeignAddressStateTCPH16:1455localhost:ftpCLOSE_WAITTCPH16:2166localhost:4809SYN_SENTTCPH16:21670:8000ESTABLISHED7、Ping.exeC:\DocumentsandSettings\ligong>ping.exeUsage:ping[-t][-a][-ncount][-lsize][-f][-iTTL][-vTOS][-rcount][-scount][[-jhost-list]|[-khost-list]][-wtimeout]target_nameOptions:-tPingthespecifiedhostuntilstopped.Toseestatisticsandcontinue-typeControl-BreakTostop-typeControl-C.-aResolveaddressestohostnames.-ncountNumberofechorequeststosend.-lsizeSendbuffersize.-fSetDon'tFragmentflaginpacket.-iTTLTimeToLive.-vTOSTypeOfService.-rcountRecordrouteforcounthops.-scountTimestampforcounthops.-jhost-listLoosesourceroutealonghost-list.-khost-listStrictsourceroutealonghost-list.-wtimeoutTimeoutinmillisecondstowaitforeachreply.8、Route.exeC:\DocumentsandSettings\ligong>route.exeManipulatesnetworkroutingtables.ROUTE[-f][-p][command[destination][MASKnetmask][gateway][METRICmetric][IFinterface]-fClearstheroutingtablesofallgatewayentries.Ifthisisusedinconjunctionwithoneofthecommands,thetablesareclearedpriortorunningthecommand.-pWhenusedwiththeADDcommand,makesaroutepersistentacrossbootsofthesystem.Bydefault,routesarenotpreservedwhenthesystemisrestarted.Ignoredforallothercommands,whichalwaysaffecttheappropriatepersistentroutes.ThisoptionisnotsupportedinWmandOneofthese:PRINTPrintsarouteADDAddsarouteDELETEDeletesarouteCHANGEModifiesanexistingroutedestinationSpecifiesthehost.MASKSpecifiesthatthenextparameteristhe'netmask'maskSpecifiesasubnetmaskvalueforthisrouteentry.Ifnotspecified,itdefaultsto55.gatewaySerfacetheinterfacenumberforthespecifiedroute.METRICspecifiesthemetric,ie.costforthedestination.AllsymbolicnamesusedfordestinationarelookedupinthenetworkdatabasefileNETWORKS.ThesymbolicnamesforgatewayarelookedupinthehostnamedatabasefileHOSTS.IfthecommandisPRINTorDELETE.Destinationorgatewaycanbeawildcard,(wildcardisspecifiedasastar'*'),orthegatewayargumentmaybeomitted.IfDestcontainsa*or?,itistreatedasashellpattern,andonlymatchingdestinationroutesareprinted.The'*'matchesanystring,and'?'matchesanyonechar.Examples:157.*.1,157.*,127.*,*224*.DiagnosticNotes:InvalidMASKgeneratesanerror,thatiswhen(DEST&MASK)!=DEST.Example>routeADDMASKIF1Therouteadditionfailed:Thespecifiedmaskparameterisinvalid.(Destination&Mask)!=Destination.Examples:>routePRINT>routeADDMASKMETRIC3IF2destination^^mask^gatewaymetric^^Interface^IfIFisnotgiven,ittriestofindthebestinterfaceforagivengateway.>routePRINT>routePRINT157*....Onlyprintsthosematching157*>routeCHANGEMASKMETRIC2IF2CHANGEisusedtomodifygatewayand/ormetriconly.>routePRINT>routeDELETE>routePRINTC:\DocumentsandSettings\ligong>9、Telnet.exe欢迎使用MicrosoftTelnetClientEscape字符是'CTRL+]'MicrosoftTelnet>displayEscape字符是'CTRL+]'将验证身份(NTLMAuthentication)关闭本地回显新行模式-return键发送

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论