Router>
Router>logout 登出
Router#disable 返回用户模式
Router>enble进入全局模式
Router(config)#enble password ****** 明文登陆
Router(config)#enable secret ****** 密文登陆
Router# show Running-config 运行中的配置文件
Router#show startup-config 配置文件
Router#config terminal 进入全局配置模式
Route(config)r#hostname ***主机名
配置控制台密码
Router(config)#line console 0
Router(config-line)#password *****
Router(config-line)#Login 开启登陆验证的一个进程
配置路由器串口
Router(config)#show controller serial 0
Router(config)#interface serial 0
Router(config-if)#clock rate 64000
Router(config-if)# ip address 10.1.1.1 2555.255.255.0
Router(config-if)#no shutdown
配置虚拟终端
Router(config)#line vty 0 4
router(config-line)#password *****
router(config-line#)login 开启登陆验证的一个进程
配置用户本地数据库验证虚拟终端
Router(config)#line vty 0 4
Router(config-line)#login local
Rouer(config-line)#exit
Router(config)# username **** password **** Telnet须配置enable密码
router(config-line)#exec 0 5 控制台超时登出5分钟
Router(config-if)#logging synchronous 日志同步,重显被控制台打乱的输入
Router(config)# no ip domain loohup 关闭IP解析、对DNS的查找
Router#show ip interface brief 查看接口信息
Router(config)# interface gigabitEhternet 0/0
Router(config-if)#description ***(接口说明)
Router(config-if)# ip address 10.1.1.1 255.255.255.0 配置IP地址
Router(config-if)#no shutdown 启用接口
Router(config-if)#end
Router(config-if)#exit 登出接口状态
Router#show interface seiral 0(查看接口信息)接口状态
Router#show interface s0/0 查看某一接口信息
Router#show ip interface brief
Router(config)#show ip route 查路由表
Router# cdp run 启用CDP协议
Router# show cdp neighbors 查看邻居信息
Router# show cdp neighbors detail 查看更详细邻居信息
Router#show entry * 查看更详细信息
Router(config)#no cdp enbale 全局模式下禁止CDP
Routerconfig-if)#no cdp enbale 在接口模式下禁止CDP
备份IOS
Router#show flash
Router#copy flash:tftp:
Sourse filename [ ]? IOS名称
Address or name of remote host [ ]? TFTP服务器的IP地址
恢复IOS
Router#copy tftp:flash:
Address or name remote host [ ]? TFTP服务器IP地址
Sourse filename [ ]? IOS名称
恢复密码
按CTRL+Break中断Flash启动
ROMMON1>o/r 0x2142或confreg 0x2142
ROMMON2>boot或i
Router(config)#config-register 0x2102