a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 236|回复: 2

[综合] Cisco交换故障:路由交换机debug故障诊断8

[复制链接]
发表于 2012-8-3 20:03:30 | 显示全部楼层 |阅读模式
1. Debug IP packet detail XXX (access list number)& Z- V1 P0 u4 Z  T* n
    + x) r- |6 N9 V8 `
    这一条命令可以象一个基本的sniffer/protocol分析工具利用访问列表去查看从源自(到达)某处的传输。为什么说是基本的抓包分析工具呢?因为它看不到包头。 你能够利用访问列表来查看特定的主机、协议、端口或者网络。 当然它不是真正意义上的协议分析工具,但是它是IOS集成的一个特性,比别的工具相对来说使用起来方便快捷。下面的例子是一个记录所有通过你的路由器的Telnet包的配置。- `4 i) T* G; p% p) b) e, K4 v5 B
    ; V! ^8 O" M/ n& w
    access-list 101 permit tcp any any eq telnet
/ [! x' T! M: b5 B7 Y    & r/ h) j& }7 U
    debug ip packet detail 1011 ^* S! e* G+ e0 X# E; Z: f" F
    - l. O, z% i' j9 d+ q+ @! D* W/ U
    IP packet debugging is on (detailed) for access list 1010 o3 L" b+ Y) r; m, k' x) e
    5 V1 X' o: M0 b! b
    Listing E总结了一些debug输出的示例。
- s* [2 C$ D6 r4 r9 I# N1 Z    , _8 V/ U& X, f, @. d
    你可以从输出结果看到获取的ip 源、目的(地址、端口号)接口、sequence 号、acknowledgement 号, window 尺寸, 和TCP 通讯标志(SYN, ACK, FIN)。
) X8 u* Z8 f0 a9 Z. h, C* r' u5 ^   
3 o8 k, i1 H2 \6 E% H! l0 O7 r% G    This post was written by:8 A' j' }3 j' V. q0 N  y2 H
    ! c. Y# }  E7 f$ m/ F
    不唠嗑3 n3 L2 w3 c$ l3 i: O
    , Y' ]6 @& _' ~
    ***CPU及内存的使用率在50%以上时,慎用debug命令***, x1 u& \0 s/ K4 Q  m8 N  L
    ! q: o+ W4 o7 L- O" w) W
    附:Listing C4 O2 H3 L) \  `* Z& \5 V0 D5 e
    1 |; X: U$ G5 {9 G
    Listing C
+ c5 R4 R/ ^7 M! ?0 m+ G    5 }  A4 ?: P' j' q& N7 p' n
    Router#deb all8 }; z  D* R$ G) `3 O$ E
   
) g0 o2 i( j8 O! P7 z2 @    This may severely impact network performance. Continue? (yes/[no]): yes# @+ B' f( S# M9 e, N
    , E, z9 z0 _$ [# v: R9 P
    All possible debugging has been turned on
2 D7 h  Q- J' O6 `5 i% K      D0 T4 x5 D+ V. {
    Router#0 a( k: k7 J6 c6 U2 J0 ^! b$ l
   
" W+ s; l5 B' T4 @    Router#show debug
" p& g" E: p1 V9 b$ W    " S  @* _4 Y& w( s( m
    "debug all" is in effect.
8 \( d7 i- }' X) O7 M- ]% c    1 a$ V- ]1 O/ L4 i2 \
    Command parser:
9 \3 T7 Y2 `* `3 l+ Y   
& W9 C3 c4 U) b# D! _    Parser ambiguity debugging is off- {" i/ v4 o' S
   
" O  `. m( O0 x  u    Help message debugging is off; e( ~8 J. E) w. H
    / |* S- `0 H6 o! V8 r
    Parser mode debugging is off8 k& f! l/ ^" c/ X/ z
   
5 I! Z  e& y: k. P    Parser interface range debugging is off& `( `$ G  [; N/ X+ X' m3 Y
    7 L+ Y! O, O# x* S& \4 W1 |: y
    Parser aliases debugging is off
回复

使用道具 举报

 楼主| 发表于 2012-8-3 20:03:31 | 显示全部楼层

Cisco交换故障:路由交换机debug故障诊断8

Privilege level debugging is off
0 J4 K+ B9 B7 @% S& Y   
% `3 O/ |' c' |    Parser HTTP processing debugging is off
2 _/ V! w  _: l1 n- s- b) Y    0 Y* m# y7 E# v; V
    Parser Cache debugging is off* u" V" j5 q/ U
   
& z. _5 S! u# @$ h/ `    Frame Relay switching debug interval is 1 seconds, t5 H9 D+ u4 \; j; c' Q! H
   
4 V0 t& F( A/ u, C    UDPtn debugging is off6 ?, ]0 z" r- k$ C0 z# R$ R! T6 _
   
& X3 T" |) A4 ]0 `3 @0 Z    LPD Printer debugging is off (detailed)  e+ Z. e9 z2 `5 s7 k/ S
   
* X" L: M# }( a+ m. e6 F3 o+ I6 v    IP multicast:. v* S) ]; f' E' w9 c
    2 a. H; K! v; N6 C! ]
    IP multicast fast-switching debugging is on
/ X4 b9 X2 r% D* C9 @   
( J. r  h' w6 H    IP multicast routing debugging is on
( x% j: K; X1 ]; b2 w! @    : ], P1 n6 `7 e* |+ O; ]. H7 r
    IGMP debugging is on) J; ]3 `$ z+ Y  O: K9 z7 \
   
! c* }4 D9 h, q    CGMP debugging is on
+ A; J+ b, J$ n' k& |, V! ?! J) u   
7 e2 E8 w6 O0 S5 b    RGMP debugging is on4 V: x) \# n$ x
   
$ ?+ {; y9 _$ |% a! }1 L    DVMRP debugging is on3 I  B  }$ w1 c  b
   
1 |- K1 P8 g0 P$ t: g    PIM debugging is on
/ H1 y+ a1 }, M% V; j+ k4 w   
( w% G! k" o: L, I* a" T. U    PIM DF debugging is on2 G  K/ \- m! L/ B% m
    * \& R9 p& v* [* g. `; h
    PIM ATM debugging is on- C- N1 L7 s: @$ }
   
" E4 l& h% |  C    PIM BSR debugging is on8 H& s8 h# ?1 \" T' o$ O4 ]
   
& Z" E) ], m9 R    SD debugging is on& a- Q( R4 _6 i6 W
   
8 n; W% r  y- T$ m    PIM Auto-RP debugging is on
" q  I2 [2 e3 {    8 o9 V2 Z, {3 ]. b
    MSDP debugging is on. h2 b; ^! h9 g; e! ]
    ! x2 k" J& T1 g# I- w7 r4 a! L
    URD debugging is on- y6 U4 O0 z5 y3 R$ g
   
1 Y# G. s8 p' ~; q    Heartbeat debugging is on0 H1 Z1 F* ^9 B$ t3 M4 \
   
8 ~% |3 R) ~( t( `    IP Multicast tagswitching debugging is on9 f2 |7 {- s1 D5 {! |' \
    % b% q5 s& U$ p* ~
    PIM multicast tagswitching debugging is on
2 e* A5 T) l: j$ G) q0 S    % S6 I( S0 m6 X$ }# D+ r' M) H
    AT/EIGRP:
3 U7 z6 l! }* k  B  S    # b$ D, y# }1 z# y+ k1 t
    AT/EIGRP Event Logging debugging is off( `- }3 `$ G% o3 K( t* U; h
   
, I& m0 B* q" l    AppleTalk Remote Access:- S% B7 ?5 |! i; L+ l5 w( v
    5 @5 c+ z4 C2 h0 _% K" z) [
    ARAP MNP4 debugging is on
* p7 h: I* \: t0 e8 H& j   
" @  j; z" j, s) x  }    ARAP V.42bis debugging is on7 \' s6 R, r1 A
   
6 d) I6 ]3 }3 f: o2 C+ Q    ARAP internal packet debugging is on  s" @6 @5 b# {) h1 n( L
    - j6 _- d" f: I
    ARAP memory debugging is onLDAP:
% E$ W4 Y& I) \/ o$ c    / Z. F0 \: V+ l" L4 j8 M
    connect debbuging is on7 o* ~5 K0 @4 b7 A6 {+ U, \
   
3 D4 @( l+ o* a6 o* w1 c    bind debbuging is on, C: l1 M) g" B
   
3 T: }9 b9 k$ _0 Q( w8 Z$ U4 k    ber debbuging is on
; l# {; V( {# n5 _; ?    1 f, r) S4 \% S2 n$ f/ k
    receivedata debbuging is on
' F7 h1 |; R+ B( J- e7 w    4 N  b0 c: Y" O; V9 R
    request debbuging is on4 @5 u# Z" |2 [& ]% B
    ' G/ e% l' _9 Y1 J& V( k: M0 H
    referrals debbuging is on$ y/ E. x" G+ d" W
    ) {) E# n* M  j3 k
    error debbuging is on
% n5 V5 O# x' _, K) G2 {   
4 J! q# o+ o- w* ~% S# D9 r+ G    DLSw:
. p. t. M& ^$ o: O. t    / Z& @! s( y) p/ }# i/ Q" K* f
    DLSw Core debugging is off
0 s7 e2 t4 N& a  R   
  T6 K7 K4 a2 G    DLSw Reachability debugging is off
5 D& K) l2 N3 P9 e% T3 K6 i   
8 ]$ L+ r' x' _; W; U5 P* Z    DLSw Local Circuit debugging is off
% X9 v! c4 D/ @    + O2 M) H: D4 c
    DLSw reachability debugging is on at event level for all protocol traffic
# v. W; H9 F3 h; o$ y8 e/ a   
) B. r; Y  D8 X' m) ?% m7 w1 H    DLSw core message debugging is on
, X5 n: O6 h- W. l' V! a& q   
+ x  w& c( B) ^0 c    DLSw core state debugging is on- v3 N/ T. S" ]
   
5 e) \: x9 G4 L* W, ^6 `4 D    DLSw core flow control debugging is on
4 S$ j& v# k) H* U/ ?   
9 Q0 h$ c0 @, c9 V3 B    DLSw core xid debugging is on" q/ _3 t9 I5 m3 h, [
   
: [5 [" F% |" F4 k0 m% u6 \4 M    DLSw Local Circuit debugging is on
6 @# t# p: M9 |# [    ' E, T9 F6 F7 D! i0 }& ~
    SNA:
( p1 K$ Y- r# j    0 ~8 \5 [+ @: ^9 f
    SNA activation debugging is on for all PUs3 e# _1 |% H0 V" x0 J5 {' S0 X
   
( p6 M: S+ C' W& ]1 t8 m5 [    SNA packet debugging is on for all PUs8 E: b( E) A6 a
    , b' f# R3 m  s! G2 L; ^( `% G
    SNA state change debugging is on for all PUs/ j3 W# \, i" g+ W& I( O  a
    3 \. {- A, v6 ~# L$ g# d" Y( D. f
    SNA trace debugging is on for all PUs
* f' `+ R7 C+ I* d1 K   
8 A' {: m+ S' p- V% U/ K    SNA alert debugging is on for all PUs- o( e' @3 y1 o) D
   
4 a+ p/ N  L8 {( a1 S    NCIA: Debug client all is on5 D% W. q5 X4 X0 ]4 K
   
6 v7 i. W7 ^0 d; e2 [! ~    NCIA: Debug server is on
! h' @' {+ D4 A' z      E- v" d" }1 m, R
    NCIA: Debug circuit all is on- h" Y4 {* p  ?9 ]0 W. {. U
   
" ~4 D/ e0 o  ?# t    BSTUN:
* X. X/ ^, a& ?" ~! ^   
/ R$ O0 q) j& `- w% z    BSTUN event debugging is on
/ K. o  y  @, C7 d   
0 h( j$ ]3 {  i! F    BSTUN packet debugging is on
$ j. O$ _! C" K    / k7 A: [6 b! e0 C
    BSTUN packet display size for debugging is 20: C! z; U, Y$ Y. O: H5 C9 B
   
/ V# _" _4 f+ P; ]    BSC:
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 20:03:32 | 显示全部楼层

Cisco交换故障:路由交换机debug故障诊断8

BSC event debugging is on
- o3 \/ B7 P! n  W" J% U      H. B' C) U$ ]
    BSC packet debugging is on
3 l! s( _6 O) ^) x/ `2 ~   
+ @+ i( t: ]  F5 e, n& q& Q0 A+ T    BSC diagnostic debugging is on" X. A1 j2 ~. U8 @/ @3 ?
   
6 s5 n9 w0 ?# y  N' w$ _/ u. O    BSC packet display size for debugging is 20
" }( B' ~2 M$ Z4 V- v   
/ L7 e. P* \* j1 d* |    ASPP:! b8 P  e- J0 d( x* V; O
    1 f, M: l2 Y: _0 C; a
    ASPP event debugging is on
# F  I8 M! I) O0 J4 T- L    % ^7 J0 l. R3 t: W# n& L/ r& |
    ASPP packet debugging is on) B, F4 C( L( S4 F/ Q3 d9 N
   
8 q( O" c0 k1 p2 j3 p! [% T5 d    ASPP packet display size for debugging is 20
9 Y9 R4 R! B' ^" {   
( H9 }( U6 S. t. w. J    MGCP:
5 o" M" i2 [& c' X+ y$ {   
8 [" J( t8 ]7 |* T* a    Media Gateway Control Protocol input packets in hex value debugging is off  W' s$ N( B% P' {5 }* [1 `1 b
    / g! ~* J/ U8 ]* Y8 i( M* G3 R: b
    Rudpv1: Application debugging is enabled
6 ^5 c: K! ^) x2 O    * h4 H3 l8 s* }3 q; F% l1 b
    Rudpv1: Performance debugging is enabled# B" ^: f$ M, d* c
   
. {; H5 @2 N+ }. p3 F    Rudpv1: Retransmit/softreset is enabled
4 |+ m- H, t1 S+ o( e  A   
  c4 D) V, a; H) o/ J) S    Rudpv1: Segment debugging is enabled
- E/ L) Q& x8 i" U/ k  ^   
6 B! ^. K/ T  g: ]4 M. T- k    Rudpv1: Signal debugging is enabled9 y+ s2 v- [, _6 h$ S
   
2 d+ g6 D) |5 {8 l% W    Rudpv1: State debugging is enabled8 D: |; }. r- v2 K# Q5 k
    7 i1 {0 R' H+ i3 T& u: N
    Rudpv1: Timer debugging is enabled' o% P' Z3 Y1 E5 m# s7 y4 l" h
    + N! V1 T: M, ^
    Rudpv1: Transfer state debugging is enabledBSM:All debuuging turned on at the session level9 G, B0 u7 b9 c. Q7 |
    # S8 ]0 O0 P* [" u
    ISDN events debug DSLs. (On/Off/No DSL:1/0/-)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-4-29 09:02 , Processed in 0.263650 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表