⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 第十章 quidway.htm

📁 华为路由器配置手册是一本书
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0033)http://www.ccilan.com/qdxz099.htm -->
<HTML><HEAD><TITLE>第十章&nbsp; Quidway</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 5.50.4134.100" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId>
<META content=tb name="Microsoft Border"></HEAD>
<BODY><!--msnavigation-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <P><IMG height=57 src="第十章 Quidway.files/sheng_.jpg" width=284 align=left 
      border=0><IMG height=60 src="第十章 Quidway.files/swm.gif" width=484 
      align=left border=0>&nbsp;&nbsp;&nbsp; 
  </P></TD></TR><!--msnavigation--></TBODY></TABLE><!--msnavigation-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR><!--msnavigation-->
    <TD vAlign=top>
      <H2 align=center>第十章&nbsp; Quidway<SUP>(R)</SUP>系列路由器调试命令</H2>
      <H3><A name="10.1 调试命令的使用"><BIG>10.1 </BIG>调试命令的使用</A></H3>
      <P>(1)执行调试命令</P>
      <P>所有的调试命令都需在特权用户模式下执行,大部分调试命令不带参数,如调试arp直接在特权用户模式下键入 <B>debug</B> 
      <B>arp</B> 命令即可,停止对arp的调试,则键入<B>no debug arp</B> 命令。</P>
      <P>如果需要查看当前系统正在进行哪些调试,则可以执行<B>show debugging</B> 命令。</P>
      <P>执行调试命令,输出调试信息,需要消耗大量的CPU时间,从而影响系统的运行效率,因此一般情况下,调试命令用于技术支持人员对系统故障的诊断,在故障排除之后应随即停止调试。</P>
      <P>(2)使用<B>debug</B> ?</P>
      <P>使用<B>debug</B> 
      ?命令可以查看系统支持哪些调试功能,在Quidway<SUP>(R)</SUP>系列路由器提供了种类丰富的各种调试功能,几乎覆盖路由器全部功能。</P>
      <P>在这些调试功能中,有部分用于开发过程中的调试功能。在下面的介绍中,我们将详细介绍用于网络故障诊断的调试功能。</P>
      <P>(3)使用<B>debgug all</B></P>
      <P>使用<B>debgug all</B> 
      命令可以打开系统全部调试功能,由于产生比单个调试命令多得多的调试信息,将导致系统效率的严重下降,甚至无法正常工作,因此不建议使用该命令。</P>
      <P>但<B>no debug 
      all</B>命令却给用户带来极大的方便,当用户在停止对路由器的调试时,不必去查看哪些调试功能在起作用,并分别执行<B>no debug</B> 
      命令停止调试,只需要执行<B>no debug all</B>命令即可。</P>
      <P>(4)输出调试信息</P>
      <P>打开某个调试功能之后,即会产生相应的调试信息,但如何将这些调试信息输出到当前用户屏幕上,还需要执行<B> monitor</B> 
      命令打开当前用户的调试信息输出开关。</P>
      <P>如果多个用户同时打开调试信息开关,也会导致系统效率的下降,建议只在少量用户的屏幕上输出调试信息。</P>
      <P>如果某个用户不需再查看调试信息,但有其它用户仍在进行调试,此时只需执行<B>unmonitor</B> 
      命令关闭该用户的调试信息输出开关,不会影响其它用户的调试。当所有用户停止调试之后,请不要忘记停止全部调试功能。</P>
      <H3><BIG>10.2</BIG> Quidway<SUP>(R)</SUP>系列路由器支持的调试功能</H3>
      <P>Quidway<SUP>(R)</SUP>系列路由器支持的调试功能包括: 
      <UL type=disc>
        <LI>debug arp 
        <LI>debug backup 
        <LI>debug dialer 
        <LI>debug ethernet-interface 
        <LI>debug filter 
        <LI>debug frame-relay lmi 
        <LI>debug frame-relay packet 
        <LI>debug ip bgp 
        <LI>debug ip cache 
        <LI>debug ip icmp 
        <LI>debug ip igrp 
        <LI>debug ip ospf event 
        <LI>debug ip ospf lsa 
        <LI>debug ip ospf packet 
        <LI>debug ip ospf spf 
        <LI>debug ip packet 
        <LI>debug ip rip 
        <LI>debug ip routing 
        <LI>debug ip rtpro 
        <LI>debug ipx 
        <LI>debug isdn 
        <LI>debug l2tp all 
        <LI>debug l2tp control 
        <LI>debug l2tp dump 
        <LI>debug l2tp error 
        <LI>debug l2tp event 
        <LI>debug lapb 
        <LI>debug modem 
        <LI>debug nat 
        <LI>debug ppp packet 
        <LI>debug radius event 
        <LI>debug radius packet 
        <LI>debug radius primitive 
        <LI>debug slip packet 
        <LI>debug tcp 
        <LI>debug telnet 
        <LI>debug udp 
        <LI>debug x25 all 
        <LI>debug x25 data 
        <LI>debug x25 event </LI></UL>
      <H4><A name="10.2.1 debug arp"><BIG>10.2.1 debug arp</BIG></A></H4>
      <P>打开或关闭ARP调试开关。</P>
      <P>[ <B>no</B> ] <B>debug arp</B></P>
      <P><FONT size=3>【缺省情况】</FONT></P>
      <P>系统缺省关闭ARP调试开关。</P>
      <P><FONT size=3>【命令模式】</FONT></P>
      <P>特权用户模式</P>
      <P><FONT size=3>【使用指南】</FONT></P>
      <P>该开关打开后实时显示对ARP映射表的操作。当ARP映射表有变化时,系统会即时地给出提示指出ARP映射表的变化情况。</P>
      <P><FONT size=3>【举例】</FONT></P>
      <P>Quidway#debug arp</P>
      <P><FONT size=3>【相关命令】</FONT></P>
      <P><B>arp</B>,<B>monitor</B>,<B>debug all,show debugging</B></P>
      <H4><A name="10.2.2 debug backup"><BIG>10.2.2 debug backup</BIG></A></H4>
      <P>打开或关闭备份中心调试信息开关。</P>
      <P>[<B> no </B>]<B> debug backup </B>{ <B>event</B> | <B>packet</B> }</P>
      <P><FONT size=3>【参数说明】</FONT></P>
      <P><B>event</B> 为备份中心事件调试信息开关。</P>
      <P><B>packet</B> 为备份中心报文调试信息开关。</P>
      <P><FONT size=3>【缺省情况】</FONT></P>
      <P>系统缺省关闭备份中心调试信息开关。</P>
      <P><FONT size=3>【命令模式】</FONT></P>
      <P>特权用户模式</P>
      <P><FONT size=3>【使用指南】</FONT></P>
      <P>如果打开备份中心事件调试信息开关,则输出备份中心主备接口切换时的一些信息;如果打开备份中心报文调试信息开关,则输出备份中心发出报文的信息。所有信息均以“backup:”开头,有助于用户进行备份中心故障诊断。</P>
      <P><FONT size=3>【举例】</FONT></P>
      <P>Quidway#debug backup event</P>
      <P><FONT size=3>【相关命令】</FONT></P>
      <P><B>monitor</B>,<B>debug all </B>,<B>show debugging</B></P>
      <H4><A name="10.2.3 debug dialer"><BIG>10.2.3 debug dialer</BIG></A></H4>
      <P>打开或关闭DDR调试信息开关。</P>
      <P>[<B> no </B>]<B> debug dialer </B>{<B> event</B> | <B>packet</B> }</P>
      <P><FONT size=3>【参数说明】</FONT></P>
      <P><B>event</B> 为DDR事件调试信息开关。</P>
      <P><B>packet</B> 为DDR报文调试信息开关。</P>
      <P><FONT size=3>【缺省情况】</FONT></P>
      <P>系统缺省关闭DDR调试信息开关。</P>
      <P><FONT size=3>【命令模式】</FONT></P>
      <P>特权用户模式</P>
      <P><FONT size=3>【使用指南】</FONT></P>
      <P>如果打开DDR事件调试信息开关,则会输出DDR拨号时的一些信息;如果打开DDR报文调试信息开关,则会输出DDR收发报文的信息。所有信息均以“DDR:”开头,有助于用户进行DDR故障诊断。</P>
      <P><FONT size=3>【举例】</FONT></P>
      <P>Quidway#debug dialer event</P>
      <P><FONT size=3>【相关命令】</FONT></P>
      <P><B>monitor</B>,<B>debug all,show debugging</B></P>
      <H4><A name="10.2.4 debug ethernet-interface"><BIG>10.2.4 debug 
      ethernet-interface</BIG></A></H4>
      <P>打开或关闭以太网接口调试信息开关。</P>
      <P>[ <B>no</B> ] <B>debug ethernet-interface</B></P>
      <P><FONT size=3>【缺省情况】</FONT></P>
      <P>系统缺省关闭以太网接口调试信息开关。</P>
      <P><FONT size=3>【命令模式】</FONT></P>
      <P>特权用户模式</P>
      <P><FONT size=3>【使用指南】</FONT></P>
      <P>打开该调试开关后,将动态显示以太网口接收和发送的数据包的帧格式、源MAC地址、目的MAC地址以及数据包的类型等。 
      <UL type=disc>
        <LI>发送数据包的调试信息 
        <P>Send a Ethernet_II frame.</P>
        <P>Its Destination MAC address is:00-a0-b9-00-22-d9</P>
        <P>Its Source MAC address is:00-e0-fc-01-04-86</P>
        <LI>接收数据包的调试信息 
        <P>Receive a Ethernet_II frame.</P>
        <P>It's Destination MAC address is:ff-ff-ff-ff-ff-ff</P>
        <P>It's Source MAC address is:00-06-29-21-98-33</P>
        <P>It's a ARP datagram</P></LI></UL><FONT size=3>
      <P>【举例】</P></FONT>
      <P>Quidway#debug ethernet-interface</P>
      <P><FONT size=3>【相关命令】</FONT></P>
      <P><B>monitor</B>,<B>debug all,show debugging</B></P>
      <H4><A name="10.2.5 debug filter"><BIG>10.2.5 debug filter</BIG></A></H4>
      <P>打开或关闭防火墙包过滤调试信息开关。</P>
      <P>[ <B>no</B> ] <B>debug filter</B> { <B>all</B> | <B>icmp</B> | 
      <B>tcp</B> | <B>udp</B> }</P>
      <P><FONT size=3>【参数说明】</FONT></P>
      <P><B>all</B> 表示全部防火墙调试信息开关。</P>
      <P><B>icmp</B> 表示有关ICMP包过滤的调试信息开关。</P>
      <P><B>tcp</B> 表示有关TCP包过滤的调试信息开关。</P>
      <P><B>udp</B> 表示有关UDP包过滤的调试信息开关。</P>
      <P><FONT size=3>【缺省情况】</FONT></P>
      <P>系统缺省关闭防火墙全部调试信息开关。</P>
      <P><FONT size=3>【命令模式】</FONT></P>
      <P>特权用户模式</P>
      <P><FONT size=3>【使用指南】</FONT></P>
      <P>[<B> no</B> ] <B>debug filter all</B> 
      命令可以控制另外三个防火墙的调试信息开关,同时也用于打开一些防火墙其它信息的调试开关,如对于其它协议(如OSPF)报文输出相应调试信息。调试信息输出格式:</P>
      <P>接口名 InBound Packet: (<I>协议号</I>, <I>源地址</I>, <I>目的地址</I>, <I>源端口</I>, 
      <I>目的端口</I>, <I>报文大小</I>) accepted by access-list <I>规则序号</I> .</P>
      <P>接口名 OutBound Packet: (<I>协议号</I>, <I>源地址</I>, <I>目的地址</I>, <I>源端口</I>, 
      <I>目的端口</I>, <I>报文大小</I>) accepted by default.</P>
      <P>在协议为ICMP时,源端口表示该ICMP报文的类型(Type),目的端口表示报文的码(Code);在报文的协议类型不是TCP、UDP或ICMP时,源端口与目的端口没有意义。</P>
      <P><FONT size=3>【举例】</FONT></P>
      <P>Quidway#debug filter tcp</P>
      <P><FONT size=3>【相关命令】</FONT></P>
      <P><B>monitor</B>,<B>debug all,show debugging</B></P>
      <H4><A name="10.2.6 debug frame-relay lmi"><BIG>10.2.6 debug frame-relay 
      lmi</BIG></A></H4>
      <P>打开或关闭帧中继本地管理调试信息开关。</P>
      <P>[ <B>no</B> ] <B>debug frame-relay lmi</B></P>
      <P><FONT size=3>【缺省情况】</FONT></P>
      <P>系统缺省为关闭帧中继本地管理调试信息开关。</P>
      <P><FONT size=3>【命令模式】</FONT></P>
      <P>特权用户模式</P>
      <P><FONT size=3>【使用指南】</FONT></P>
      <P>以下举例说明帧中继本地管理调试信息的格式。</P>
      <P>Serial0(in): Status</P>
      <P>RT Len = 1, Type = Full</P>
      <P>LIV Len = 2, SSN = 50, RSN = 46, PVCs = 1</P>
      <P>Serial0(out): Status Enquiry</P>
      <P>RT Len = 1, Type = LIV-only</P>
      <P>LIV Len = 2, SSN = 47, RSN = 50</P>
      <P>其中: 
      <UL type=disc>
        <LI>Serial0 ——为接口名 
        <LI>in 和 out —— 分别表示接收和发送的报文。 
        <LI>Status 和Status Enquiry —— 表示报文的消息类型。 
        <LI>Status Enquiry 表示“状态查询”消息类型,在DTE侧,每隔一定时间发送该类型的报文去查询虚电路状态; 
        <LI type=disc>Status表示“状态”消息类型,在DCE侧,使用该类型的报文报告虚电路的状态。 
        <LI>RT ——表示报文的报告类型。报告类型有三种: 
        <LI type=disc>Full:该类型表示将报告所有的虚电路状态。 
        <LI type=disc>LIV-only:该类型表示将只报告链路的完整性。 
        <LI type=disc>Asyn-only:该类型表示将只报告几个(非全部)虚电路状态。 
        <LI>LIV —— 表示链路的完整性。它通过SSN 和RSN的值来检验链路的完整性。 
        <LI>SSN 和RSN——分别表示发送系列号和接收系列号。我们从上面的调试信息中可以看出: 发送的Status 
        Enquiry报文中RSN等于刚接收到的Status报文中SSN。 </LI></UL>
      <P><FONT size=3>【举例】</FONT></P>
      <P>Quidway#debug frame-relay lmi</P>
      <P><FONT size=3>【相关命令】</FONT></P>
      <P><B>monitor</B>,<B>debug all,show debugging</B></P>
      <H4><A name="10.2.7 debug frame-relay packet"><BIG>10.2.7 debug 
      frame-relay packet</BIG></A></H4>
      <P>打开或关闭帧中继报文调试信息开关。</P>
      <P>[ <B>no</B> ] <B>debug frame-relay packet</B></P>
      <P><FONT size=3>【缺省情况】</FONT></P>
      <P>系统缺省关闭帧中继报文调试信息开关。</P>
      <P><FONT size=3>【命令模式】</FONT></P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -