First, the router to restore the factory settings
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) #interface f0/0
Router (config-if) #
Router (config-if) #ip address 192.168.1.1 255.255.255.0
Router (config-if) #no shutdown
%link-5-changed:interface fastethernet0/0, CHANGED state-to-up
Router (config-if) #
Router (config-if) #^z
router#
%sys-5-config_i:configured from console by console
router#
Router#erase Startup-config
Erasing the NVRAM filesystem would remove all configuration files! Continue? [Confirm]
[OK]
Erase of Nvram:complete
%sys-7-nv_block_init:initialized the geometry of NVRAM
router#
Router#reload
Proceed with reload? [Confirm]
%sys-5-reload:reload requested by console. Reload reason:reload Command.
System Bootstrap, Version 12.3 (8r) T8, RELEASE Software (FC1)
Cisco 1841 (Revision 5.0) with 114688k/16384k bytes of memory.
Self decompressing the Image:
########################################################################## [OK]
Restricted Rights Legend
---System Configuration Dialog---
Continue with Configuration dialog? [Yes/no]: N
Press RETURN to get started!
Router>
router>en
router#
Router#show Running-config
Hostname Router
!
Spanning-tree Mode Pvst
!
Interface fastethernet0/0
No IP address
Duplex Auto
Speed auto
Shutdown
End
Second, modify the privileged password
Router>
router>en
router#
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with cntl/z.
Router (config) #
Router (config) #enable password 123
Router (config) #^z
router#
%sys-5-config_i:configured from console by console
router#
Router#write Memory
Building configuration ...
[OK]
Router#reload
Proceed with reload? [Confirm]
%sys-5-reload:reload requested by console. Reload reason:reload Command.
##########
Monitor:command "Boot" aborted due to user interrupt
Rommon 1 > Confreg 0x2142
Rommon 2 > Reset
System Bootstrap, Version 12.1 (3r) T2, RELEASE Software (FC1)
Copyright (c) by Cisco Systems, Inc.
Cisco 2621 (MPC860) Processor (revision 0x200) with 253952k/8192k bytes of memory
Self decompressing the Image:
########################################################################## [OK]
Restricted Rights Legend
---System Configuration Dialog---
Continue with Configuration dialog? [Yes/no]: N
Press RETURN to get started!
Router>
router>en
router#
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with cntl/z.
Router (config) #enable p Sisco
Router (config) #^z
router#
%sys-5-config_i:configured from console by console
router#
Router#write Memory
Building configuration ...
[OK]
Router#reload
Proceed with reload? [Confirm]
%sys-5-reload:reload requested by console. Reload reason:reload Command.
Self decompressing the Image:
#######
Monitor:command "Boot" aborted due to user interrupt
Rommon 1 > Confreg 0x2102
Rommon 2 > Reset
System Bootstrap, Version 12.1 (3r) T2, RELEASE Software (FC1)
Copyright (c) by Cisco Systems, Inc.
Cisco 2621 (MPC860) Processor (revision 0x200) with 253952k/8192k bytes of memory
Self decompressing the Image:
########################################################################## [OK
This article is from the "it Female nerves" blog, so be sure to keep this source http://liyaqi.blog.51cto.com/9976294/1621592
Device Configuration Routing restore factory and modify privileged password