了解和掌握下面网络相关的命令将会有助于您迅速地检测到网络故障所在,从而节省时间,提高效率。
Ping
Ping是测试网络联接状况以及信息包发送和接收状况非常有用的工具,是网络测试最
常用的命令。Ping向目标主机(地址)发送一个回送请求数据包,要求目标主机收到请求后给予答复,从而判断网络的响应时间和本机是否与目标主机(地址)联通。
如果执行Ping不成功,则可以预测故障出现在以下几个方面:网线故障,网络适配器配置不正确,IP地址不正确。如果执行Ping成功而网络仍无法使用,那么问题很可能出在网络系统的软件配置方面,Ping成功只能保证本机与目标主机间存在一条连通的物理路径。
命令格式:
ping IP地址或主机名 [-t] [-a] [-n count] [-l size]
参数含义:
-t不停地向目标主机发送数据;
-a 以IP地址格式来显示目标主机的网络地址 ;
-n count 指定要Ping多少次,具体次数由count来指定 ;
-l size 指定发送到目标主机的数据包的大小。
例如当您的机器不能访问Internet,首先您想确认是否是本地局域网的故障。假定局域网的代理服务器IP地址为202.168.0.1,您可以使用Ping避免202.168.0.1命令查看本机是否和代理服务器联通。又如,测试本机的网卡是否正确安装的常用命令是ping 127.0.0.1。
———————————————————————————-
Tracert
Tracert命令用来显示数据包到达目标主机所经过的路径,并显示到达每个节点的时间。命令功能同Ping类似,但它所获得的信息要比Ping命令详细得多,它把数据包所走的全部路径、节点的IP以及花费的时间都显示出来。该命令比较适用于大型网络。
命令格式:
tracert IP地址或主机名 [-d][-h maximumhops][-j host_list] [-w timeout]
参数含义:
-d 不解析目标主机的名字;
-h maximum_hops 指定搜索到目标地址的最大跳跃数;
-j host_list 按照主机列表中的地址释放源路由;
-w timeout 指定超时时间间隔,程序默认的时间单位是毫秒。
例如大家想要了解自己的计算机与目标主机www.128mn.com之间详细的传输路径信息,可以在MS-DOS方式输入tracert www.128mn.com。
如果我们在Tracert命令后面加上一些参数,还可以检测到其他更详细的信息,例如使用参数-d,可以指定程序在跟踪主机的路径信息时,同时也解析目标主机的域名。
————————————————————————————
Netstat
Netstat命令可以帮助网络管理员了解网络的整体使用情况。它可以显示当前正在活动的网络连接的详细信息,例如显示网络连接、路由表和网络接口信息,可以统计目前总共有哪些网络连接正在运行。
利用命令参数,命令可以显示所有协议的使用状态,这些协议包括TCP协议、UDP协议以及IP协议等,另外还可以选择特定的协议并查看其具体信息,还能显示所有主机的端口号以及当前主机的详细路由信息。
命令格式:
netstat [-r] [-s] [-n] [-a]
参数含义:
-r 显示本机路由表的内容;
-s 显示每个协议的使用状态(包括TCP协议、UDP协议、IP协议);
-n 以数字表格形式显示地址和端口;
-a 显示所有主机的端口号。
———————————————————————————-
Winipcfg
Winipcfg命令以窗口的形式显示IP协议的具体配置信息,命令可以显示网络适配器的物理地址、主机的IP地址、子网掩码以及默认网关等,还可以查看主机名、DNS服务器、节点类型等相关信息。其中网络适配器的物理地址在检测网络错误时非常有用。
命令格式:
winipcfg [/?] [/all]
参数含义:
/all 显示所有的有关IP地址的配置信息;
/batch [file] 将命令结果写入指定文件;
/renew_ all 重试所有网络适配器;
/release_all 释放所有网络适配器;
/renew N 复位网络适配器 N;
/release N 释放网络适配器 N。
在Microsoft的Windows 95及其以后的操作系统中,都可以运行以上命令。
I found your weblog website on google and verify a few of your early posts. Proceed to keep up the excellent operate. I simply further up your RSS feed to my MSN News Reader. Looking for ahead to studying more from you afterward!?
I simply desired to say thanks once more. I am not sure what I would've achieved in the absence of the actual pointers contributed by you concerning that problem. It was actually a very traumatic dilemma in my circumstances, nevertheless finding out the very specialized technique you solved the issue took me to weep with happiness. Now i'm happier for your assistance and then have high hopes you realize what a powerful job that you're providing teaching others by way of a site. I am sure you have never come across any of us.
welcome to my blog
I used to be very pleased to search out this web-site.I wanted to thanks in your time for this glorious read!! I undoubtedly having fun with every little little bit of it and I have you bookmarked to take a look at new stuff you blog post.
welcome to my blog
I found your blog site on google and test a few of your early posts. Continue to maintain up the excellent operate. I simply further up your RSS feed to my MSN News Reader. Searching for forward to studying extra from you afterward!?
I actually wanted to develop a message in order to appreciate you for some of the wonderful instructions you are giving on this website. My extended internet lookup has now been paid with pleasant strategies to share with my company. I would express that many of us website visitors are extremely endowed to exist in a notable place with so many perfect individuals with great tips and hints. I feel truly privileged to have discovered your entire weblog and look forward to really more excellent minutes reading here. Thanks a lot once more for everything.
I used to be very pleased to search out this web-site.I wanted to thanks to your time for this excellent learn!! I definitely enjoying each little bit of it and I've you bookmarked to take a look at new stuff you weblog post.
I wanted to put you the little bit of observation to help thank you so much as before for your spectacular concepts you've featured on this website. This is so open-handed of people like you to present without restraint all a lot of folks could have made available as an e-book in making some cash for their own end, chiefly considering the fact that you might have done it in the event you considered necessary. These tricks also worked as a great way to recognize that some people have the same desire like my own to grasp a lot more regarding this issue. I know there are some more pleasurable instances ahead for folks who read through your blog post.
This actually answered my drawback, thanks!
Needed to write you this tiny note to finally give thanks the moment again just for the pleasant pointers you've featured at this time. It was certainly incredibly open-handed with you to allow without restraint exactly what a few individuals would've supplied for an e-book to earn some money on their own, certainly considering that you might have tried it if you ever considered necessary. These smart ideas likewise acted to become great way to fully grasp other people have a similar keenness the same as my personal own to know the truth a whole lot more when it comes to this matter. Certainly there are many more enjoyable opportunities in the future for folks who go through your website.
I simply had to thank you so much again. I'm not certain the things I would've used in the absence of those methods contributed by you directly on this theme. It truly was a very frightening situation in my view, nevertheless spending time with a well-written technique you treated that made me to jump with contentment. Now i am happier for your work and even hope you really know what a powerful job that you are doing instructing most people through a site. I know that you've never met all of us.
My wife and i ended up being very fortunate that Emmanuel managed to round up his reports through your ideas he made through your blog. It is now and again perplexing just to continually be giving for free solutions which often people could have been making money from. We know we have got the website owner to thank because of that. The specific illustrations you've made, the simple blog navigation, the friendships you will assist to engender – it's most astounding, and it is aiding our son in addition to us do think this subject matter is exciting, and that is exceptionally pressing. Many thanks for everything!
I am often to blogging and i actually respect your content. The article has actually peaks my interest. I'm going to bookmark your site and preserve checking for new information.