使用PING和Traceroute 检查网络的连通性

来源:互联网 发布:拓扑图布局算法 编辑:程序博客网 时间:2024/06/05 23:45

使用PING和Traceroute 检查网络的连通性


2010-03-18 17:32:44
 标签:PING 网络 Traceroute 检查 连通   [推送到技术圈]

1.使用PING命令
R1#ping 12.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:
!!!!!    //5!表明网络是通的
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms
 
R1#ping 13.1.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.1.1.3, timeout is 2 seconds:
!!!!!  //5!表明网络是通的
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms
R1#
 
 
在路由器或是交换机里使用ping命令
如果ping的结果是!!!!!则表明网络正常.
如果ping的结果是…..则表明网络不通.
如果ping的结果是U.U.U则表明下一跳不可达.
 
2.使用traceroute命令,检察从原到目的地经过的路由器的个数.(或是数据包经过的路径)
:
R2#traceroute 33.1.1.3
 
Type escape sequence to abort.
Tracing the route to 33.1.1.3
 
  1 12.1.1.1 4 msec 4 msec 4 msec
  2 13.1.1.3 4 msec 4 msec *
R2#
从以上可以看出从R2 到达33.1.1.3经过了12.1.1.113.1.1.3两个路由器
原创粉丝点击