计算机网络实验二 在PC机上熟悉常用网络命令实验报告

合集下载

实验报告2 常用网络命令的使用

实验报告2 常用网络命令的使用

计算机网络实验报告班级信工(2)班日期 2016-5-12学号 20130702047 姓名李格实验名称常用网络命令的使用一、实验目的1. 掌握几种常用的网络命令,通过使用这些命令能检测常见网络故障。

2. 理解各命令的含义,并能解释其显示内容的意义。

二、实验步骤(一)ping 命令的使用1、单击开始按钮,输入cmd 并按回车键,进入windows DOS环境。

2、输入ping/? 回车,了解ping命令的基本用法。

结果如下:最常用的ping命令是在ping后面直接跟域名或IP地址。

测试内网或外网的联通情况。

3、依次输入以下命令并查看分析结果。

(1)输入ping 并回车查看分析结果。

结果如下:分析:(2)输入ping 218.197.176.10并回车查看分析结果。

结果如下:分析:(3)输入ping 并回车查看分析结果。

结果如下:分析:(3)输入pi ng 121.14.1.189 并回车查看分析结果。

结果如下:分析:4、使用不同的参数测试ping命令。

结果如下:分析:(二)ipconfig 命令的使用1、单击开始按钮,输入cmd 并按回车键,进入windows DOS环境。

2、输入ipconfig/? 回车,了解ipconfig 命令的基本用法。

结果如下:3、依次输入以下命令并查看分析结果。

(1)输入ipconfig 并回车查看并分析结果。

结果如下:分析:(2)输入ipconfig/all 并回车查看分析结果。

结果:分析:ipconfig/all显示详细信息(3)输入ipconfig/displaydns 并回车查看分析结果。

结果:分析:ipconfig/displaydns 显示DNS解析程序缓存的内容。

由于显示内容太多所以没有全部截图展示出来。

(三)tracert 命令的使用1、单击开始按钮,输入cmd 并按回车键,进入windows DOS环境。

2、输入tracert/? 回车,了解tracert命令的基本用法。

实验二网络常用测试命令实验报告

实验二网络常用测试命令实验报告

计算机网络实验报告实验名称:《常用网络测试命令》姓名:学号:专业:信息管理与信息系统专业班级:指导教师:实验成绩:批阅教师签字:一、实验目的(1)熟悉基本的网络测试命令操作:学会ping、tracert、route、ipconfig、arp、netstat、net 等网络测试命令的功能与基本用法。

(2)为后续其他实验奠定基础。

二、实验内容与实验步骤1. 使用ping命令测试网络的连通性•ping 127.0.0.1•ping 本机IP•ping 局域网内其他IP•ping 网关IP•ping 远程IP•ping •连续ping6个包•发出去的每个包数据部分包含1000个字节2. 使用ipconfig命令查看计算机的TCP/IP配置在命令提示符状态分别输入ipconfig 、ipconfig/all 命令格式,查看并记录当前计算机的基本TCP/IP参数设置,观察两次命令所有显示的内容有什么不同3. 使用arp命令显示和修改本地计算机上的ARP高速缓存(1)在实验机上输入arp –a(或arp -g)命令显示当前计算机的ARP缓存。

(2)执行arp –d命令,再次用arp –a命令,观察显示结果。

(3)查找隔壁主机的ip地址,在实验机上输入ping 隔壁主机IP地址,再输入arp –a命令,观察显示结果。

(4)用步骤2清空ARP缓存,然后输入arp –s 隔壁主机IP 地址以及错误的MAC 地址。

用arp –a 命令显示结果。

(5)重复步骤3,再次观察显示结果。

4. 使用tracert命令跟踪路由在实验机上输入tracert 命令,跟踪数据报从本地机到达 所经过的路径。

5. 使用net命令进行网络配置•将计算机名为T090的主机中的share目录以及光驱等设置成共享,然后在实验机上输入net view\\ T090 查看名为**计算机的共享资源列表。

•使用net user 命令:(1)新建一个名为“alice”,密码为“123456”的用户(2)查看名为“alice”用户的信息(3)新建一个登陆时间受限制的用户,比如,新建一个名为“edward”,密码为111111,登陆时间权限为每周一到周五早上8点到晚上6点。

计算机网络实验2报告

计算机网络实验2报告

计算机网络实验2报告一、实验目的本次计算机网络实验 2 的主要目的是深入了解和掌握计算机网络中的相关技术和概念,通过实际操作和实验分析,提高对计算机网络的理解和应用能力。

二、实验环境本次实验在学校的计算机实验室进行,使用的操作系统为 Windows 10,实验中所用到的软件和工具包括 Wireshark 网络协议分析工具、Packet Tracer 网络模拟软件等。

三、实验内容与步骤(一)网络拓扑结构的搭建使用 Packet Tracer 软件搭建了一个简单的星型网络拓扑结构,包括一台交换机、四台计算机和一台服务器。

为每台设备配置了相应的 IP 地址、子网掩码和网关等网络参数。

(二)网络协议分析1、启动 Wireshark 工具,选择对应的网络接口进行抓包。

2、在网络中进行文件传输、网页浏览等操作,观察 Wireshark 捕获到的数据包。

3、对捕获到的数据包进行分析,包括数据包的源地址、目的地址、协议类型、数据长度等信息。

(三)网络性能测试1、使用 Ping 命令测试网络中不同设备之间的连通性和延迟。

2、通过发送大量数据包,测试网络的带宽和吞吐量。

四、实验结果与分析(一)网络拓扑结构搭建结果成功搭建了星型网络拓扑结构,各设备之间能够正常通信,IP 地址配置正确,网络连接稳定。

(二)网络协议分析结果1、在文件传输过程中,观察到使用的主要协议为 TCP 协议,数据包有序且可靠地传输。

2、网页浏览时,发现涉及到 HTTP 协议的请求和响应,包括获取网页内容、图片等资源。

(三)网络性能测试结果1、 Ping 命令测试结果显示,网络中设备之间的延迟较低,均在可接受范围内,表明网络连通性良好。

2、带宽和吞吐量测试结果表明,网络能够满足一般的数据传输需求,但在大量数据并发传输时,可能会出现一定的拥塞现象。

五、实验中遇到的问题及解决方法(一)IP 地址配置错误在配置设备的 IP 地址时,出现了部分设备 IP 地址冲突的问题,导致网络通信异常。

计算机网络实验报告 常用网络命令(含答案)

计算机网络实验报告 常用网络命令(含答案)
Traceroute提取发ICMP TTL到期消息设备的IP地址并作域名解析。每次,Traceroute都打印出一系列数据,包括所经过的路由设备的域名及IP地址,三个包每次来回所花时间。
Traceroute有一个固定的时间等待响应(ICMP TTL到期消息)。如果这个时间过了,它将打印出一系列的*号表明:在这个路径上,这个设备不能在给定的时间内发出ICMP TTL到期消息的响应。然后,Traceroute给TTL记数器加1,继续进行。
Traceroute在送出UDP datagrams到目的地时,它所选择送达的port number是),所以当此UDP datagram到达目的地后该主机会送回一个「ICMP port unreachable」的消息,而当traceroute收到这个消息时,便知道目的地已经到达了。所以traceroute在Server端也是没有所谓的Daemon程式。
③Tracert命令用来显示数据包到达目标主机所经过的路径,并显示到达每个节点的时间。命令功能同Ping类似,但它所获得的信息要比Ping命令详细得多,它把数据包所走的全部路径、节点的IP以及花费的时间都显示出来。该命令比较适用于大型网络。Tracert命令用IP生存时间(TTL)字段和ICMP错误消息来确定从一个主机到网络上其他主机的路由。
《计算机网络》实验报告
实验名称
常用网络命令
班级
姓名
学号
成绩
实验任务:
1.掌握集成于Windows网络操作系统的常见网络调试命令的功能。
1.请运行测试并确定ping、ipconfig、tracert、arp、netstat命令的功能。
2.请运行测试并查阅net share、nslookup的功能;查阅net send的用法。

计算机网络协议配置与常用网络命令实验报告

计算机网络协议配置与常用网络命令实验报告

计算机网络协议配置与常用网络命令实验报告篇一:计算机网络基础网络命令实验报告计算机网络实验报告学院:经济学院学号:姓名:实验名称: WinXP 环境下网络设置及常用网络命令的使用一、实验目的1、掌握WinXP环境下网络设置的方法;2、 3、掌握无线路由器的配置方法。

二、实验环境WinXP、命令提示符(基于DOS环境)三、实验步骤及结果1详细的TCP/IP协议设置。

以太网适配器本地连接:连接特定的 DNS 后缀 . . . . . . . :描述. . . . . . . . . . . . . . . : Broadcom NetLink(TM) Gigabit Ethernet物理地址. . . . . . . . . . . . . : 60-EB-69-B4-78-9D DHCP 已启用 . . . . . . . . . . . : 是自动配置已启用. . . . . . . . . . : 是本地链接IPv6 地址. . . . . . . . : fe80::2d16:143:1688:84b4%12(首选)IPv4 地址 . . . . . . . . . . . . : (首选)子网掩码 . . . . . . . . . . . . :获得租约的时间 . . . . . . . . . : XX年5月11日 19:19:09租约过期的时间 . . . . . . . . . : XX年5月12日 0:19:(来自: 小龙文档网:计算机网络协议配置与常用网络命令实验报告)09默认网关. . . . . . . . . . . . . :DHCP 服务器 . . . . . . . . . . . :DHCPv6 IAID . . . . . . . . . . . : 258009961DHCPv6 客户端DUID . . . . . . . : 00-01-00-01-1D-93-EB-F8-60-EB-69-B4-78-9DDNS 服务器 . . . . . . . . . . . :1TCPIP 上的 NetBIOS . . . . . . . : 已启用由上图可以查看、理解本机的本地连接配置、详细的TCP/IP协议设置。

计算机网络技术实验报告2常用网络命令的使用

计算机网络技术实验报告2常用网络命令的使用

常用网络命令的使用一、实验目的:(1)掌握几种常用的网络命令,通过使用这些命令能检测常见网络故障;(2)理解各命令的含义,并能解释其显示内容的意义;(3)按实验内容要求执行各命令,认真记录实验结果;(4)对实验结果能解释其含义。

二、实验原理:Windows操作系统本身带有多种网络命令,利用这些网络命令可以对网络进行简单的操作。

需要注意是这些命令均是在DOS命令行下执行。

本次实验学习5个最常用的网络命令。

(1)使用ping命令可以检测网络故联通障。

(2)使用TCP/IP协议配置工具ipconfig。

(3)使用地址解析命令arp显示和修改“地址解析协议 (ARP)”缓存中的项目。

(4)使用tracert命令显示和修改 IP 地址与物理地址之间的转换表。

(5)使用netstat命令可查看当前网络连接的详细信息。

三、实验设备:安装有Windows 98/2000/XP操作系统的计算机。

四、背景知识:1.通过ping命令检测网络故障(1)命令格式:ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS][-r count] [-s count] [[-j host-list] | [-k host-list]] [-w timeout] target_name(2)参数的含义如下表所示。

2.ipconfig命令ipconfig是Windows操作系统中用于查看主机的IP配置命令,其显示信息中还包括主机网卡的MAC 地址信息。

该命令还可释放动态获得的IP地址并启动新一次的动态IP分配请求。

(1)命令格式:ipconfig [/all|/release[adapter]|/renew[adapter]|/flushdns|/registerdns|/displaydns|/showclassid adapter| /setclassid adapter [classid] ](其中的adapter代表的是连接名。

熟悉常用的网络命令实验报告

熟悉常用的网络命令实验报告

实验一熟悉常用的网络命令实验报告1.实验目的:学会使用常用ping ,ipconfig, nslookup, arp ,tracert等常用网络测试命令检测网络连通、了解网络的配置状态,跟踪路由等相关网络问题。

2实验环境:(1)运行windows 2000/2003/xp操作系统的PC一台。

(2)每台PC机具有一块网卡,通过双绞线与局域网网相连。

(3)局域网能连接Internet。

3.实验步骤:参见实验指导手册内容。

4.实验分析,回答下列问题(1)查看本机TCP/IP协议配置,看你的计算机是通过自动获取IP还是通过手动方式设置IP地址的?写出判断的理由。

我的计算机是通过自动获取IP(2)如果是通过手动方式获取IP地址,可以直接读出IP地址,子网掩码,默认网关,首选DNS服务器地址。

填写下表。

如果是采用动态获取IP地址,如何获取完整的TCP/IP配置信息,请写出解决步骤。

并填写下表。

a.在DOS下或直接在MS-DOS方式下输入ipconfig/all并回车打开它,ipconfig 命令主要用于显示当前的TCP/IP配置的设置值。

b./all:显示所有适配器的完整TCP/IP信息IP地址192.168.0.16子网掩码255.255.255.0默认网关192.168.0.1首选DNS服务器地址202.203.208.33(3)在获取本机IP地址之后,在MS-DOS方式下运行下列Ping命令,填写实验运行结果(附截图)。

(a)ping本机IP地址192.168.0.16 ping的统计信息:数据包:已发送=4,已接收=4,丢失=0,往返行程的估计时间(以毫秒为单位):最短=0ms,最长=0ms,平均=0ms(b)ping 本机IP地址–t192.168.0.16 ping的统计信息:数据包:已发送=15,已接收=15,丢失=0,往返行程的估计时间(以毫秒为单位):最短=0ms,最长=0ms,平均=0ms(c)ping 默认网关–n 6192.168.0.1 ping的统计信息:数据包:已发送=6,已接收=0,丢失=6(100%丢失)(d)ping 本局域网内任意一台主机192.168.0.167 ping的统计信息:数据包:已发送=4,已接收=3,丢失=1,往返行程的估计时间(以毫秒为单位):最短=0ms,最长=0ms,平均=0ms(4)用nslookup命令从域名地址当中解析出IP地址,从IP地址当中解析出域名地址。

计算机网络实验报告--常用网络命令

计算机网络实验报告--常用网络命令
(3)ping本地主机的IP地址,判断其连通性
通过该结果可以判断该主机可以上网,具有连通性。
(4)两个网络地址之间ping测试:和进行ping测试
(5)域名服务器的判断以正常工作的。
若没有则发送一个ARP请求广播,只有IP地址与目的主机的IP地址一致的主机才理会这个请求,并将该地址写入自己的缓存中,同样为了减轻网络的通信量,同时目的主机将发送主机的地址以及物理地址写入自己的ARP缓存中。
(7)对等网:每台计算机的地位平等,都允许使用其他计算机内部的资源,这种网就称之为对等局域网,简称对等网。对等网,又称点对点网络,指不使用专门的服务器,各终端机既是服务提供者,又是网络服务申请者。组建对等网的重要元件之一就是网卡,各联网机均需配置一块网卡。
附件1
中北大学经济与管理学院Байду номын сангаас
实验报告
课程名称计算机网络学号1409044119学生姓名辅导教师段庆峰
系别
信息管理与信息系统
实验室名称
实验时间
1.实验名称
常用网络命令实验
2.实验目的
(1)掌握一些常见命令的使用
(2)命令的含义和相关的操作
3.实验内容
(1)ping测试命令:任选两个网络地址A和B进行ping测试,判断该地址主机是否连通可达,并对返回值进行分析,包括ttl,time等,并初步判断该网络地址主机是什么操作系统
(8)Windows网上邻居互访的基本条件:
1双方计算机打开,且设置了网络共享资源
2双方的计算机添加了"Microsoft网络文件和打印共享"服务
3双方都正确设置了网内IP地址,且必须在一个网段中
4双方的计算机中都关闭了防火墙,或者防火墙策略中没有阻止网上邻居访问的策略

计算机网络上机实验报告

计算机网络上机实验报告

计算机网络上机实验报告计算机网络实验报告实验二网络配置与常用命令一、实验目的1、掌握PC网络协议的安装和卸载,以及IP 地址、子网掩码、网关等的配置2、掌握常见的网络命令的使用二、实验准备1、Ping测试与远程计算机的连接。

用法:ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS][-r count] [-s count] [[-j host-list] | [-k host-list]][-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name选项:-t Ping 指定的主机,直到停止。

若要查看统计信息并继续操作请键入Control-Break;若要停止请键入Control-C。

-a 将地址解析成主机名。

-n count 要发送的回显请求数。

-l size 发送缓冲区大小。

-f 在数据包中设置“不分段”标志(仅适用于IPv4)。

-i TTL生存时间。

-v TOS服务类型(仅适用于IPv4。

该设置已不赞成使用)。

-r count 记录计数跃点的路由(仅适用于IPv4)。

-s count 计数跃点的时间戳(仅适用于IPv4)。

-j host-list与主机列表一起的松散源路由(仅适用于IPv4)。

-k host-list与主机列表一起的严格源路由(仅适用于IPv4)。

-w timeout 等待每次回复的超时时间(毫秒)。

-R 同样使用路由标头测试反向路由(仅适用于IPv6)。

-S srcaddr 要使用的源地址。

-4 强制使用IPv4。

-6 强制使用IPv6。

2、Ipconfig显示所有当前的网络配置值。

用法:ipconfig [/allcompartments] [/? | /all |/renew [adapter] | /release [adapter] | /renew6 [adapter] | /release6 [adapter] | /flushdns | /displaydns | /registerdns | /showclassid adapter |/setclassid adapter [classid] |/showclassid6 adapter |/setclassid6 adapter [classid] ]其中adapter 连接名称(允许使用通配符* 和?例)选项:/all 显示完整配置信息。

常用的网络测试命令实验报告

常用的网络测试命令实验报告

常用的网络测试命令实验报告一、实验目的随着信息技术的不断发展,网络已经成为人们生活和工作中不可或缺的一部分。

为了确保网络的正常运行和性能优化,网络测试命令成为了网络管理员和技术人员必备的工具。

本次实验的目的是通过实际操作和使用常用的网络测试命令,深入了解网络的性能、连接状态和故障排查方法,提高对网络的管理和维护能力。

二、实验环境本次实验在Windows 10 操作系统下进行,使用命令提示符(CMD)来执行网络测试命令。

实验所用的网络为本地局域网,通过以太网连接到路由器,再接入互联网。

三、常用网络测试命令介绍1、`ping`命令`ping`命令是用于测试网络连接的最常用命令之一。

它通过向目标主机发送 ICMP(Internet Control Message Protocol)回显请求数据包,并等待目标主机返回回显应答数据包,来确定网络的连通性和往返时间(RTT,RoundTrip Time)。

例如,要测试与百度网站的连接,可以在命令提示符中输入:`ping `2、`tracert`命令`Tracert`(跟踪路由)命令用于确定数据包从源主机到目标主机所经过的路径,并显示每个跃点的延迟和 IP 地址。

比如,要跟踪到腾讯网站的路由路径,可以输入:`tracert `3、`ipconfig`命令`ipconfig`命令用于显示当前计算机的网络配置信息,包括IP 地址、子网掩码、默认网关等。

执行`ipconfig`命令可以快速查看本地网络连接的基本信息。

4、`netstat`命令`Netstat`命令用于显示网络连接、路由表、接口统计等信息。

它可以帮助了解当前计算机与网络的通信状态。

例如,输入`netstat a`可以显示所有的连接和监听端口。

四、实验步骤及结果分析1、`ping`命令测试(1)首先,对本地网关进行`ping`测试,以确定本地网络连接是否正常。

输入命令`ping 19216811`(假设本地网关地址为 19216811),得到的结果显示平均往返时间较小,且没有丢包现象,说明本地网络连接正常。

计算机网络实验报告(2)

计算机网络实验报告(2)

计算机网络实验报告(2)计算机网络技术实验报告学号:姓名:提交日期:2017-10-17东北大学秦皇岛分校【实验编号】 1【实验名称】计算机网络基础【实验内容】熟悉网络硬件设备;熟悉常用网络测试命令的语法功能;掌握常用的网络故障分析及排除的方法;4?掌握模拟软件的使用方法。

【实验步骤】实验一认识并熟悉计算机网络的硬件组成一、实验目的认识PC硬件设备,网卡,网线,集线器,交换机,路由器等网络设备二、实验内容1、对PC机的认识。

本实验用机处理器主频 2.93GHz,内存2G,硬盘200G。

2、认识网卡,了解网卡的基本构造,网卡与网线的连接,网卡的参数设置,各种网卡的数据传输率。

3、认识网线(主要是双绞线)。

双绞线是将一对或一对以上的双绞线封装在一个绝缘外套中而形成的一种传输介质,是目前局域网最常用的一种布线材料。

4、认识HUB。

集线器(HUB)应用很广泛,它不仅使用于局域网、企业网、校园网,还可以使用于广域网。

5、认识交换机。

交换机也叫交换式集线器,是局域网中的一种重要设备。

它可将用户收到的数据包根据目的地址转发到相应的端口。

6、路由器的认识。

路由器(Router)是一种多端口的网络设备,它能够连接多个不同网络或网段,并能将不同网络或网段之间的数据信息进行传输,从而构成一个更大的网络。

三、熟悉常用网络命令1、Ping.exe,验证与远程计算机的连接。

该命令只有在安装了T CP/IP协议后才可以使用。

2、Netstat.exe,显示协议统计和当前的TCP/IP网络连接。

3、Telnet.exe远程登陆。

4、Tracert.exe,包含不同生存时间(TTL)值的In ternet控制消息协议(ICMP)回显数据包发送到目标,以决定到达目标采用的路由。

5、Winipcfg.exe,win98操作系统用,显示用户所在主机内部的IP协议的配置信息。

6、Arp.exe,显示和修改IP地址与物理地址之间的转换表。

实验报告2常用网络命令的使用

实验报告2常用网络命令的使用

实验报告2常用网络命令的使用一、实验目的:了解和掌握常用网络命令的使用方法。

二、实验内容:1. ping命令:用于测试主机之间的连通性。

a) 命令格式:ping [IP地址/域名]b) 实验步骤:打开命令提示符窗口,输入ping命令及目标主机的IP地址或域名,按下回车键。

2. tracert命令:用于追踪数据包在网络中的路径。

a) 命令格式:tracert [IP地址/域名]b) 实验步骤:打开命令提示符窗口,输入tracert命令及目标主机的IP地址或域名,按下回车键。

c)实验结果:根据结果显示数据包在网络中的路径。

每一行显示经过的路由器的IP地址,并显示数据包从源主机到目标主机所经过的时间。

3. ipconfig命令:用于获取和显示计算机的网络配置信息。

a) 命令格式:ipconfigb) 实验步骤:打开命令提示符窗口,输入ipconfig命令,按下回车键。

c)实验结果:根据结果显示计算机的IP地址、子网掩码、默认网关以及DNS服务器等信息。

4. netstat命令:用于显示计算机的网络状态和统计信息。

a) 命令格式:netstat [-a] [-n] [-p protocol] [-s]b) 实验步骤:打开命令提示符窗口,输入netstat命令及相应的参数,按下回车键。

c)实验结果:根据结果显示当前计算机的网络连接状态、端口使用情况以及传输统计信息等。

5. nslookup命令:用于查询域名的IP地址。

a) 命令格式:nslookup [域名]b) 实验步骤:打开命令提示符窗口,输入nslookup命令及目标域名,按下回车键。

c)实验结果:根据结果显示目标域名的IP地址。

三、实验总结:通过本次实验,我学会了常用的网络命令的使用方法。

ping命令可以用于测试主机之间的连通性,tracert命令可以追踪数据包在网络中的路径,ipconfig命令可以获取并显示计算机的网络配置信息,netstat命令可以显示计算机的网络状态和统计信息,nslookup命令可以查询域名的IP地址。

网络命令使用实验报告

网络命令使用实验报告

一、实验目的1. 熟悉网络命令的基本使用方法;2. 掌握网络诊断工具的使用技巧;3. 提高网络故障排查和解决能力。

二、实验环境1. 操作系统:Windows 102. 网络环境:有线网络或无线网络3. 网络诊断工具:ping、tracert、ipconfig、netstat等三、实验内容1. 网络命令概述2. 网络诊断命令3. 网络故障排查四、实验步骤1. 网络命令概述(1)ping命令:用于测试网络连接是否正常,发送数据包并接收响应。

(2)tracert命令:用于追踪数据包到达目的地的路径,查看数据包在每一段的延迟。

(3)ipconfig命令:用于显示网络接口的配置信息,包括IP地址、子网掩码、默认网关等。

(4)netstat命令:用于显示网络连接、路由表、接口统计等信息。

2. 网络诊断命令(1)ping命令:测试本机与目标主机的连接情况。

步骤:① 打开命令提示符;② 输入ping目标主机IP地址,例如:ping 192.168.1.1;③ 观察返回的数据包是否成功到达目标主机。

(2)tracert命令:追踪数据包到达目标主机的路径。

步骤:① 打开命令提示符;② 输入tracert目标主机IP地址,例如:tracert 192.168.1.1;③ 观察返回的数据包经过的每一站点的延迟。

(3)ipconfig命令:查看网络接口的配置信息。

步骤:① 打开命令提示符;② 输入ipconfig,例如:ipconfig /all;③ 观察返回的网络接口配置信息。

(4)netstat命令:显示网络连接、路由表、接口统计等信息。

步骤:① 打开命令提示符;② 输入netstat,例如:netstat -ano;③ 观察返回的网络连接信息。

3. 网络故障排查(1)检查网络连接是否正常:使用ping命令测试本机与目标主机的连接情况。

(2)检查网络配置是否正确:使用ipconfig命令查看网络接口的配置信息,确保IP地址、子网掩码、默认网关等配置正确。

计算机网络实验二 常用网络命令的使用

计算机网络实验二 常用网络命令的使用

实验二常用网络命令的使用实验要求:掌握WINDOWS下常用的网络有关命令的使用,理解常用网络命令的功能以及作用。

实验方案:在计算机上验证网络命令常用的网络命令:ARP、Ping, Netstat, IPconfig, winipcfg,Route, Nbtstat,net,FTP理解每个命令的功能和作用,并记录下试验结果。

实验内容及步骤:1、如何捆绑MAC 地址和IP 地址在校园网络中,最方便的捣乱方法就是盗用别人的IP 地址,被盗用IP 地址的计算机不仅不能正常使用校园网络,而且还会频繁出现IP 地址被占用的提示对话框,给校园网络安全和用户应用带来极大的隐患。

捆绑IP 地址和MAC 地址就能有效地避免这种现象。

如何查找MAC 地址1、在Windows 9x/2000/XP 下单击“开始/程序”,找到“MS-DOS 方式”或“命令提示符”。

2、在命令提示符下输入:“Ipconfig/all”,回车后出现如附图所示的对话框,其中的“Physical Address”即是所查的MAC 地址。

捆绑IP 地址和MAC 地址可以按以下方式进行,进入“MS-DOS 方式”或“命令提示符”,在命令提示符下输入命令:ARP - s 192.168.5.54 00-15-C5-66-58-C4,即可把MAC 地址和IP 地址捆绑在一起。

这样,就不会出现IP 地址被盗用而不能正常使用校园网络的情况(当然也就不会出现错误提示对话框),可以有效保证校园网络的安全和用户的应用。

注意:ARP 命令仅对局域网的上网代理服务器有用,而且是针对静态IP 地址,如果采用Modem 拨号上网或是动态IP 地址就不起作用。

ARP 命令的各参数的功能如下:ARP -s -d –a-s:将相应的IP 地址与物理地址的捆绑,如本文中的例子-d:删除相应的IP 地址与物理地址的捆绑。

-a:通过查询ARP 协议表显示IP 地址和对应物理地址情况。

计算机网络实验二在PC机上熟悉常用网络命令实验报告

计算机网络实验二在PC机上熟悉常用网络命令实验报告

实验二熟悉常用的网络命令实验报告姓名:陈津生班级:12级数字媒体技术2班学号:2012329700056指导教师:张芳1.实验目的:学会使用常用ping ,ipconfig, nslookup, arp ,tracert等常用网络测试命令检测网络连通、了解网络的配置状态,跟踪路由诊断域名系统等相关网络问题。

2实验环境:(1)运行windows 2000/2003/xp操作系统的PC一台(2)每台PC机具有一块网卡,通过双绞线与局域网网相连。

(3)局域网能连接Internet3.实验步骤:ftp://10.16.23.2用户名:1234567891234密码:01234561、ARP: 显示和修改IP地址与物理地址之间的转换表C:\Documents and Settings\ligong>ARP -aInterface: 10.16.24.18 --- 0x10003Internet Address Physical Address Type192.168.1.3 00-00-00-00-00-00 invalidC:\Documents and Settings\ligong>ARP -gInterface: 10.16.24.18 --- 0x10003Internet Address Physical Address Type192.168.1.3 00-00-00-00-00-00 invalidC:\Documents and Settings\ligong>ARP -dC:\Documents and Settings\ligong>ARP -sDisplays and modifies the IP-to-Physical address translation tables used by address resolution protocol (ARP).ARP -s inet_addr eth_addr [if_addr]ARP -d inet_addr [if_addr]ARP -a [inet_addr] [-N if_addr]-a Displays current ARP entries by interrogating the currentprotocol data. If inet_addr is specified, the IP and Physical addresses for only the specified computer are displayed. If计算机网络原理实验报告more than one network interface uses ARP, entries for each ARP table are displayed.-g Same as -a.inet_addr Specifies an internet address.-N if_addr Displays the ARP entries for the network interface specified by if_addr.-d Deletes the host specified by inet_addr. inet_addr may bewildcarded with * to delete all hosts.-s Adds the host and associates the Internet address inet_addrwith the Physical address eth_addr. The Physical address is given as 6 hexadecimal bytes separated by hyphens. The entry is permanent.eth_addr Specifies a physical address.if_addr If present, this specifies the Internet address of theinterface whose address translation table should be modified. If not present, the first applicable interface will be used. Example:> arp -s 157.55.85.212 00-aa-00-62-c6-09 .... Adds a static entry.> arp -a .... Displays the arp table.2、ftp:(功能就不用描述了,请参看下面的具体用法)ftp> open 10.16.23.2Connected to 10.16.23.2.220 欢迎登陆计算机基础教研室FTP服务器User (10.16.23.2:(none)): 1234567891234331 User name okay, need password.Password:230 User logged in, proceed.ftp> -vInvalid command.ftp> ftp -vInvalid command.ftp> ftp [-v]Invalid command.ftp> cdRemote directory ftp !550 /ftp: No such file or directory.ftp> !Microsoft Windows XP [版本 5.1.2600](C) 版权所有 1985-2001 Microsoft Corp.3、IpconfigC:\Documents and Settings\ligong>ipconfigWindows IP ConfigurationEthernet adapter 本地连接 2:Connection-specific DNS Suffix . :IP Address. . . . . . . . . . . . : 192.168.1.119Subnet Mask . . . . . . . . . . . : 255.255.255.0Default Gateway . . . . . . . . . : 192.168.1.1C:\Documents and Settings\ligong>4、Nbtstat.exeC:\Documents and Settings\ligong>nbtstat.exeDisplays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP).NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n][-r] [-R] [-RR] [-s] [-S] [interval] ]-a (adapter status) Lists the remote machine's name table given its name-A (Adapter status) Lists the remote machine's name table given itsIP address.-c (cache) Lists NBT's cache of remote [machine] names and their IP addresses-n (names) Lists local NetBIOS names.-r (resolved) Lists names resolved by broadcast and via WINS-R (Reload) Purges and reloads the remote cache name table-S (Sessions) Lists sessions table with the destination IP addresses -s (sessions) Lists sessions table converting destination IPaddresses to computer NETBIOS names.-RR (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refr eshRemoteName Remote host machine name.IP address Dotted decimal representation of the IP address.interval Redisplays selected statistics, pausing interval secondsbetween each display. Press Ctrl+C to stop redisplayingstatistics.C:\Documents and Settings\ligong>nbtstat -CDisplays protocol statistics and current TCP/IP connections u(NetBIOS over TCP/IP).NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n][-r] [-R] [-RR] [-s] [-S] [interval] ]-a (adapter status) Lists the remote machine's name table-A (Adapter status) Lists the remote machine's name tableIP address.-c (cache) Lists NBT's cache of remote [machine]addresses-n (names) Lists local NetBIOS names.-r (resolved) Lists names resolved by broadcast and计算机网络原理实验报告-R (Reload) Purges and reloads the remote cache n-S (Sessions) Lists sessions table with the destina-s (sessions) Lists sessions table converting destiaddresses to computer NETBIOS names.-RR (ReleaseRefresh) Sends Name Release packets to WINS aneshRemoteName Remote host machine name.IP address Dotted decimal representation of the IP addresinterval Redisplays selected statistics, pausing intervbetween each display. Press Ctrl+C to stop redstatistics.C:\Documents and Settings\ligong>nbtstat -n本地连接 2:Node IpAddress: [192.168.1.119] Scope Id: []NetBIOS Local Name TableName Type Status---------------------------------------------H16 <00> UNIQUE RegisteredH16 <20> UNIQUE Registered2HJF <00> GROUP Registered2HJF <1E> GROUP RegisteredC:\Documents and Settings\ligong>nbtstat -s本地连接 2:Node IpAddress: [192.168.1.119] Scope Id: []No Connections5、net:C:\Documents and Settings\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:\Documents and Settings\ligong>C:\Documents and Settings\ligong>net此命令的语法是:NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILEHELPMSG | LOCALGROUP | NAME | PAUSE | PRINT |SHARE | START | STATISTICS | STOP | TIME | USEC:\Documents and Settings\ligong>netstat.exeActive ConnectionsProto Local Address Foreign AddressTCP H16:1455 localhost:ftpTCP H16:2078 125.77.199.30:8000 TCP H16:2085 localhost:4809TCP H16:2086 localhost:netbios-ss TCP H16:2088 localhost:netbios-ss TCP H16:2090 localhost:netbios-ss TCP H16:2091 localhost:microsoft-C:\Documents and Settings\ligong>netstat -asIPv4 StatisticsPackets Received = 188648Received Header Errors = 0Received Address Errors = 41385Datagrams Forwarded = 0Unknown Protocols Received = 0Received Packets Discarded = 1636Received Packets Delivered = 158463Output Requests = 11606Routing Discards = 0Discarded Output Packets = 0Output Packet No Route = 0Reassembly Required = 0Reassembly Successful = 0Reassembly Failures = 0Datagrams Successfully Fragmented = 0Datagrams Failing Fragmentation = 0Fragments Created = 0ICMPv4 StatisticsReceived SentMessages 36 37Errors 0 0Destination Unreachable 3 4Time Exceeded 0 0Parameter Problems 0 0Source Quenches 0 0Redirects 0 0Echos 31 2Echo Replies 2 31Timestamps 0 0Timestamp Replies 0 0Address Masks 0 0Address Mask Replies 0 0TCP Statistics for IPv4计算机网络原理实验报告Active Opens = 415Passive Opens = 57Failed Connection Attempts = 145Reset Connections = 29Current Connections = 3Segments Received = 1888Segments Sent = 2228Segments Retransmitted = 276UDP Statistics for IPv4Datagrams Received = 213179No Ports = 4718Receive Errors = 95Datagrams Sent = 90466、Netstat.exeC:\Documents and Settings\ligong>netstat.exeActive ConnectionsProto Local Address Foreign Address StateTCP H16:1455 localhost:ftp CLOSE_WAITTCP H16:2166 localhost:4809 SYN_SENTTCP H16:2167 125.77.199.30:8000 ESTABLISHED7、Ping.exeC:\Documents and Settings\ligong>ping.exeUsage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS][-r count] [-s count] [[-j host-list] | [-k host-list]][-w timeout] target_nameOptions:-t Ping the specified host until stopped.To see statistics and continue - type Control-Break To stop - type Control-C.-a Resolve addresses to hostnames.-n count Number of echo requests to send.-l size Send buffer size.-f Set Don't Fragment flag in packet.-i TTL Time To Live.-v TOS Type Of Service.-r count Record route for count hops.-s count Timestamp for count hops.-j host-list Loose source route along host-list.-k host-list Strict source route along host-list.-w timeout Timeout in milliseconds to wait for each reply.8、Route.exeC:\Documents and Settings\ligong>route.exeManipulates network routing tables.ROUTE [-f] [-p] [command [destination][MASK netmask] [gateway] [METRIC metric] [IF interface]-f Clears the routing tables of all gateway entries. If this isused in conjunction with one of the commands, the tables arecleared prior to running the command.-p When used with the ADD command, makes a route persistent across boots of the system. By default, routes are not preservedwhen the system is restarted. Ignored for all other commands,which always affect the appropriate persistent routes. Thisoption is not supported in Windows 95.command One of these:PRINT Prints a routeADD Adds a routeDELETE Deletes a routeCHANGE Modifies an existing routedestination Specifies the host.MASK Specifies that the next parameter is the 'netmask' value.netmask Specifies a subnet mask value for this route entry.If not specified, it defaults to 255.255.255.255.gateway Specifies gateway.interface the interface number for the specified route.METRIC specifies the metric, ie. cost for the 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 '*'), or the gateway argument may be omitted.If Dest contains a * or ?, it is treated as a shell pattern, and onlymatching 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, that is when (DEST & MASK) != DEST.Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1The route addition failed: The specified mask parameter is invalid. (Destination & Mask) != Destination.Examples:计算机网络原理实验报告> route PRINT> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2destination^ ^mask ^gateway metric^ ^Interface^If 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 CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2CHANGE is used to modify gateway and/or metric only.> route PRINT> route DELETE 157.0.0.0> route PRINTC:\Documents and Settings\ligong>9、Telnet.exe欢迎使用 Microsoft Telnet ClientEscape 字符是 'CTRL+]'Microsoft Telnet> displayEscape 字符是 'CTRL+]'将验证身份(NTLM Authentication)关闭本地回显新行模式 - return 键发送 CR 和 LF当前模式: 控制台Will 终端类型优选的终端类型为 ANSIMicrosoft Telnet> status没有连接Microsoft Telnet> ?/help命令可以缩写。

实验2 常用网络命令实验报告

实验2  常用网络命令实验报告

实验2 常用网络命令实验报告一、实验目的本次实验的主要目的是让我们熟悉并掌握一些常用的网络命令,通过实际操作和观察命令的输出结果,深入理解网络的工作原理和运行机制,提高我们解决网络问题的能力。

二、实验环境本次实验在 Windows 10 操作系统环境下进行,使用命令提示符(CMD)来执行网络命令。

三、实验内容及步骤(一)ping 命令1、打开命令提示符,输入“ping ”,按下回车键。

2、观察返回的结果,包括响应时间、丢包率等信息。

3、对不同的网站进行 ping 操作,如“ping ”、“ping ”等,比较它们的响应情况。

(二)ipconfig 命令1、在命令提示符中输入“ipconfig”,查看本地网络连接的配置信息,如 IP 地址、子网掩码、默认网关等。

2、输入“ipconfig /all”,获取更详细的网络配置信息,包括物理地址(MAC 地址)、DNS 服务器等。

(三)tracert 命令1、输入“tracert ”,跟踪数据包从本地到目标网站所经过的路由路径。

2、观察每一跳的 IP 地址和响应时间,分析网络延迟的可能原因。

(四)netstat 命令1、输入“netstat a”,查看本地计算机的所有网络连接和监听端口。

2、输入“netstat n”,以数字形式显示网络地址和端口号。

四、实验结果与分析(一)ping 命令结果分析1、当对“”进行 ping 操作时,返回的结果显示平均响应时间约为 30 毫秒,丢包率为 0%,这表明本地网络与百度服务器之间的连接较为稳定,网络延迟较低。

2、不同网站的 ping 结果可能会有所差异。

例如,对“”的 ping 结果显示平均响应时间为 50 毫秒,丢包率为 2%,这可能是由于淘宝网站的访问量较大,或者网络链路中的某些节点存在拥塞导致的。

(二)ipconfig 命令结果分析1、通过“ipconfig”命令获取的本地 IP 地址为 1921681100,子网掩码为 2552552550,默认网关为 19216811。

计算机网络常用网络命令 实验报告材料

计算机网络常用网络命令 实验报告材料
实验项目
常用网络命令的使用
实验设备及器材
PC机、安装有TCP/IP协议的网络操作系统
一、实验容、目的
1.掌握常用网络命令的使用:1.Ping命令;2.ipconfig命令;3.ARP命令;4.tracert命令;stat命令。
二、实验原理
三、实验仪器设备及软件
PC机、安装有TCP/IP协议的网络操作系统
执行netstat–s
执行ipconfig /all
执行ARP–a
执行tracert mail.sina..
六、实验总结及体会
我觉得用命令行相比图形操作可能会比较不习惯,但是命令行占用的系统资源更少,执行效率更高,得出的信息更直观,学习常用的命令行事十分必要的。还有就是在使用命令行的时候要注意拼写,因为不是图像操作,所以当出现拼写错误时,命令就执行不了了。
四、实验步骤、数据记录及处理
1.点击窗口开始命令.
2点击.
3.点击
4.进入
5.输入Ping 127.0.0.1指令、Pingmail.sina..、netstat–e、netstat–s等
6.输出结果并将结果截屏。
五、实验结果及分析
执行Ping 127.0.0.1
执行Pingmail.sina..
执行netstat–e
XI`AN TECHNOLOGICAL UNIVERSITY
实验报告
实验课程名称常用网络命令
专 业: 信息管理与信息系统
班 级:
姓 名:
学 号:
实验学时: 9
指导教师:
成 绩:
2015年11月17日
工业大学实验报告
专业
信息管理与信息系统
班级
学号
Hale Waihona Puke 实验课程9指导教师

常用的网络命令实验报告

常用的网络命令实验报告

常用的网络命令实验报告实验一熟悉常用的网络命令实验报告1.实验目的:学会使用常用ping,ipconfig,nslookup,arp,tracert等常用网络测试命令检测网络连通、了解网络的配置状态,跟踪路由等相关网络问题。

2.实验环境:(1)运行windows2000/2021/xp操作系统的pc一台。

(2)每台电脑都有一张网卡,网卡通过双绞线连接到局域网。

(3)局域网可以连接到互联网。

3.实验步骤:参见实验指导手册内容。

4.实验分析,回答下列问题(1)检查本地TCP/IP协议配置,查看您的计算机是自动获取IP还是手动设置IP地址?写下你判断的理由。

我的计算机是通过自动获取ip(2)如果是手动获取IP地址,则可以直接读取IP地址、子网掩码、默认网关和DNS服务器地址。

填写下表。

如果是采用动态获取ip地址,如何获取完整的tcp/ip配置信息,请写出解决步骤。

并填写下表。

a、在DOS下或直接在MS DOS模式下输入ipconfig/all,然后按Enter键将其打开。

ipconfig命令主要用于显示当前的tcp/ip配置的设置值。

b、 /all:显示所有适配器的完整TCP/IP信息ip地址子网掩码默认网关首选dns服务器地址192.168.0.16255.255.255.0192.168.0.1202.203.208.33(3)获取本地IP地址后,在MS DOS模式下运行以下ping命令,并填写实验操作结果(附屏幕截图)。

(a)ping本机ip地址192.168.0.16平统计:数据包:已发送=4,已接收=4,丢失=0,往返行程的估计时间(以毫秒为单位):最短=0ms,最长=0ms,平均=0ms(b) Ping本地IP地址192.168.0.16ping的统计信息:数据包:发送=15,接收=15,丢失=0,估计往返时间(毫秒):最小=0毫秒,最大=0毫秒,平均=0毫秒(c)ping默认网关cn6192.168.0.1平统计:数据包:已发送=6,已接收=0,丢失=6(100%丢失)(d)局域网内任意主机的Ping统计为192.168.0.167ping:数据包:已发送=4,已接收=3,丢失=1,往返行程的估计时间(以毫秒为单位):最短=0ms,最长=0ms,平均=0ms。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

实验二熟悉常用的网络命令实验报告姓名:陈津生班级:12级数字媒体技术2班学号:2012329700056指导教师:张芳1.实验目的:学会使用常用ping ,ipconfig, nslookup, arp ,tracert等常用网络测试命令检测网络连通、了解网络的配置状态,跟踪路由诊断域名系统等相关网络问题。

2实验环境:(1)运行windows 2000/2003/xp操作系统的PC一台(2)每台PC机具有一块网卡,通过双绞线与局域网网相连。

(3)局域网能连接Internet3.实验步骤:ftp://10.16.23.2用户名:1234567891234密码:01234561、ARP: 显示和修改IP地址与物理地址之间的转换表C:\Documents and Settings\ligong>ARP -aInterface: 10.16.24.18 --- 0x10003Internet Address Physical Address Type192.168.1.3 00-00-00-00-00-00 invalidC:\Documents and Settings\ligong>ARP -gInterface: 10.16.24.18 --- 0x10003Internet Address Physical Address Type192.168.1.3 00-00-00-00-00-00 invalidC:\Documents and Settings\ligong>ARP -dC:\Documents and Settings\ligong>ARP -sDisplays and modifies the IP-to-Physical address translation tables used by address resolution protocol (ARP).ARP -s inet_addr eth_addr [if_addr]ARP -d inet_addr [if_addr]ARP -a [inet_addr] [-N if_addr]-a Displays current ARP entries by interrogating the currentprotocol data. If inet_addr is specified, the IP and Physical addresses for only the specified computer are displayed. Ifmore than one network interface uses ARP, entries for each ARP table are displayed.-g Same as -a.inet_addr Specifies an internet address.-N if_addr Displays the ARP entries for the network interface specified by if_addr.-d Deletes the host specified by inet_addr. inet_addr may bewildcarded with * to delete all hosts.-s Adds the host and associates the Internet address inet_addrwith the Physical address eth_addr. The Physical address is given as 6 hexadecimal bytes separated by hyphens. The entry is permanent.eth_addr Specifies a physical address.if_addr If present, this specifies the Internet address of theinterface whose address translation table should be modified. If not present, the first applicable interface will be used. Example:> arp -s 157.55.85.212 00-aa-00-62-c6-09 .... Adds a static entry.> arp -a .... Displays the arp table.2、ftp:(功能就不用描述了,请参看下面的具体用法)ftp> open 10.16.23.2Connected to 10.16.23.2.220 欢迎登陆计算机基础教研室FTP服务器User (10.16.23.2:(none)): 1234567891234331 User name okay, need password.Password:230 User logged in, proceed.ftp> -vInvalid command.ftp> ftp -vInvalid command.ftp> ftp [-v]Invalid command.ftp> cdRemote directory ftp !550 /ftp: No such file or directory.ftp> !Microsoft Windows XP [版本 5.1.2600](C) 版权所有 1985-2001 Microsoft Corp.3、IpconfigC:\Documents and Settings\ligong>ipconfigWindows IP ConfigurationEthernet adapter 本地连接 2:Connection-specific DNS Suffix . :IP Address. . . . . . . . . . . . : 192.168.1.119Subnet Mask . . . . . . . . . . . : 255.255.255.0Default Gateway . . . . . . . . . : 192.168.1.1C:\Documents and Settings\ligong>4、Nbtstat.exeC:\Documents and Settings\ligong>nbtstat.exeDisplays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP).NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n][-r] [-R] [-RR] [-s] [-S] [interval] ]-a (adapter status) Lists the remote machine's name table given its name-A (Adapter status) Lists the remote machine's name table given itsIP address.-c (cache) Lists NBT's cache of remote [machine] names and their IP addresses-n (names) Lists local NetBIOS names.-r (resolved) Lists names resolved by broadcast and via WINS-R (Reload) Purges and reloads the remote cache name table-S (Sessions) Lists sessions table with the destination IP addresses -s (sessions) Lists sessions table converting destination IPaddresses to computer NETBIOS names.-RR (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refr eshRemoteName Remote host machine name.IP address Dotted decimal representation of the IP address.interval Redisplays selected statistics, pausing interval secondsbetween each display. Press Ctrl+C to stop redisplayingstatistics.C:\Documents and Settings\ligong>nbtstat -CDisplays protocol statistics and current TCP/IP connections u(NetBIOS over TCP/IP).NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n][-r] [-R] [-RR] [-s] [-S] [interval] ]-a (adapter status) Lists the remote machine's name table-A (Adapter status) Lists the remote machine's name tableIP address.-c (cache) Lists NBT's cache of remote [machine]addresses-n (names) Lists local NetBIOS names.-r (resolved) Lists names resolved by broadcast and-R (Reload) Purges and reloads the remote cache n-S (Sessions) Lists sessions table with the destina-s (sessions) Lists sessions table converting destiaddresses to computer NETBIOS names.-RR (ReleaseRefresh) Sends Name Release packets to WINS aneshRemoteName Remote host machine name.IP address Dotted decimal representation of the IP addresinterval Redisplays selected statistics, pausing intervbetween each display. Press Ctrl+C to stop redstatistics.C:\Documents and Settings\ligong>nbtstat -n本地连接 2:Node IpAddress: [192.168.1.119] Scope Id: []NetBIOS Local Name TableName Type Status---------------------------------------------H16 <00> UNIQUE RegisteredH16 <20> UNIQUE Registered2HJF <00> GROUP Registered2HJF <1E> GROUP RegisteredC:\Documents and Settings\ligong>nbtstat -s本地连接 2:Node IpAddress: [192.168.1.119] Scope Id: []No Connections5、net:C:\Documents and Settings\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:\Documents and Settings\ligong>C:\Documents and Settings\ligong>net此命令的语法是:NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILEHELPMSG | LOCALGROUP | NAME | PAUSE | PRINT |SHARE | START | STATISTICS | STOP | TIME | USEC:\Documents and Settings\ligong>netstat.exeActive ConnectionsProto Local Address Foreign AddressTCP H16:1455 localhost:ftpTCP H16:2078 125.77.199.30:8000 TCP H16:2085 localhost:4809TCP H16:2086 localhost:netbios-ss TCP H16:2088 localhost:netbios-ss TCP H16:2090 localhost:netbios-ss TCP H16:2091 localhost:microsoft-C:\Documents and Settings\ligong>netstat -asIPv4 StatisticsPackets Received = 188648Received Header Errors = 0Received Address Errors = 41385Datagrams Forwarded = 0Unknown Protocols Received = 0Received Packets Discarded = 1636Received Packets Delivered = 158463Output Requests = 11606Routing Discards = 0Discarded Output Packets = 0Output Packet No Route = 0Reassembly Required = 0Reassembly Successful = 0Reassembly Failures = 0Datagrams Successfully Fragmented = 0Datagrams Failing Fragmentation = 0Fragments Created = 0ICMPv4 StatisticsReceived SentMessages 36 37Errors 0 0Destination Unreachable 3 4Time Exceeded 0 0Parameter Problems 0 0Source Quenches 0 0Redirects 0 0Echos 31 2Echo Replies 2 31Timestamps 0 0Timestamp Replies 0 0Address Masks 0 0Address Mask Replies 0 0TCP Statistics for IPv4Active Opens = 415Passive Opens = 57Failed Connection Attempts = 145Reset Connections = 29Current Connections = 3Segments Received = 1888Segments Sent = 2228Segments Retransmitted = 276UDP Statistics for IPv4Datagrams Received = 213179No Ports = 4718Receive Errors = 95Datagrams Sent = 90466、Netstat.exeC:\Documents and Settings\ligong>netstat.exeActive ConnectionsProto Local Address Foreign Address StateTCP H16:1455 localhost:ftp CLOSE_WAITTCP H16:2166 localhost:4809 SYN_SENTTCP H16:2167 125.77.199.30:8000 ESTABLISHED7、Ping.exeC:\Documents and Settings\ligong>ping.exeUsage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS][-r count] [-s count] [[-j host-list] | [-k host-list]][-w timeout] target_nameOptions:-t Ping the specified host until stopped.To see statistics and continue - type Control-Break To stop - type Control-C.-a Resolve addresses to hostnames.-n count Number of echo requests to send.-l size Send buffer size.-f Set Don't Fragment flag in packet.-i TTL Time To Live.-v TOS Type Of Service.-r count Record route for count hops.-s count Timestamp for count hops.-j host-list Loose source route along host-list.-k host-list Strict source route along host-list.-w timeout Timeout in milliseconds to wait for each reply.8、Route.exeC:\Documents and Settings\ligong>route.exeManipulates network routing tables.ROUTE [-f] [-p] [command [destination][MASK netmask] [gateway] [METRIC metric] [IF interface]-f Clears the routing tables of all gateway entries. If this isused in conjunction with one of the commands, the tables arecleared prior to running the command.-p When used with the ADD command, makes a route persistent across boots of the system. By default, routes are not preservedwhen the system is restarted. Ignored for all other commands,which always affect the appropriate persistent routes. Thisoption is not supported in Windows 95.command One of these:PRINT Prints a routeADD Adds a routeDELETE Deletes a routeCHANGE Modifies an existing routedestination Specifies the host.MASK Specifies that the next parameter is the 'netmask' value.netmask Specifies a subnet mask value for this route entry.If not specified, it defaults to 255.255.255.255.gateway Specifies gateway.interface the interface number for the specified route.METRIC specifies the metric, ie. cost for the 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 '*'), or the gateway argument may be omitted.If Dest contains a * or ?, it is treated as a shell pattern, and onlymatching 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, that is when (DEST & MASK) != DEST.Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1The route addition failed: The specified mask parameter is invalid. (Destination & Mask) != Destination.Examples:> route PRINT> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2destination^ ^mask ^gateway metric^ ^Interface^If 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 CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2CHANGE is used to modify gateway and/or metric only.> route PRINT> route DELETE 157.0.0.0> route PRINTC:\Documents and Settings\ligong>9、Telnet.exe欢迎使用 Microsoft Telnet ClientEscape 字符是 'CTRL+]'Microsoft Telnet> displayEscape 字符是 'CTRL+]'将验证身份(NTLM Authentication)关闭本地回显新行模式 - return 键发送 CR 和 LF当前模式: 控制台Will 终端类型优选的终端类型为 ANSIMicrosoft Telnet> status没有连接Microsoft Telnet> ?/help命令可以缩写。

相关文档
最新文档