Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#enable password 密码
Router(config)#hostname R学号
R21012470(config)#line console 0
R21012470(config-line)#password 密码
R21012470(config-line)#exec-timeout 1
R21012470(config-line)#exit
R21012470(config)#exit
R21012470#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
第二部分,忘记密码修改密码
重启Ctrl+Break 进入ROM监控状态
rommon 1 > confreg 0x2142
rommon 2 > reset
Continue with configuration dialog? [yes/no]: n
Router>en
Router#copy start run
R21012470#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R21012470(config)#line console 0
R21012470(config-line)#password 123456
R21012470(config-line)#exit
R21012470(config)#enable password 123456
R21012470(config)#exit
R21012470#
R21012470#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
R21012470#reload
重启Ctrl+Break 进入ROM监控状态
monitor: command "boot" aborted due to user interrupt
rommon 1 > confreg 0x2102
rommon 2 > reset