当前所在位置:珠峰网资料 >> 计算机 >> 软件水平 >> 正文
2015年软考网络管理员辅导笔记(5)
发布时间:2012/4/18 15:47:02 来源:www.xue.net 编辑:城市总裁吧
  第5章 Cisco测试命令和TCP/IP连接故障处理
  一、故障处理命令
  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
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved