首页 > 其他 > 详细

路由器的修改权限密码、还原出厂设置、备份配置文件和升级操作系统实际操作

时间:2015-03-23 22:05:56      阅读:306      评论:0      收藏:0      [点我收藏+]

1、恢复权限密码

1)在路由器输入以下命令设置一个密码。

Router>
Router>en
Router#config
Configuring from terminal, memory, or network [terminal]? 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#
Router(config)#ena
Router(config)#enable p
Router(config)#enable password 123456
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#write m
Router#write memory 
Building configuration...
[OK]

2)进入rommon模式下输入以下命令

Self decompressing the image :
##################
monitor: command "boot" aborted due to user interrupt
rommon 1 > confreg 0x2142
rommon 2 > reset

3)进入特权模式重新设置一个密码,输入以下命令

Router>
Router>en
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#
Router(config)#
Router(config)#ena
Router(config)#enable p
Router(config)#enable password njb
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#wr
Router#write m
Router#write memory
Building configuration...
[OK]

4)重新启动,进入正常模式

技术分享

2、还原出厂设置

在路由器特权模式输入命令如下:

Router#er
Router#erase st
Router#erase startup-config 
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Router#reload
Proceed with reload? [confirm]
%SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.

System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
Cisco 2621 (MPC860) processor (revision 0x200) with 253952K/8192K bytes of memory

Self decompressing the image :

3、备份配置文件

1)先连接下图。

技术分享

2)给服务器配置一个地址

技术分享

3)在路由器上输入以下命令。

Router(config)#in
Router(config)#interface f
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip ad
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown 
Router(config-if)#exit
Router(config)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#copy r
Router#copy running-config tftp
Address or name of remote host []? 192.168.1.2
Destination filename [Router-confg]?

Writing running-config....!!
[OK - 420 bytes]

420 bytes copied in 3.073 secs (0 bytes/sec)

4)备份成功

技术分享

4、升级系统

1)查看现有系统

技术分享

2)输入命令如下

Router#
Router#copy t
Router#copy tftp: f
Router#copy tftp: flash: 
Address or name of remote host []? 192.168.1.2
Source filename []? c2600-advipservicesk9-mz.124-15.T1.bin
Destination filename [c2600-advipservicesk9-mz.124-15.T1.bin]?

Accessing tftp://192.168.1.2/c2600-advipservicesk9-mz.124-15.T1.bin...
Loading c2600-advipservicesk9-mz.124-15.T1.bin from 192.168.1.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 33591768 bytes]

3)重启后查看如下显示说明升级成功。

技术分享

路由器的修改权限密码、还原出厂设置、备份配置文件和升级操作系统实际操作

原文:http://9982782.blog.51cto.com/9972782/1623544

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!