Cisco系列网络设备测试命令大全

来源:考试大   【天天考试大,天天进步大!】   2007年8月22日

  1、show命令:

  1) 全局命令:

  show version ;显示系统硬件和软件版本、DRAM、Flash

  show startup-config ;显示写入NVRAM中的配置内容

  show running-config ;显示当前运行的配置内容

  show buffers ;详细输出buffer的名称和尺寸

  show stacks ;提供路由器进程和处理器利用率信息, 用stack decode

  show tech-support ;显示几个show命令的输出

  show access-lists ;查看访问列表配置

  show memory ;用于测试内存问题

  2) 接口相关命令

  show queueing [fair|priority|custom]

  show queue e0/1 ;查看接口上队列的设置和操作

  show interface e0/1 ;Cisco缺省的Ethernet封装方法是ARPA

  show ip interface e0/1 ;显示指定接口的TCP/IP配置信息

  3) 进程相关命令

  show processes cpu ;显示路由器CPU的使用率和当前的进程

  show processes memory ;显示路由器当前进程的内存使用情况

  4) TCP/IP协议相关命令

  Show ip access-list ;显示IP访问列表(1-199)

  Show ip arp ;显示路由器的ARP缓存(IP、MAC、封装类型、接口)

  Show ip protocols ;显示运行在路由器上的IP路由协议的信息

  Show ip route ;显示IP路由表中的信息

  Show ip traffic ;显示IP流量统计信息

  2、debug命令

  DEBUG不应在CPU使用率超过50%的路由器上运行。

  1) 限制debug输出

  在使用DEBUG获得所需数据后,要关闭Debug

  使路由器对所有消息都配置使用时间戳:

  Router#service timestamps debug datetime msec localtime

  Router#service timestamp log datetime msec localtime

  缺省,error和debug信息仅发送到console,telnet到路由器上看不到debug和log的信息。想在telnet中看到debug和log信息:

Router#terminal monitor
Router#terminal monitor ;关闭信息输出
Router#undebug all ;关闭debug进程及所有相关信息的输出 

  可以应用ACL到debug以限定仅输出要求的debug信息。

  如仅查看从10.0.1.1到10.1.1.1的ICMP包:

Router(config)#access-list 101 permit icmp host 10.0.1.1 host 10.1.1.1
Router#debug ip packet detail 101 

  2) 全局debug命令:

  3) 接口debug

  4) 协议debug

  5) IP debug

  debug ip packets

  3、logging命令

  输出error和其它信息到console、terminal、路由器内部buffer或一台syslog服务器:

  Router>show logging

  Cisco路由器有8种可能的logging级:0-7

  Logging级别 名称 描述

  1 Emergencies 系统不能用的信息

  2 Alerts 直接行动

  3 Critical 紧急情形

  4 Errors 错误信息

  5 Warnings 警告信息

  6 Notifications 正常但重要的情形

  7 Informational 信息

  8 Debugging 调试

  缺省地,console、monitor、buffer的logging被设置为debugging级,而trap(syslog)服务器的logging被设置为informational. 来源:考试大 - 思科认证考试

责编:drfcy  评论 纠错

上一页12下一页

相关文章

网友跟贴

暂无跟贴,欢迎您发表意见

 
 
跟贴共0
笔 名 :
网友评论仅供其表达个人看法,并不表明考试大同意其观点或证实其描述

考试大思科认证考试一周评论排行