关键词不能为空

当前您在: 主页 > 英语 >

cisco调试用命令大全

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-13 04:43
tags:

-

2021年2月13日发(作者:fools)


Cisco


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



?


Cisco


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




?




1



sho w


命令:





1




全局命令:





show version


;显示 系统硬件和软件版本、


DRAM



Fl ash




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


缺省的


Ethe rnet


封装方法是


ARPA




show ip interface e0/1


;显示指定接口的


TCP/IP


配置信息





3




进程相关命令





show processes cpu

< br>;显示路由器


CPU


的使用率和当前的进程





show processes memory


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





4



TCP/IP


协议相关命令





Show ip access-list


;显示


IP


访问列表(


1-1 99






Show iparp


;显示路由器的


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 datetimemseclocaltime




Router#service timestamp log datetimemseclocaltime




缺省,


error


< br>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#debugip packet detail 101




2




全局< /p>


debug


命令:





3




接口


debug




4




协议


debug




5



IP debug




debugip packets


?




3



log ging


命令





输出


error

和其它信息到


console



t erminal


、路由器内部


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


、< /p>


buffer



logging


被设置为


debugging


级,



trap



syslog



服务器的


logging

< p>
被设置为


informational.




4


、执行路由核心复制





core


dump


包含一份当前系统内存中信息的精确拷贝。


捕捉包含 在内存中信息的方法有:





1




配置路由器在崩溃时执行


Core Dump

< br>,存储到


TFTP



FTP



RCP


服务器:






TFT P


协议,只需指定


TFTP


服务器


IP


,不需要任何附加的配置:





Router


config



#except ion dump 192.168.1.1



TFTP


服务器的


IP


地址






FTP


协议的配置:



Router(config)#exception dump 192.168.1.1



FTP


服 务器的


IP


地址



Router(config)#ip ftp username Kevin


Router(config)#ip ftp password aloha


Router(config)#ip ftp source-interface e0


Router(config)#exception protocol ftp




RCP


协议的配置:



Router(config)#exception protocol rcp


Router(config)#exception dump 192.168.1.1



RCP


服 务器的


IP


地址



Router(config)#iprcmd remote-username Kevin


Router(config)#iprcmdrcp-enable


Router(config)#iprcmdrsh-enable


Router(config)#iprcmd remote-host Kevin 192.168.1.1 kevin






2




在系统没有崩溃的情况下,执行


Core Dump


命令。





Router#write core




Core Dump


仅在


Cisco


工程师测试和解决路由器问题时有用 。





< /p>


5



ping


命 令





pi ng


用于测试整个网络可达性和连通性。


可在用户


EXEC


模式和特权


EXEC


模式下使用。





IP



ping


使用


ICMP


协议提供连通性和可能性信息,缺省只发送

5



echo


信息。





扩展


Ping


的选项有:源


IP


地 址;服务类型;数据;包头选项。





Ping


的响应字符集



! Received an echo-reply message Q Source quench


. Timeout M Unable to fragment


U/H Destination unreachable A Administratively denied


N Network unreachable ? Unknown packet-type


P Protocol unreachable



4


、执行路由核心复制



core dump


包含一份当前系统内存中信息的精确拷贝。 捕捉包含在内存中信息的方法有:



1




配置路由器在崩溃时执行


Core Dump

< br>,存储到


TFTP



FTP



RCP


服务器:




TFTP


协议,只需指定

< p>
TFTP


服务器


IP


,不 需要任何附加的配置:



Router(config)#exception dump 192.168.1.1



TFTP


服务器的


IP


地址




FTP


协议的配置:



Router(config)#exception dump 192.168.1.1



FTP


服 务器的


IP


地址



Router(config)#ip ftp username Kevin


Router(config)#ip ftp password aloha


Router(config)#ip ftp source-interface e0


Router(config)#exception protocol ftp



RCP


协议的配置:



Router(config)#exception protocol rcp


Router(config)#exception dump 192.168.1.1



RCP


服务器的


IP


地址



Router(config)#iprcmd remote-username Kevin


Router(config)#iprcmdrcp-enable


Router(config)#iprcmdrsh-enable


Router(config)#iprcmd remote-host Kevin 192.168.1.1 kevin




2




在系统没有崩溃的情况下,执行


Core Dump


命令。



Router#write core


Core Dump


仅在


Cisco


工程师测试和解决路由 器问题时有用。



5



ping


命令



ping


用于测试整个网络可达性和连通性。可在用户


EXEC


模式和特权


EXEC


模式下使用。



IP



ping


使用


ICMP


协议提供连通性和可能性信息, 缺省只发送


5



echo


信息。



扩展


Ping< /p>


的选项有:源


IP


地址;服务类型;数据 ;包头选项。



Ping


的响应字符集



字符



解释



字符



解释



! Received an echo-reply message Q Source quench


. Timeout M Unable to fragment


U/H Destination unreachable A Administratively denied


N Network unreachable ? Unknown packet-type


P Protocol unreachable


6



traceroute


命令



traceroute


用于显示到达目标的包路径。可在用户模式和特权模式下 使用。



Traceroute


的响应:



字符



解释



字符



解释



Xx msec The RTT for each packet * Timeout


H Host unreachable U Port unreachable


N Network unreachable P Protocol unreachable


A Administratively denied Q Source quench


? Unknown packet type


二、


LAN


连接问题



1


、获得


IP


地址


主机可以动态或静态获得


IP


地址。



1



DHCP



DHCP



BootP

< p>
多了地址池和租期。



2



BootP




3



Helper Address es


:指定集中放置的


DHCP


服务器 的


IP


地址


-


-


-


-


-


-


-


-



本文更新与2021-02-13 04:43,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/648164.html

cisco调试用命令大全的相关文章