注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 华硕获奖方案 - 中小企业..
 帮助

命令


2006-12-01 22:18:38
 标签:命令   [推送到技术圈]

模式                                        
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个会话)


上一篇 小心  下一篇 网络工程投标书



    文章评论
 
2007-11-14 23:35:05
谢谢啊

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: