ယခင္အပိုင္းမွာ IOS Image ႏွင့္ Configuration File ေတြကို hidden (secure) လုပ္ၿပီးခဲ့ပါၿပီ…
ယခုအပိုင္းမွာ restoration ကိုေျပာပါမယ္… Configuration File ကေနစပါမယ္…
Configuration File ကို မေတာ္တဆ ဖ်က္မိၿပီဆိုပါစို႔… device က reload ျဖစ္တဲ့အခါ default configuration file ႏွင့္သာ boot တက္လာပါတယ္… resilent feature ကိုလည္း disable အေနနဲ႔ေတြရပါတယ္…
Router# erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
Router# show startup-config
startup-config is not present
Router# reload
System configuration has been modified. Save? [yes/no]: n
Proceed with reload? [confirm]
...
Router> enable
Router# show secure bootset
%IOS image and configuration resilience is not active
Restoration ကိုစလုပ္ပါမယ္… first, secure လုပ္ထားတဲ့ configuration file ကို flash ေပၚကို အရင္ extract လုပ္ရပါတယ္… second, extract လုပ္ၿပီးတဲ့ configuration file ကို running configuration ႏွင့္ အစားထိုးရပါတယ္… third, အားလံုးၿပီးတဲ့အခါ save လုပ္ရန္ အေရးႀကီးပါတယ္။
Router(config)# secure boot-config restore flash:archived-config
ios resilience:configuration successfully restored as flash:archived-config
Router(config)# ^C
Router# configure replace flash:archived-config
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]: y
Total number of passes: 1
Rollback Done
Router# copy run start
သတိထားရမွာက resilent feature ကို update ျပန္လုပ္ေပးဖို႔လိုပါတယ္… အဲဒီအတြက္ အရင္ resilent configuration file ကိုဖ်က္ၿပီးမွ update လုပ္ရပါတယ္။
Router(config)# no secure boot-config
%IOS_RESILIENCE-5-CONFIG_RESIL_INACTIVE: Disabled secure config archival [removed
flash:.runcfg-20101017-020040.ar]
Router(config)# secure boot-config
%IOS_RESILIENCE-5-CONFIG_RESIL_ACTIVE: Successfully secured config archive
[flash:.runcfg-20101017-024745.ar]
IOS ကေတာ့ configuration file restore လုပ္တာနဲ႔မတူတာ ေတြ႔ရပါတယ္… flash ကို format လုပ္ၿပီးသည့္တိုင္ secure-image လုပ္ထားတဲ့အတြက device က normal အတိုင္ reboot တက္လာပါတယ္…
Router# format flash:
Format operation may take a while. Continue? [confirm]
Format operation will destroy all data in "flash:". Continue? [confirm]
Writing Monlib sectors...
Monlib write complete
Format: All system sectors written. OK...
Format: Total sectors in formatted partition: 250848
Format: Total bytes in formatted partition: 128434176
Format: Operation completed successfully.
Format of flash: complete
Router# dir
Directory of flash:/
No files in directory
128237568 bytes total (104640512 bytes free)
Router# reload
Proceed with reload? [confirm]
*Oct 17 02:37:37.127: %SYS-5-RELOAD: Reload requested by console. Reload Reason
: Reload Command.
System Bootstrap, Version 12.3(8r)YH8, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2006 by cisco Systems, Inc.
C1800 platform with 131072 Kbytes of main memory with parity disabled
Upgrade ROMMON initialized
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
program load complete, entry point: 0x80012000, size: 0x167e724
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, C181X Software (C181X-ADVIPSERVICESK9-M), Version 12.4(24)T,
RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Thu 26-Feb-09 03:22 by prod_rel_team
...
Router> enable
Password:
Router# dir
Directory of flash:/
No files in directory
128237568 bytes total (104640512 bytes free)
Router# show version
Cisco IOS Software, C181X Software (C181X-ADVIPSERVICESK9-M), Version 12.4(24)T,
RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Thu 26-Feb-09 03:22 by prod_rel_team
...
ref: http://packetlife.net
9/12/2011
No comments:
Post a Comment