模式           命      令               作        用
r1> 用户模式
r1#enable进入特权执行模式
r1#configure terminal进入全局配置模式
r1(config-line)# history size n查看历史缓冲区大小
r1(config)#logging console打开终端日志功能
r1(config)#logging monitor向Telnet用户端发送日志信息
r1#copy running-config startup-config复制运行配置到启动配置文件
r1#copy startup-config running-config 复制启动配置文件到运行配置
r1#copy running-config tftp复制运行配置到TETP服务器 
r1#copy startup-config tftp复制启动配置文件TFTP服务器
r1#copy tftp running-config复制TFTP文件到运行配置
r1#copy tftp startup-config复制TFTP文件到启动配置文件
r1#copy flash tftp复制Flash中文件到TFTP服务器
r1#copy tftp flash复制TFTP服务器中文件到Flash
r1#reload重新启动路由器
r1#setup 进入setup模式
r1(config)#service password-encryption以乱码的形式保存密码
r1(config)#ip subnet-zero允许零子网
r1(config)#no ip domain-lookup关闭IP路由域名查找
r1(config)#ip classless无类查找(一种查找路由表的方式)
r1(config)#hostname host_name设置主机名
r1(config)#enable passwrod password设置enable口令
r1(config)#enable secret password设置加密的enable口令
r1(config)#banner motd配置路由器的提示信息
r1(config)#tftp-server flash:XXXXXX.bin使用路由器的tftp-server功能
r1(config)#config-register 0x2102更改配置寄存器值到0x2102
r1(config)#ip route network_number mask 加入静态路由
 [{ip_address\interface}] 
r1(config)#ip routing启动IP路由功能
r1(config)#no ip routing关闭IP路由功能
r1(config)#default interface +接口初始化接口
r1#write 保存当前配置running-config到nvram
r1#write erase清空nvram
r1#erase nvram清空nvram
r1#erase startup-config清空nvram
r1(config)#interface + 接口进入接口模式
r1(config-if)#description接口的标识的描述
r1(config-if)#ip address ip_address mask配置接口的IP地址
r1(config-if)#clock rate配置DCE端的时钟频率
r1(config-if)#bandwidth设置接口带宽
r1(config-if)#no shutdown激活接口
r1(config-if)#shutdown关闭接口
r1(config)#line con 0进入线模式
r1(config-line)#exec-timeout 0 0永不超时
r1(config-line)#logging synchronous系统输出信息同步
r1(config-line)#login 登陆路由器时提示输入密码
r1(config-line)#password password设置登陆路由器的密码
重启60秒内按break>o/r 0x2142    (2500系列)在ROM模式设置配置寄存器值到0x2142
重启60秒内按break>I             (2500系列)在ROM模式引导路由器启动
重启60秒内按break>confreg 0x2142 (2600系列)在ROM模式设置配置寄存器值到0x2142
重启60秒内按break>reset          (2600系列)在ROM模式引导路由器启动
常用检测命令
 
r1#show interface [type number]查看接口信息
r1#show ip interface [type number]查看接口IP参数设置的详细信息
r1#show ip interface brief查看所有接口IP地址的摘要信息
r1#show arp查看ARP缓存 
r1#show running-config查看运行配置(放在ram中)
r1#show startup-config 查看启动配置文件(放在nvram中)
r1#show ip route查看路由表
r1#show version查看版本信息
r1#show flash查看flash信息
r1#show history查看历史纪录
r1#show logging查看系统日志
r1#show debug查处打开的Debug项
r1#show sessions显示活动会话
r1#show controllers +接口显示串口是dce还是dte
r1#show line vty n显示线路信息
r1#debug arp监测ARP信息 
r1#debug ip packet监测IP包的有关信息
r1#no debug all关闭所有Debug操作
r1#undebug all关闭所有Debug操作
r1#  r1>ping ip_address 测试网络连通性
r1#  r1>traceroute ip_address测试到目的地的路径
任何模式ctrl-shift-6 ,x退出当前序列(即切换路由器)
r1>disconnect n中断1个活动会话(n表示第n个会话)