本帖最后由 天空之城 于 2009-11-19 17:05 编辑
迈普路由器在忘记密码的情况下,只有进入monitor进行清除,这个操作会同时把设备的配置清除,所以清除密码和清除配置是同一种命令,所以你一定要有之前的配置文件才可以。
先使用超级终端或者CRT通过配置线和路由器连接好。
1、进入monitor:
启动路由器,刚开始就会提示:
Monitor version x.x is Booting (press ctrl+c to enter monitor mode) ...
请在后面打点的时间内按ctrl+c进入到monitor模式,如时间超过了,重新开机按ctrl+c。
2、查看命令:
进入到monitor里面后,使用help命令查看monitor模式下的命令
Monitor:>help
如发现有dir[ectory] [dev name]命令,请转3进行操作,如没有发现 dir 这个命令,请转4进行操作,这一步选择很重要,否则操作失误有可能造成路由器不能正常启动,需要重写程序。
3、使用 dir 命令查看,会发现里面有一个startup文件,这个就是启动加载的配置文件。
Monitor:>dir
Listing Directory /flash:
-rwxrwxrwx 1 0 0 539 Apr 28 2008 startup
-rwxrwxrwx 1 0 0 158 Apr 23 2008 logging
-rwxrwxrwx 1 0 0 1234 Apr 17 2008 backup
使用del startup删除这个文件。确认,重启就可以了。
Monitor:>del startup
WARNING:
The Data of this file will be lost! if OS is deleted,the system will hangup!
Please confirm to continue?(Y/N)y
注意:在新的monitor版本里面使用del startup会提示失败,这个需要写全这个文件的路径。
如:Monitor:>del /flash/startup
4、如在monitor里面没有dir这个命令的时候,使用e d删除。e d 是erase date的意思。
Monitor:>e d
WARNING:
The Data of this file will be lost! if OS is deleted,the system will hangup!
Please confirm to continue?(Y/N)y
Monitor:>
help的信息:
d[mem] [<addr> [<cnt>]] - display memory
de[bug] - enable debug function
e[flash] <boot>|<rfa1>|<all> - erase bootrom, rfa1, or all on flash
g[rate] - get tty rate
h[elp] - help
l[boot] - download bootrom(hex) file into flash
lx[boot] - download bootrom(bin) file with xmodem protocol
lm[onitor] - erase and download monitor(hex) file into flash
no[debug] - disable debug function
r[un] - run applacation program
re[set] - reset
sh[owmac] - show outband mac address
s[rate] [<baud>] - set tty rate
ve[rsion] - display version number
w[word] <addr> <val> - write a word(32bit) val at addr
wb[yte] <addr> <val> - write a byte(8bit) val at addr
wh[alf] <addr> <val> - write a half-word(16bit) val at addr |