如果交换机的login密码忘记了咋办啊? bCK7!%# *n
别急别急,只要你有PC,有类似超级终端(Hyper Terminal)这样是终端程序,连接到交换机的console口,那么密码的恢复就简单了。 4?R.MZCqVl
Hc`mB7u
1.对于Catalyst 2900/3500XL系列来说: $SK5 m
拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到端口Port 1x的LED熄灭之后释放Mode按钮。 kO mM-
就这么简单,别告诉我你不知道Mode按钮在哪啊。 1a$Yl)^{?
3_w Nc '/
2.对于Catalyst 2940/2950L系列来说: .b#?4HJV
拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到STAT的LED熄灭之后释放Mode按钮。 Y(KOm
ofcxvpLU
3.对于Catalyst 2955系列来说: #+Z.Udl[
Catalyst 2955没有没有外部的Mode按钮,因此就不能使用之前的那种方法来进行密码恢复.在交换机启动时,对于Windows系列的PC,按下Ctrl+Break键;对于UNIX系列的工作站,按下Ctrl+C.如下: q"yE dzwU
C2955 Boot Loader (C2955−HBOOT−M) Version 12.1(0.0.514), CISCO DEVELOPMENT TEST 6"~^ylf
VERSION ]FQ;t^[^
Compiled Fri 13−Dec−02 17:38 by madison cqY>7K>X,
WS−C2955T−12 starting... bL`U3\0r
Base ethernet MAC Address: 00:0b:be:b6:ee:00 wjHo:)R>Mh
Xmodem file system is available. 8KJ(O{WKgc
jtMM ?Ht
Initializing Flash... "Yth!'N
flashfs[0]: 19 files, 2 directories ?|2t9\
flashfs[0]: 0 orphaned files, 0 orphaned directories +s Jo`o
flashfs[0]: Total bytes: 7741440 yZz! ?;0
flashfs[0]: Bytes used: 4510720 3&2n,kF~
flashfs[0]: Bytes available: 3230720 [1rS=dkQS
flashfs[0]: flashfs fsck took 7 seconds. eE1"} Q\
...done initializing flash. G6uh]%*2
Boot Sector Filesystem (bs:) installed, fsid: 3 m"/n+S ,5
Parameter Block Filesystem (pb:) installed, fsid: 4 6P.RO1
/---接下来交换机会在15秒内自动启动,等出现该信息之后,按下Ctrl+Break键或Ctrl+C键----/ &c- \)
4K!D+7Lo
The system has been interrupted prior to initializing the flash file system to finish ,"4]]m
loading the operating system software: W0\5wk @
flash_init /& dEp
load_helper K4jqBZV
bootswitch: [cwqt]RN
O)a[=te
接下来输入flash_init命令: sMr?`w;
switch:flash_init 4V /d4z
Initializing Flash... Z`$@]CZ
flashfs[0]: 143 files, 4 directories w t"i,b
flashfs[0]: 0 orphaned files, 0 orphaned directories vWkJ:dXqf<
flashfs[0]: Total bytes: 3612672 Mb""o>o
flashfs[0]: Bytes used: 2729472 H4(8p\V@
flashfs[0]: Bytes available: 883200 r59- "wj
flashfs[0]: flashfs fsck took 86 seconds 2juc>j}
....done Initializing Flash. U3/{m,(!
Boot Sector Filesystem (bs:) installed, fsid: 3 +. <FWrM}
Parameter Block Filesystem (pb:) installed, fsid: 4 ,3lTWMoZ
switch: 6\GY@
w3T_e[]1
接着输入load_helper命令: jL0QrOC
switch:load_helper sdic(a1j\
switch: K~c st=
-Xm!v9
再输入dir flash:命令显示交换机的文件系统: #bGiG"Jb0
switch:dir flash: Na?AV
Directory of flash:/ =#fk96'.]
2 −rwx 1803357 c3500xl−c3h2s−mz.120−5.WC7.bin QqadPsb'
4 −rwx 1131 config.text LmYHy~L
5 −rwx 109 info _Pgt~Gv
6 −rwx 389 env_vars K& +KOwL->
7 drwx 640 html i h o4
18 −rwx 109 info.ver t}s@]<m K
403968 bytes available (3208704 bytes used) V(+9;2w*
switch: G\< xrz
u->pnA~Pb
把配置文件重命名: ]vZQSNy;
switch:rename flash:config.text flash:config.old )_70o_4:
switch: $th)E2
&[LUHYDVJ
输入boot命令启动交换机: w }")W6N
switch:boot rt>Je|{7U
Loading "flash:c3500xl−c3h2s−mz.120−5.WC7.bin"...############################### ]b\0K!_
################################################################################ 7}BRI>:D!'
###################################################################### l"Y
File "flash:c3500xl−c3h2s−mz.120−5.WC7.bin" uncompressed and installed, entry po j`GZ/F?:
int: 0x3000 endKtX1I;E
executing... ?$sSNzJM
(略) ;D, IV@
5C)H|~St
不进入setup模式: "_ooL& O*
−−− System Configuration Dialog −−− Z"nwx {
At any point you may enter a question mark '?' for help. g>wwBs
Use ctrl−c to abort configuration dialog at any prompt. Z:=^UpJE
Default settings are in square brackets '[]'. *&ax iz^
Continue with configuration dialog? [yes/no]: n S$%t&
lu`WEV W
进入特权模式,恢复原始的配置文件: Rt k-KHv
Switch#rename flash:config.old flash:config.text :\hH-@[W)
Destination filename [config.text] {QsUGbG!
Switch# 'Ux(X +$
{Ye:tp+\
把配置文件保存在内存里: nK7V RL
Switch#copy flash:config.text system:running−config v+C2J1!P
Destination filename [running−config]? * ^33MxSM
1131 bytes copied in 0.760 secs cU*+"]w`~
Switch# 8(LQy0u[
{v%4782GYm
进入全局配置模式,取消密码设置: %Ym[WdZA
Switch(config)#no enable secret ([T$YH~L\
c+wg!~iG
保存配置: !tUr LKQ
Switch#write memory Fm-mqQNnw
Building configuration... C?__ GR-
[OK] AJX^; Zd
Switch# I ?
' Dag$l:
搞定了@_@ CaAM{ef%
4lv{6>Tdyz
4.对于Catalyst 3550/3750系列来说: HwyZ,*)
1.通过带有支持Xmodem协议的超级终端程序的PC连接到交换机的console口,把波特率设置为9600。 ImSX>,X+
2.拔掉交换机的电源。 G|&+:QV$x
3.按下交换机上的Mode按钮,与此同时,重新插上交换机的电源线。当交换机端口1X上的LED熄灭后可以松开Mode按钮1到2秒,之后将显示一些指示信息: 1g J\e8)
The system has been interrupted prior to initializing the flash file system. The following %q yH`rQ^
commands will initialize the flash file system, and finish loading the operating system ur8/:zm
software: 4q;r:A4F
flash_init +FR%UHg8
load_helper =<H5CNQO
boot 69;W3@
switch# y[6 E\+8B
4.初始化flash文件系统: YpvqU'3!D]
switch#flash_init ~vjjd8
5.加载帮助文件: tb )cj)}
switch#load_helper P@3*<K#
6.显示闪存里的内容: I5*82C
switch#dir flash: X[^iD#
7.重命名配置文件: }29Y,(OV
switch#rename flash:config.text flash:config.text.old "U:Ja
8.启动系统,并且如果提示进入setup模式,输入N: @%0#&2
switch#boot CBJ' A\g
Continue with the configuration dialog? [yes/no]: N +:8R/
9.进入特权模式,把配置文件名恢复为原始文件名: {OqVVvER?
Switch#rename flash:config.text.old flash:config.text V~*_, sy-
10.把配置文件写进内存: 5`JsVy.E1
Switch#copy flash:config.text system:running-config Hy?w<.G
Source filename [config.text]? ogh45)EeU\
Destination filename [running-config]? ahn+8 jy
11.进入全局配置模式更改密码: `+4vTR3B5\
Switch(config)#enable secret {password} cwLLqcsaKF
12.退出,并保存到startup-config文件里: XGw3 Ls<'7
Switch(config)#copy running-config startup-config {7=)'!07
a UT
其实有的时候硬件安全比软件安全还要重要些.不然人人都抗个本本,.连根线到console口去恢复密码了。 |