********************************************************** * * * Welcome to ROM Monitor for WS-X4014 System. * * Copyright (c) 1999-2000, 2001 by Cisco Systems, Inc. * * All rights reserved. * * * ********************************************************** !--- Output suppressed.
Press RETURN to get started! !--- Press Return.
00:00:21: %SYS-5-RESTART: System restarted -- Cisco Internetwork Operating System Software IOS (tm) Catalyst 4000 L3 Switch Software (cat4000-IS-M), Version 12.1(8a)EW, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 1986-2002 by cisco Systems, Inc. Compiled Thu 24-Jan-02 17:34 by ccai 00:00:21: %SNMP-5-COLDSTART: SNMP agent on host Switch is undergoing a cold start Switch> Make sure that the configuration register value is 0x2142. This value makes the module boot from Flash without a load of the saved configuration. Issue the enable command at the Switch prompt to go to enable mode. Then, issue the show version command to check the configuration register value. Switch> enable Switch#show version Cisco Internetwork Operating System Software IOS (TM) Catalyst 4000 L3 Switch Software (cat4000-IS-M), Version 12.1(8a)EW, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 1986-2002 by cisco Systems, Inc. Compiled Thu 24-Jan-02 17:34 by ccai Image text-base: 0x00000000, data-base: 0x00AA2B8C
ROM: 12.1(10r)EY(1.21) Switch uptime is 5 minutes System returned to ROM by reload Running default software
cisco WS-C4006 (MPC8245) processor (revision 7) with 262144K bytes of memory. Processor board ID FOX04183666 Last reset from Reload 32 Gigabit Ethernet/IEEE 802.3 interface(s) 467K bytes of non-volatile configuration memory.
Configuration register is 0x2142 ///0x2142 :从FLASH中启动,但不使用NVRAM中的配置文件;也就是带有原来开机密码的NVRAM文件
Switch# Issue the configure memory command or the copy startup-config running-config command to copy the NVRAM into memory. Do not issue the configure terminal command, which shows the default configuration on the module. Switch#configure memory 将以前的配置重新加载
Uncompressed configuration from 1307 bytes to 3014 bytes Switch# 00:13:52: %SYS-5-CONFIG_I: Configured from memory by console c-4006-SUPIII# Issue the show ip interface brief command to make sure that the interfaces that were in use earlier show an "up up" status. If any of the interfaces that were in use before the password recovery show "down", issue the no shutdown command on that interface to bring the interface up. Issue the write terminal command or the show running-config command to display the saved configuration on the module. c-4006-SUPIII#show running-config Building configuration...
Current configuration : 3014 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption service compress-config ! hostname c-4006-SUPIII ! boot system flash bootflash: ! vtp mode transparent !--- Output suppressed.
line con 0 stopbits 1 line vty 0 4 login ! end
c-4006-SUPIII# Now you are ready to change the password on the module. Issue these commands to change the password: c-4006-SUPIII#configure terminal Enter configuration commands, one per line. End with CNTL/Z. c-4006-SUPIII(config)#no enable secret ///在这里关闭使能密码,使原来的配置里的密码彻底失效。 !--- This step is necessary if the switch had an enable !--- secret password.
c-4006-SUPIII(config)#enable secret < password > [Choose a strong password with at least one capital letter, one number, and one special character.] !--- This command sets the new password.
Make sure that you change the configuration register value back to 0x2102. Complete these steps at the config prompt to change and verify the configuration register value. c-4006-SUPIII(config)#config-register 0x2102 ///将交换机的启动模式,再改为默认状态,也就是启动需要从NVRAM里去读取之前最后一次保存的配置
c-4006-SUPIII(config)# ^Z c-4006-SUPIII# 00:19:01: %SYS-5-CONFIG_I: Configured from console by console c-4006-SUPIII#write memory !--- This step saves the configuration.
Building configuration... Compressed configuration from 3061 bytes to 1365 bytes[OK] c-4006-SUPIII#show version !--- This step verifies the value change.
Cisco Internetwork Operating System Software IOS (TM) Catalyst 4000 L3 Switch Software (cat4000-IS-M), Version 12.1(8a)EW, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 1986-2002 by cisco Systems, Inc. Compiled Thu 24-Jan-02 17:34 by ccai Image text-base: 0x00000000, database: 0x00AA2B8C
ROM: 12.1(10r)EY(1.21) c-4006-SUPIII uptime is 20 minutes System returned to ROM by reload Running default software
cisco WS-C4006 (MPC8245) processor (revision 7) with 262144K bytes of memory. Processor board ID FOX04183666 Last reset from Reload 32 Gigabit Ethernet/IEEE 802.3 interface(s) 467K bytes of nonvolatile configuration memory.
Configuration register is 0x2142 (will be 0x2102 at next reload)
c-4006-SUPIII# At this point, you have changed the password. |