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

1、恢复厂家设置

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

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 :
########################################################################## [OK]
              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706

 

Cisco IOS Software, 2600 Software (C2600-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 06:21 by pt_rel_team
Image text-base: 0x60080608, data-base: 0x6270CD50

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
[email protected].
Cisco 2621 (MPC860) processor (revision 0x200) with 253952K/8192K bytes of memory
Processor board ID JAD05190MTZ (4292891495)
M860 processor: part number 0, mask 49
2 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
Cisco IOS Software, 2600 Software (C2600-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 06:21 by pt_rel_team

2、修改特权密码

 1)首先在PT模拟器上建一个路由器,设置一个密码。

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]
Router#

2)在重设密码之前要重新启动路由器,在启动没完成之前按ctrl+c键进入rommon模式,然后输入以下命令,复制原文件到空白系统:

wKiom1UP-t2S523SAAL0c_mCDxU406.jpg

3)重新设置密码,输入如下命令:

 wKioL1UP_XmCG40VAAIaO4p-1yU731.jpg

4)重新启动,再次进入rommon模式,进入正常模式,重新启动后需输入新密码。

wKiom1UP_aGRalD1AAK0n80Effk281.jpg

wKioL1UP_y3CRME-AAHnzJoVx-0328.jpg

3、备份配置文件

1)在PT模拟器上连接一个服务器和路由器,如下图所示。

wKiom1UPhY7Dp5a9AABOQKe7meU705.jpg

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

wKiom1UPhq6QJ8DmAAEW2V6bokQ675.jpg

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)备份成功。

wKioL1UPiAXRjKYBAAJ0NSHPPk4275.jpg

4、升级操作系统。

1)先查看现在的系统。

wKiom1UPiPDwnavVAAIxBdy2mhc170.jpg

2)输入命令如下。(注:在TFTP中有可以升级的系统,并且型号匹配才可升级。)

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]

33591768 bytes copied in 20.248 secs (174189 bytes/sec)
%Error copying tftp://192.168.1.2/c2600-advipservicesk9-mz.124-15.T1.bin (Not enough space on device)

3)完成命令后,重新启动再查看下系统,如图所示说明操作成功。

 wKiom1UP9gni6sQlAAM142oRS3Q475.jpg

 

你可能感兴趣的:(服务器,配置文件,interface,Address)