版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验一 windows网络实用程序一、实验目的了解internet的服务资源(应用程序),已达到熟练掌握及运用应用程序命令来查找 tcp/ip网络故障,并解除。二、实验器材1 .internet的服务资源(应用程序)的背景材料。2.计算机网络。三、实验内容1 ipconfig该命令可以检查网络接口配置。如果用户系统不能到达远程主机,而同一系统的其他主 机可以到达,那么用该命令对这种故障进行判断是有必要的。当主机能到达远程主机但不能 到达本网主机时,则表示子网掩码设置有问题,可据此进行修改。ipconfig用來获取本机 ip地址等信息。(1)命令格式:ipconfig /? /all /rene
2、w adapter /release adapter(2)参数含义如果没有参数,那么ipconfig实用程序将向用户提供所有当前的tcp/ip配置值, 包括ip地址和子网掩码。该使用程序在运行dhcp的系统上特别有用,允许用户决定由 dhcp配置的值。/all产生完整显示。/renew adapter更新dhcp配置参数。该选项只在运行dhcp客户端服务的系统 上可用。要指定适配器名称,请键入使用不带参数的ipconfig命令显示的适配器名称。/release adapter发布当前的dhcp配置。该选项禁用本地系统上的tcp/ip,并只 在dhcp客户端上可用。要指定适配器名称,请键入使用不
3、带参数的ipconfig命令显示 的适配器名称。(3)实例1)帮助ipconfig/?usage:ipconfig /? | /all | /release adapter | /renew adapter| /flushdns | /registerdns | /showclassid adapter | /setclassid adapter |classidtosetadapter full name or pattern with and ? to 'match1,* matches any character, ? matches one characte匚options:
4、/?display this help message./all display full configuration information./release release the ip address for the specified adapte匚 /renew renew the ip address for the specified adapte匚 /flushdns purges the dns resolver cache./registerdns refreshes all dhcp leases and re-registers dns names/displaydns
5、 display the contents of the dns resolver cache, /showclassid displays all the dhcp class ids allowed for adapte r./setclassid modifies the dhcp class id.the default is to display only the ip address, subnet mask anddefault gateway for each adapter bound to tcp/ip.for release and renew, if no adapte
6、r name is specified, then the ip address leases for all adapters bound to tcp/ip will be released or renewed.for setclassid, if no class id is specified, then the classid is removed. examples:> ipconfigshow information.> ipconfig /all. show detailed information> ipconfig /renewrenew all ada
7、paters> ipconfig /renew el*renew adapters named el.> ipconfig /release *elink721 *release all matching adapters,eg. elink-21, myelelinki21 adapte匸2)测试本机ip配置信息ipconfig/allhost name: 主机名dns servers: 202.11744.2dns 服务器 ip 地址node type: broadcastnetbios scope id:ip routing enabled: nowins proxy ena
8、bled: nonetbios resolution uses dns : yes0 ethernet adapter :description: intel(r) pro pci adapterphysical address: 00-d0-b7-6c-63-33(适配器地址即 mac地址)dhcp enabled:yesip address: 2021753.49本机 ip 地址subnet mask: 子网掩码default gateway: 网关dhcp server: dhcp 服务器 ip 地址prima
9、ry wins server :secondary wins server .:lease obtained: 10 29 02 19:13:34lease expires: 10 29 02 22:13:343)其他参数的使用 ipconfig/releaseipconfig/renew _new ipconfig/renew el*其结果都一样:windows 98 ip configurationcommand line options:/all/batch file /renew_all /release_all /renew n /release ndisplay detailed
10、informationwrite to file or ./w1n1pcfg.0ut renewall adaptersrelease all adapters.renew adapter n.release adapter n2 pingping是测试网络联接状况以及信息包发送和接收状况非常有用的工具,是网络测试最 常用的命令。ping向目标主机(地址)发送一个冋送请求数据包,要求目标主机收到请求后 给予答复,从而判断网络的响应时间和本机是否与目标主机(地址)联通。如果执行ping不 成功,则可以预测故障出现在以下儿个方面:网线故障,网络适配器配置不正确,ip地址不 正确。如果执行ping成
11、功而网络仍无法使用,那么问题很可能出在网络系统的软件配置方 面,ping成功只能保证本机与目标主机问存在一条连通的物理路径。 该命令只有在安装了 tcp/ip协议后才可用。(1)命令格式:ping -t -a -n count -i size -f -i ttl -v tos -r count -s co unt -j computer-list | -k computer-list -w timeout destination-list(2)参数含义:-t不停地ping目标主机直至屮断;-a-n count-i size-f以ip地址格式来显示目标主机的网络地址,即将地址解析为计算机名; 指
12、定要ping多少次,具体次数由count来指定;指定发送到目标主机的数据包的大小;在数据包中发送不要分段标志数据包就不会被路由上的网关分段;-i ttl-v tos将生存时间(time to live)字段设置为ttl指定的值。 将服务类型(time of service)字段设置为tos指定的值。(3)实例帮助:ping/?ca c awindowslsyste m3 2lc md .exec:xdocunents and settingszhenping>ping/?usage: ping -t 一a -n count j -1 size 一f -i ttlj -u tos j -r
13、 count 一s count j 一j host-list ! -k host-list 一w tineout j target_naneoptions:-t_a-n count-1 size-f-i ttl-u tos-r count-s countj host-list 一k host-list -w timeoutping the specified host until stoppedto see statistics and continue 一 type contro1-break; to stop 一 type control-c.resolue addresses to ho
14、stnames.number of echo requests to send.send buffer size.set don* t fragment: £ lag in packet time to live.type of service.record route for count hops.timestamp for count hops.loose source route along host-list.strict source route along host-listtineout in milliseconds to v/ait for each reply.c
15、:docunents andsettingszhenping> ping 2021753.49pinging 9 with 32 bytes of data:reply from 9: bytes=32 time<10ms ttl=128reply from 20217.153.49: bytes=32 time< 10ms ttl= 128reply from 9: bytes=32 time<10ms ttl=128reply from 9: bytes=32 t
16、ime<10ms ttl= 128ping statistics for 9:packets: sent = 4, received = 4, lost = 0 (0% loss),approximate round trip times in milli-seconds:minimum = 0ms, maximum = 0ms, average = 0ms ping 8pinging 202.11753.48 with 32 bytes of data:reply from & bytes=32 ti
17、me=lms ttl=128reply from & bytes=32 time<10ms ttl=128reply from 20217.153.48: bytes=32 time< 10ms ttl= 128reply from 8: bytes=32 time<10ms ttl=128 ping statistics for 8:packets: sent = 4, received = 4, lost = 0 (0% loss),approximate round trip time
18、s in milli-seconds:minimum = 0ms, maximum = 1ms, average = 0m ping pinging 20217.153.1 with 32 bytes of data:reply from : bytes=32 time< 10ms ttl=255 reply from : bytes=32 time< 10ms ttl=255 reply from : bytes=32 time<10ms ttl=255 reply fr
19、om : bytes=32 time< 10ms ttl=255 ping statistics for :packets: sent = 4, received = 4, lost = 0 (0% loss),approximate round trip times in milli-seconds:minimum = 0ms, maximum = 0ms, average = 0ms ping 3pinging 3 with 32 bytes of data:reply from
20、3: bytes=32 time=lms ttl=254reply from 2021745.73: bytes=32 time<10ms ttl=254reply from 2021745.73: bytes二32 time<10ms ttl=254reply from 3: bytes=32 time<10ms ttl=254ping statistics for 3:packets: sent = 4, received = 4, lost = 0 (0% loss),approximate
21、round trip times in milli-seconds:minimum = 0ms, maximum =1 ms, average = 0msc: docunents and sett ingshenping>ping pinging wv/202.108.882 with32 bytes of data:reply from leply from fromreply from202.108.882:2:2:2:bytes=32 bytes=32 bytes=32 bytes=32time =50ms tine
22、=5ins tine=50ns tine=50msttl=240ttl=240ttl=240ttl=240ping statistics for 2:packets: sent = 4. receiued = 4, lost = 0 <0z loss, fipproxinate round trip times in milli-seconds:mininun = 50ms, maxinun = 51nsaverage = 50nsc:docunentsandsett ingszhenping> ping ping ping n xct c awindowsb
23、yste m3 2lc md .exec:docunents and settingszhenping>ping pinging 17437.1?5.228 with 32 bytes of data:reply from 1743?1?5228:reply from 174.37.1?5.228: request timed out.reply from 28 :bytes=32 bytes=32biftes=32tine=260ns tine=255nstime=258msttl=46ttl=46ttl=46ping statistics for 174.37
24、125228:packets: sent = 4. received = 3. lost = 1 <25乂 loss,approximate round trip times in nilli-seconds:mininun = 255ms. maximum = 260ns, average = 257ns-ic:docunents and settingszhenping>(4) ping常见岀错信息:a. unknown host (不知名主机)该远程主机的名称不能被域名服务器转换成ip地址。故障原因可能是域名服务器出故障, 或者名称错误,或者通信线路有故障。bnetwork
25、unreachable (网络不可到达)本地系统没有到达远程系统的路由。可用netstat -r n (参见后面)检查路由表來确定 路由配置情况。c. no answer (无响应)远程系统没有响应。说明本地系统有一条达到远程系统的路由,但接受不到它发给远程主 机的任何分组报文。故障原因可能是:远程主机没有工作本地或者远程主机网络配置不正确; 本地或远程的路由器没有工作;通信线路有故障;远程主机存在路由选择问题。d request time out (超时)与远程主机的连接超时,数据包全部丢失。故障原因可能是到路由器的连接问题或路由不 能通过,也可能是远程主机已经死机。3. tracerttr
26、acert命令用來显示数据包到达目标主机所经过的路径,并显示到达每个节点的时 间。该诊断实用程序将包含不同生存时间(ttl)值的internet控制消息协议(icmp) 回显数据包发送到目标以决定到达目标采用的路由要在转发数据包上的ttl z前至少递减1必需路径上的每个路由器所以ttl是有效的跃点计数数据包上的ttl到达0时路 由器应该将icmp已超吋的消息发送回源系统tracert先发送ttl为1的回显数据包, 并在随后的每次发送过程将ttl递增1直到目标响应或ttl达到最大值从而确定路由 路由通过检查中级路由器发送回的icmp己超时的消息来确定路rh不过有些路rh器悄悄地 下传包含过期tt
27、l值的数据包而tracert看不到。命令功能同ping类似,但它所获得的 信息要比ping命令详细得多,它把数据包所走的全部路径、节点的ip以及花费的时间都 显示出来。该命令比较适用于大型网络。(1)命令格式tracert -d-h maximumhops-j host_list -w timeout target_name(2)参数含义-d不解析目标主机的名字;-h maximum_hops指定搜索到目标地址的最大跳跃数;-j hostjist按照主机列表中的地址释放源路由;-w timeout指定超吋吋间间隔,程序默认的时间单位是毫秒。(3)实例例如大家想要了解自己的计算机与目标主机z间详
28、细的传输路径信 息,可以ms-dos 方式输入 tracert 。如果我们在tracert命令后面加上一些参数,还可以检测到其他更详细的信息,例如 使用参数-d,可以指定程序在跟踪主机的路径信息时,同时也解析目标主机的域名。c awindo wsbyste m3 2lc md .exe-|口|刈louer a maximum of 30 bops:1<1ms<1ms<1ms2?ns22ns5ms180.204.121.boardl3<1ms<1ns<1ms120.36.5941ns1ms1ms220.160.9
29、524151ms1ms1ms06611ns11ms11ms33743ns42ns42ms7849ns48ns49ms8950ms58ns59ms41043ms43ms43ms220.181 *941147ns47ms47ms8timcecomplete.bc:docunents and settingszhenping>tracert www.baidu.conitracing route to wwv/.a.sbif en .com 220.181
30、.6.18.fz.fj.dynamic.163datan xovera naxinumof 30 hops:1<1ns<1ms<1ms250ms9ns11ms121.204.8013<1ns<1ms<1ms741ns<1ms<1ms220.160.9524151ns1ms1ms06611ms11ms11ms33743ns42ns42ms7849ms49ns49ms8953ms50ns51ms220.181.7
31、0.741043ns43ms43ms220.18117.941147ms47ms47ns8c:docunents and settingszhenping>tracert -dftracing route to wv/w.a.shif en .con 8tracecomplete bdct c awindowsbyste m3 2lc md .exe4. netstatnetstat命令可以帮助网络管理员了解网络的整体使用情况。它可以显示当前正在活 动的网络连接的详细信息,例如显示网络连接、路由表和网络接口信息,可以统计目前总共 有哪些网络连接
32、正在运行。利用命令参数,命令可以显示所有协议的使用状态,这些协议包括tcp协议、udp 协议以及ip协议等,另外还可以选择特定的协议并查看其具体信息,还能显示所有主机的 端口号以及当前主机的详细路由信息。(1)命令格式netstat -r -s -n -a(2)参数含义-r显示本机路由表的内容;-s显示每个协议的使用状态(包括tcp协议、udp协议、ip协议);-n以数字表格形式显示地址和端口;-3显示所有主机的端口号。(3)实例查看网络状态,如图6所示,显示以太网的状态。若接受错误率和发送错误率接近0 或者全为0,网络的接口无问题。但当这两个字段有100个以上的出错分组时就可以认为 是高出错
33、率了。发送错误率高表示本地网络饱和或在主机与网络z间有不良的物理连接;接 受错误率高表示整体网络饱和、本地主机过载或者物理连接有问题,可以用ping命令统讣 误码率,进一步确定故障的程度。5. routeroute printroute命令用于控制网络路由表,只在安装了 tcp/ip协议后才可以使用。可获知本机的网关、子网类型、广播地址、换回测试地址等。当然也可按需要来增加或 删除路由信息。(1)帮助:route/?manipulates network routing tables. route 卜f -p command destination-pcommanddestination ma
34、sk netmaskmask netmaskj gateway metric metric if interface clears the routing tables of all gateway entries if this is used in conjunction with one of the commands, the tables are cleared prior to running the commandwhen used with the add command, makes a route persistent across boots of the system.
35、 by default, routes are not preserved when the system is restarted. ignored for all other commands, which always affect the appropriate persistent routes. this option is not supported in windows 95.one of these:printadddeletechangespecifies the host.prints a routeadds a routedeletes a routemodifies
36、an existing routespecifies that the next parameter is the 'netmask1 valuespecifies a subnet mask value for this route entry.if not specified, it defaults to 55.gateway interfacemetricspecifies gateway.the interface number for the specified route specifies the metric, ie. cost for th
37、e destination.all symbolic names used for destination are looked up in the network database file networks. the symbolic names for gateway are looked up in the host name database file hosts.if the command is print or delete. destination or gateway can be a wildcard, (wildcard is specified as a star o
38、r the gateway argument may be omittedif dest contains a * or ?, it is treated as a shell pattern, and only matching destination routes are printed. the matches any string, and '?' matches any one char. examples: 157.*.1, 157.*, 127.*, *224*. diagnostic notes:invalid mask generates an error,
39、that is when (dest & mask) != dest. example> route add mask 157.55.80if 1the route addition failed: the specified mask parameter is invalid (destination & mask) != destination.examples:> route print> route add mask metric 3 if 2dest
40、i nationamaskagateway metrica ainterfaceaif if is not given, it tries to find the best interface for a given gateway.> route print> route print 157*. only prints those matching 157*> route delete > route printactive routes:network addresso.o.o.o(2) route printnetmask ga
41、teway addressinterface metrico.o.o.o911955555599955559202.117.15
42、3.4999911116. arp显示和修改地址解析协议(arp)所使用的到以太网的ip或令牌环物理地址翻译表该 命令只有在安装了 tcp/ip协议之后才可用。(1)命令格式arp -a inet_addr -n if_addrarp -d inet_addr if_addrarp -s inet_addr ether_addr if_addr(2)参数含义-a通过询问tcp/ip显示当前arp项如果指定了 inet_addr则只显示指定计算机的 ip和物理地址。-9与-a相同inet_addr以加
43、点的十进制标记指定ip地址-n显示由if_addr指定的 网络界面arp项if_addr指定需要修改其地址转换表接口的ip地址如果有的话如果不 存在将使用第一个可适用的接口。-d删除由inet_addr指定的项。在arp缓存中添加项将ip地址inet_addr和物理地址ether_addr关联物理地 址由以连字符分隔的6个十六进制字节给定使用带点的十进制标记指定ip地址项是永 久性的即在超时到期后项自动从缓存删除。ether_addr指定物理地址。7 finger在运行finger服务的指定系统上显示有关用户的信息根据远程系统输出不同的变量,该 命令只有在安装了 tcp/ip协议之后才可用。(
44、1) 命令格式finger -i usercomputer.参数以长列表格式显示信息。(2) 参数含义user指定要获得相关信息的用户省略用户参数以显示指定计算机上所有用户的信息; computer指定用户所在的计算机名。8. ftp将文件传送到正在运行ftp服务的远程计算机或从正在运行ftp服务的远程计算 机传送文件(有吋称作daemon )。ftp可以交互使用。该命令只有在安装了 tcp/ip 协议之后才可用。ftp是-种服务一旦启动将创建在其屮可以使用ftp命令的子环境通过 键入quit子命令可以从子环境返回到 windows 2000命令提示符当ftp子环境运行 时它由ftp命令提示符
45、代表。(1) 命令格式ftp -v -n -i -d -g -szfilename -a -wzwindowsize compute r(2) 参数含义-v禁止显示远程服务器响应;-n禁止自动登录到初始连接;-i多个文件传送时关闭交互提示;-d启用调试显示在客户端和服务器z间传递的所有ftp命令;-g禁用文件名组它允许在本地文件和路径名中使用通配符字符*和?;-s: filename指定包含ftp命令的文本文件当ftp启动后这些命令将自动运行该参 数中不允许有空格使用该开关而不是重定向(>);-a在捆绑数据连接时使用任何本地接口;-wzwindowsize替代默认大小为4096的传送缓冲
46、区;computer指定要连接到远程计算机的计算机名或ip地址如果指定计算机必须是行 的最后一个参数。9. nbtstat该诊断命令使用nbt tcp/ip上的netbios显示协议统计和当前tcp/ip连接, 该命令只有在安装了 tcp/ip协议之后才可用。(1) 命令格式nbtstat -a remotename -a ip address -c -n -r -r -s -s interval(2) 参数含义-a remotename使用远程计算机的名称列出其名称表-a ip address 使用远程计算机的ip地址并列岀名称表给定每个名称的ip地 址并列出netbios名称缓存的内容-n
47、他节点类型注册-r清除netbios名称缓存中的所有名称后重新装入lmhosts文件-r列出windows网络名称解析的名称解析统计在配置使用wins的windows 2000计算机上此选项返回要通过广播或wins來解析和注册的名称数-s显示客户端和服务器会话只通过ip地址列出远程计算机-s显示客户端和服务器会话尝试将远程计算机ip地址转换成使用主机文件的名称 interval重新显示选中的统计在每个显示之i'可暂停interval秒按ctrl+c停止重 新显示统计信息如果省略该参数nbtstat打印一次当前的配置信息。(3)实例1) 帮助:netstat /?displays pro
48、tocol statistics and current tcp/ip network connections netstat a卜c卜n卜s卜p proto -r interval-adisplays all connections and listening ports.edisplays ethernet statistics. this may be combined with the -soption.-ndisplays addresses and port numbers in numerical form.p protoshows connections for the pro
49、tocol specified by proto; protomay be tcp or udp. if used with the -s option to display per-protocol statistics, proto may be tcp, udp, or ip.-rdisplays the routing table.-sdisplays per-protocol statistics. by default, statistics areshown for tcp, udp and ip; the -p option may be used to specify a s
50、ubset of the defaultintervalredisplays selected statistics, pausing interval secondsbetween each display. press ctrl+c to stop redisplaying statistics. if omitted, netstat will print the current configuration information once10. telnet远程登录系统2) netstatactive connectionsprotolocal addressforeign addressstatetcpxs96:ll96cl l:nbsessiontime. waittcpxs96:ll97cl knbsessiontime_waittcpxs96:ll98cl knbsessiontime.waittc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年黑龙江农业工程职业学院单招职业技能考试备考试题含详细答案解析
- 2026年武汉理工大学附属小学教师招聘6人参考考试试题及答案解析
- 2026年黑龙江三江美术职业学院高职单招职业适应性测试备考题库及答案详细解析
- 2026年天津工艺美术职业学院单招综合素质考试参考题库含详细答案解析
- 2026年乌兰察布职业学院高职单招职业适应性测试模拟试题及答案详细解析
- 2026年江西建设职业技术学院单招综合素质考试参考题库含详细答案解析
- 2026年广东水利电力职业技术学院高职单招职业适应性测试备考题库及答案详细解析
- 2023河北石家庄深泽县人力资源和社会保障局“三支一扶”志愿者中专项招聘事业单位工作人员1人参考考试试题及答案解析
- 2026年四川财经职业学院单招综合素质考试参考题库含详细答案解析
- 2026年河北外国语学院单招职业技能考试模拟试题含详细答案解析
- (2025)事业单位考试(面试)试题与答案
- CNAS-GC25-2023 服务认证机构认证业务范围及能力管理实施指南
- 入伍智力测试题及答案
- 竣工验收方案模板
- 企业安全生产内业资料全套范本
- 安全生产标准化与安全文化建设的关系
- DL-T5054-2016火力发电厂汽水管道设计规范
- 耳部刮痧治疗
- 神经外科介入神经放射治疗技术操作规范2023版
- 多模态数据的联合增强技术
- 滨海事业单位招聘2023年考试真题及答案解析1
评论
0/150
提交评论