ImageVerifierCode 换一换
你正在下载:

10debug.docx

[预览]
格式:DOCX , 页数:30 ,大小:29.75KB ,
资源ID:23866976      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/23866976.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(10debug.docx)为本站会员(b****7)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

10debug.docx

1、10debugCategorized | Cisco, NewTags : Cisco, debug(No Ratings Yet)10招教你用debug做思科路由交换机故障诊断Posted on 02 08月 2008 一般来说对路由器和交换机的故障诊断,只用一个“show”命令是远远不够的。而debug命令往往能够帮助我们看清楚背后的故障原因。这篇文章主要介绍一下如何利用debug来进行常规的故障诊断。 为什么debug命令如此有效? Cisco IOS show命令能够告诉你一个有关你的路由交换设备的基本信息,但是它不能告诉你全部信息。举个例子,show 没有办法告诉你一条路由是什么时候

2、加入或者从路由表中删除的,为什么ISDN线路故障了,一个数据报文是否真的从路由器发出去了,或者指出收到了哪种ICMP错误信息。而上述的这些信息debug可以毫无保留的呈现给你。debug除了可以提供比show更多的信息之外,它提供的的实时(或者叫做动态)信息也是show无法比拟的。反观show无非是抓取特定时间片信息将结果反应到你的控制台上(可以称之为静态结果)。动态信息对我们故障分析的帮助无疑更有帮助。 如何使用debug 我们举一个例子,通过debug模式来看RIPRouter# debug ip RIPRIP protocol debugging is on我们可以用这个命令来看debu

3、gging是否启用:Router# show debugRIP protocol debugging is on任何类型的debug启用信息会被发送到Cisco loging system定义的地方,同时会被加入到路由器的buffered log或者syslog server。看一下各种输出类型:Router# show loggingSyslog logging: enabled (1 messages dropped, 3 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled) Cons

4、ole logging: level debugging, 8 messages logged, xml disabled, filtering disabled Monitor logging: level debugging, 0 messages logged, xml disabled, filtering disabled Buffer logging: level warnings, 2 messages logged, xml disabled, filtering disabled Logging Exception size (4096 bytes) Count and ti

5、mestamp logging messages: disabled Trap logging: level informational, 12 message lines loggedLog Buffer (51200 bytes):*Jun 9 20:56:49.195: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up*Jun 9 20:56:49.231: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to upRouter#控制台会显示RIP

6、更新的信息:*Jun 9 21:13:56.471: RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (1.1.1.1) *Jun 9 21:13:56.471: RIP: build update entries - suppressing null update *Jun 9 21:14:22.519: RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (1.1.1.1) *Jun 9 21:14:22.519: RIP: build upd

7、ate entries - suppressing null update需要提醒的是,只能短时间内开启debug来获取一定时间的信息,因为debug会造成路遇器性能的下降。可以使用 undebug all 来关闭debug。 三种使用debug时的错误 使用debug是一个危险的动作,甚至有经验的管理员使用它时也会失误。第一常见的错误是当你离开生产环境的时候忘记关闭调试模式。因为有时候我们集中精力解决问题,当我们解决问题之后,就有可能忘记没有关闭debug模式。第二常见的错误是忽略同时发出的大量调试命令对路由器产生的影响。记住,路由器的工作是转发数据包,而不是监穿行,寻找这稚嫩的朗读声,不一

8、会晕头转向,随即问个老太太附近有房子出租么,热情的她告诉我她家就有待租的房子,却察过程和产生调试信息。举例来说,在你的路由器存在数据包的某些问题,所以s使用debug调试IP数据包。接着你决定要查看RIP协议方面的一些events。现在,你有两个单独的调 试报表正在处理和发送到控制台。debug比比其他的网络传输具有更高的优先级,所以,不用说,这些debug可能危及您的路由器的性能。第三常见的错误是在一个生产环境的路由器上使用debug all 命令或debug ip packet detail。这些命令都可以令负载过重的路由器崩溃。 幸运的是,在正式启动调试模式之前有一个“确定”这样提示的提

9、示。应该在开始调试命令之前现在某个测试路由器上跑一下这些debug命令。未完待续,下一片文章介绍一下常用的debug故障诊断例子。假设我们配置好的Cisco路由器能够象时钟一样稳定的工作或者说极少需要人为去做一些故障排除。那么这样就可称之为理想状态。但是,如果你的路由器出了故障,而你不得不快速准确地拿出一个解决方案。这就是我们为什么要用学会用debug去做故障排除。这篇文章的对象是没有使用过debug做Cisco故障排除。但是你如果有这方面的经验,看我的介绍能不能给你一些提示去尝试之前没有用到过的方法。在开始介绍Cisco IOS debug 10 招之前这里有些提示和说明: 我介绍的方法是部

10、分debug的用法,但并不能涵盖所有的用法。事实上debug的用法有很多,这里不能一一列举。 Listing A Listing ARouter#debug ? aaa AAA Authentication, Authorization and Accounting access-expression Boolean access expression adjacency adjacency all Enable all debugging alpsALPS debug information apollo Apollo information apple Appletalk informat

11、ion arap Appletalk remote access arp IP ARP and HP Probe transactions asppASPP information async Async interface information backhaul-session-manager Backhaul SM options backup Backup events bsc BSC information bstun BSTUN information call Call information callback Callback activity cca CCA activity

12、 ccfrf11 CCFRF11 information cch323 CCH323 information ccm-managerCall Manager Application information ccsip CCSIP information ccswvoice ccswvoice information cdapi CDAPI information cdp CDP information ces-connConnection Manager CES client info chat Chat scripts activity clns CLNS information cls C

13、LS information cns CNS debugging compress COMPRESS traffic condition Condition confmodem Modem configuration database conn Connection Manager information cops COPS cpp Cpp information cryptoCryptographic subsystem ctunnel Generic CTunnel Interface custom-queue Custom output queuing decnet DECnet inf

14、ormation dhcp DHCP client activity dialerDial on demand dlsw Data Link Switching (DLSw) events dnsix Dnsix information domain Domain Name System drip DRiP debug information dspu DSPU information dxi atm-dxi information eigrp EIGRP Protocol information entry Incoming queue entries ethernet-interface

15、Ethernet network interface events fastethernetFast Ethernet interface information fax Fax frame-relay Frame Relay fras FRAS debug fras-host FRAS Host Debug gssapi GSSAPI debugs h225H.225 Library Debugging h245 H.245 Library Debugging interface interface ip IP information ipx Novell/IPX information i

16、sis IS-IS Information kerberos KERBEROS authentication and authorization lane LAN emulation lapb LAPB protocol transactions lat LAT information ldap LDAP debug commands lex LAN Extender protocol list Set interface and/or access list for the next debug command llc2 LLC2 type II information lnmLan Net

17、work Manager information lnx generic qllc/llc2 conversion activity local-ack Local ACKnowledgement information mgcp Media Gateway Control Protocol modem Modem control/process activation mop DECnet MOP server events mpls MPLS debug mpoa MPOA debug options nbf NetBIOS information ncia Native Client In

18、terface Architecture (NCIA) events netbios-name-cache NetBIOS name cache tracing nhrp NHRP protocol ntp NTP information nvram Debug NVRAM behavior packetLog unknown packets pad X25 PAD protocol ppp PPP (Point to Point Protocol) information printer LPD printer protocol priority Priority output queuin

19、g probe HP Probe proxy requests qdm QoS Device Manager qllc qllc debug information radius RADIUS protocol ras H.323 RAS library rifRIF cache transactions rscmon Resource Monitor rtpspi RTP Service Provider Interface rtr RTR Monitor information rudpv1 RUDP,V1 information sdlcSDLC information sdllc SD

20、LLC media translation serial Serial interface information sgbp SGBP debugging sgcp Simple Gateway Control Protocol smfSoftware MAC filter smrp SMRP information sna SNA Information snapshot Snapshot activity snmp SNMP information source Source bridging information spanning-tree Spanning tree debuggin

21、g srcp Simple Resource Coordination Protocol ssl SSL Debug command standby Hot standby protocol stun STUN information tacacs TACACS authentication and authorization tag-switching Tag Switching (obsolete use debug mpls .) tarp TARP information tbridge Transparent bridging tccsTransparent CCS informat

22、ion telnet Incoming telnet connections template Template activity tftp TFTP debugging tgrm Trunk Group Resource Manager info token Token Ring information translate Protocol translation events translation translation rule information tsp Telephony Service information tunnel Generic Tunnel Interface udptn UDPtn async data transport v120 V120 information vines VINES information vlan vLAN information voice VOICE information voip VOIP information vpdn

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1