作者snoopykoei (炽天使)
看板Network
标题[问题] CISCO 2600密码回复?
时间Tue Jul 13 14:59:58 2010
CISCO 2600密码回复
请教这是Google找到的资料,如果我只要重设密码,不更改Router的所有设定适用吗?恳请版上高手指导?谢谢
我是以2611来做的,不过1600也适用。以下是我的做法,您可以参考一下,有实做成功喔!
一、先准备一条使用RJ45接头的连接线,连接Router的Console Port。
二、终端机使用以下设定
9600 baud rate
No parity
8 data bits
1 stop bit
No flow control
三、将Router开机,
System Bootstrap, Version 11.3(19)AA, EARLY DEPLOYMENT
RELEASE SOFTWARE (fc1)
Copyright (c) 1998 by cisco Systems, Inc.
C2600 processor with 32768 Kbytes of main memory
Main memory is configured to 32 bit mode with parity enabled
看到出现此讯息後,赶紧按下Ctrl+Break送出 Break,就会进到
ROMMON Mode。
四、在rommon>下输入confreg
rommon 1 > confreg
回答下列问题
Configuration Summary
enabled are:
load rom after netboot fails
console baud: 9600
boot: image specified by the boot system commands
or default to: cisco2-C2600
do you wish to change the configuration? y/n [n]: y-------回答Y
enable "diagnostic mode"? y/n [n]:
enable "use net in IP bcast address"? y/n [n]:
disable "load rom after netboot fails"? y/n [n]:
enable "use all zero broadcast"? y/n [n]:
enable "break/abort has effect"? y/n [n]:
enable "ignore system config info"? y/n [n]: y-------回答Y
change console baud rate? y/n [n]:
change the boot characteristics? y/n [n]: y-------回答Y
enter to boot:
0 = ROM Monitor
1 = the boot helper image
2-15 = boot system
[2]: 2-----要选2
五、rommon 2 > reset 重新启动 Router
--- System Configuration Dialog --- Router 会自动进入 Setup 选单
Would you like to enter the initial configuration dialog?
[yes/no]:
按 Ctrl-C 中断 Setup
六、Router 会进入一般模式
Router>enable 进入 Priviledged mode (不需输入任何密码)
Router#show startup-config 显示 NVRAM 里面的 Startup-Config
(显示结果省略)
七、将 Startup-Config 载入 DRAM
Router
#configure memory
八、 2611
#configure terminal----输入此命令进入设定模式
九:将 enable 的密码改为 cisco
2611(config)#enable secret cisco
十、将 Running-Config 写回 NVRAM
2611#copy running-config startup-config
2611#show version
Cisco Internetwork Operating System Software
(中间结果省略)
Configuration register is 0x2142 目前的 Configuration
Register 为 0x2142
十一、
2611
#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
2611(config)
#config-reg 0x2102 将 Configuration Register 改回来
2611(config)#^Z -----Ctrl+Z
2611#
00:01:54: %SYS-5-CONFIG_I: Configured from console by console
2611# reload 重新开机
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.130.172.1
1F:推 wst2080:可... 07/13 15:30
2F:推 wst2080:回覆x6xx系列的密码大同小异 不过25的系列有稍微一点差异 07/13 15:32
3F:推 wst2080:不过我记得 步骤好像没那麽多就是了... 07/13 15:34
4F:推 wst2080:不过对於第四项 我记得好像没有问这麽多的问题耶 07/13 15:37
5F:→ wst2080:针对第七项 我没过 config memory 我是使用 copy startup 07/13 15:37
6F:→ wst2080:-config running-config 这个指令 来对应第十项 07/13 15:38
7F:→ wst2080:而我的第十项 会偷懒 直接用 write ... XDDD 来写入 07/13 15:38
8F:→ wst2080:通常我都会使用no 指令 来把该行弄掉後 然後改 reg 的值 07/13 15:39
9F:→ wst2080:不过我的作法後面会有差一就是 我会改完reg之後 再来wr 07/13 15:40
10F:→ wst2080:之後才会reload 机器 07/13 15:40
11F:→ wst2080:这部份 应该是还好吧~ 这个要在机器的console端才有办法弄 07/13 15:41
12F:→ wst2080:无法使用telnet 等远端连线的方式来弄.... 07/13 15:41
13F:→ snoopykoei:所以这方法只改密码?不会更动到原设定是吗>m大,谢谢你 07/13 15:48
14F:推 wst2080:嗯啊 其实这个原理很简单啊 就是在boot的过程当中 07/13 16:09
15F:→ wst2080:跳过 loading startup-config 的流程而已啊 07/13 16:09
16F:→ wst2080:没载入startup-config 就是等於初始化的模式来运作啊 07/13 16:09
17F:→ wst2080:然後你再从nvram当中把startup-config的组态 merge 过来 07/13 16:11
18F:→ wst2080:这时候merge进来的 就是 running-config 啦 07/13 16:11
19F:→ wst2080:而你只针对 merge 进来的 enable 验证进行修改 07/13 16:12
20F:→ wst2080:修改过後 存档 并且把reg值改回 正常开机载入startup-conf 07/13 16:12
21F:→ wst2080:ig 的过程~ 之後再relad router啊 我想这样的解释应该很清 07/13 16:12
22F:→ wst2080:楚... 所以你别担心了~~~ 不过我的做法跟你稍微有差异 07/13 16:13
23F:→ wst2080:差异的地方我在上面说过了~~~ 我自己也在搞密码回复 07/13 16:13
24F:→ wst2080:这个就还好啦...至於Switch的部份 还得透过MODE搭配 07/13 16:13
25F:→ wst2080:MODE按键搭配 Router的密码回覆就还好啦 07/13 16:13