网络设备基本调试ISSUE1.0日期:杭州华三通信技术有限公司版权所有,未经授权不得使用与传播按照初始目标组建配置完互联网络后,首要的任务是检查网络的连通性为定位网络设备协议或控制参数的配置错误或运行故障,需要使用调试信息引入掌握用ping、tracert命令检查系统连通性掌握使用debug等命令进行网络系统基本调试的方法课程目标学习完本课程,您应该能够:网络连通性测试系统调试目录命令的输出[RTA]ping192.168.3.1PING192.168.3.1:56databytes,pressCTRL_CtobreakReplyfrom192.168.3.1:bytes=56Sequence=1ttl=254time=28msReplyfrom192.168.3.1:bytes=56Sequence=2ttl=254time=28msReplyfrom192.168.3.1:bytes=56Sequence=3ttl=254time=28msReplyfrom192.168.3.1:bytes=56Sequence=4ttl=254time=27msReplyfrom192.168.3.1:bytes=56Sequence=5ttl=254time=28ms---192.168.3.1pingstatistics---5packet(s)transmitted5packet(s)received0.00%packetlossround-tripmin/avg/max=27/27/28ms的实现原理RTCRTBRTA(1)(2)echo-requestttl=1192.168.1.1192.168.1.2192.168.2.1192.168.2.2192.168.3.1tracert192.168.3.1ttl-exceededport-unreachableecho-requestttl=2命令的输出[RTA]tracert192.168.3.1tracerouteto192.168.3.1(192.168.3.1)30hopsmax,40bytespacket,pressCTRL_Ctobreak1192.168.1.217ms17ms17ms2192.168.2.218ms19ms19ms*Oct117:11:02:9732008RTAIPFWD/7/debug_case:Sending,interface=Serial6/0,version=4,headlen=20,tos=0,pktlen=40,pktid=30003,offset=0,ttl=1,protocol=17,checksum=48959,s=192.168.1.1,d=192.168.3.1*Oct117:11:03:4072008RTAIPFWD/7/debug_case:Sending,interface=Serial6/0,version=4,headlen=20,tos=0,pktlen=40,pktid=30006,offset=0,ttl=2,protocol=17,checksum=48700,s=192.168.1.1,d=192.168.3.1*Oct116:59:43:7732008RTAIPDBG/7/debug_icmp:ICMPReceive:ttl-exceeded(Type=11,Code=0),Src=192.168.1.2,Dst=192.168.1.1;OriginalIPheader:Pro=17,Src=192.168.1.1,Dst=192.168.3.1,First8bytes=7533829A00140000*Oct116:59:43:9202008RTAIPDBG/7/debug_icmp:ICMPReceive:port-unreachable(Type=3,Code=3),Src=192.168.2.2,Dst=192.1.1.1;OriginalIPheader:Pro=17,Src=192.168.1.1,Dst=192.168.3.1,First8bytes=7533829D00140000网络连通性测试系统调试目录系统调试介绍对网络设备所支持的绝大部分协议和功能,系统都提供了相应的调试功能,帮助用户对错误进行诊断和定位调试信息的输出由两个开关控制OFFONOFFON调试信息协议调试开关屏幕输出开关13123OFFONON调试信息协议调试开关屏幕输出开关1312313系统调试的操作开启控制台对系统信息的监视功能打开调试信息的屏幕输出开关打开模块调试开关显示调试开关H3CterminalmonitorH3CterminaldebuggingH3CdisplaydebuggingH3Cdebuggingmodule-name*Oct117:16:21:6482008RTAIPFWD/7/debug_case:Sending,interface=Serial6/0,version=4,headlen=20,tos=0,pktlen=84,pktid=2775,offset=0,ttl=255,protocol=1,checksum=11646,s=192.168.1.1,d=192.168.1.2prompt:SendingthepacketfromlocalatSerial6/0*Oct117:16:21:6732008RTAIPFWD/7/debug_case:Receiving,interface=Serial6/0,version=4,headlen=20,tos=0,pktlen=84,pktid=1515,offset=0,ttl=255,protocol=1,checksum=12906,s=192.168.1.2,d=192.168.1.1prompt:ReceivingIPpacketfromSerial6/0*Oct117:16:21:6742008RTAIPDBG/7/debug_case:Delivering,interface=Serial6/0,version=4,headlen=20,tos=0,pktlen=84,pktid=1515,offset=0,ttl=255,protocol=1,checksum=12906,s=192.168.1.2,d=192.168.1.1prompt:IPpacketisdeliveringup!Replyfrom192.168.1.2:bytes=56Sequence=1ttl=255time=26ms---192.168.1.2pingstatistics---1packet(s)transmitted1packet(s)received0.00%packetlossround-tripmin/avg/max=26/26/26msping使用ICMP回显请求与应答检测网络连通性tracert使用TTL超时机制检测网络连通性调试信息的输出由协议开关和屏幕开关两个开关控制本章总结杭州华三通信技术有限公司