免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3116 | 回复: 1
打印 上一主题 下一主题

利用ping轻松判断网络故障 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-12-28 17:56 |只看该作者 |倒序浏览
日常管理中经常会碰到网络不通的问题,原因就多了,比如:网卡松动,水晶头接触不良,网线问题,交换机或者路由器硬件故障或配置不正确,或是操作系统没配置好,等等…\r\nping命令常用来判断网络中的连通状况,可用先后四步来简要判断故障,现总结如下:\r\n1.ping 127.0.0.1\r\n该命令检查协议,通则转2否则请检查协议是否安装正确\r\n2.ping 本机IP\r\n该命令检查网卡或者配置,通则转3否则请检查网卡驱动和配置\r\n3.ping 网关IP\r\n该命令检查网关路由器,通则转4否则请检查网关路由相关配置\r\n4.ping 远程IP\r\n该命令检查internet访问能力,通则正常否则视情况请检查本地路由,DNS,防火墙等

论坛徽章:
0
2 [报告]
发表于 2004-12-29 17:28 |只看该作者
NETSTAT 主要用来判断网络协议,路由表,端口使用状况等。与PING不一样的哦。\r\n\r\nNETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]\r\n\r\n  -a            Displays all connections and listening ports.\r\n  -e            Displays Ethernet statistics. This may be combined with the -s\r\n                option.\r\n  -n            Displays addresses and port numbers in numerical form.\r\n  -p proto      Shows connections for the protocol specified by proto; proto\r\n                may be TCP or UDP.  If used with the -s option to display\r\n                per-protocol statistics, proto may be TCP, UDP, or IP.\r\n  -r            Displays the routing table.\r\n  -s            Displays per-protocol statistics.  By default, statistics are\r\n                shown for TCP, UDP and IP; the -p option may be used to specify\r\n                a subset of the default.\r\n  interval      Redisplays selected statistics, pausing interval seconds\r\n                between each display.  Press CTRL+C to stop redisplaying\r\n                statistics.  If omitted, netstat will print the current\r\n                configuration information once.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP