取消
显示结果 
搜索替代 
您的意思是: 
cancel
4191
查看次数
60
有帮助
8
评论
suzhouxiaoniu
Spotlight
Spotlight
本帖最后由 suzhouxiaoniu 于 2020-10-15 12:51 编辑
Xmodem file system is available.
The password-recovery mechanism is enabled.
The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:
flash_init
boot
switch:
switch:
switch:
switch:
switch:
switch: flash_init
Initializing Flash...
flashfs[0]: 7 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 15998976
flashfs[0]: Bytes used: 8134144
flashfs[0]: Bytes available: 7864832
flashfs[0]: flashfs fsck took 18 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
switch:
switch: dir flash:
Directory of flash:/
2 -rwx 8127303 c3550-ipservices-mz.122-44.SE6.bin
3 -rwx 0 system_env_vars
4 -rwx 5 private-config.text
5 -rwx 0 env_vars
6 -rwx 2169 config.text
7 -rwx 1048 multiple-fs
8 -rwx 556 vlan.dat
7864832 bytes available (8134144 bytes used)
switch: rename flash:config.text flash:config.old
switch:
switch: boot
Loading "flash:/c3550-ipservices-mz.122-44.SE6.bin"...####################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
File "flash:/c3550-ipservices-mz.122-44.SE6.bin" uncompressed and installed, entry point: 0x3000
executing...
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, C3550 Software (C3550-IPSERVICES-M), Version 12.2(44)SE6, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Mon 09-Mar-09 14:35 by gereddy
Image text-base: 0x00003000, data-base: 0x00FE0360
Initializing flashfs...
flashfs[1]: 7 files, 1 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 15998976
flashfs[1]: Bytes used: 8134144
flashfs[1]: Bytes available: 7864832
flashfs[1]: flashfs fsck took 9 seconds.
flashfs[1]: Initialization complete.
...done Initializing flashfs.
POST: CPU Buffer Tests : Begin
POST: CPU Buffer Tests : End, Status Passed
POST: CPU Interface Tests : Begin
POST: CPU Interface Tests : End, Status Passed
POST: Switch Core Tests : Begin
POST: Switch Core Tests : End, Status Passed
POST: CPU Interface 2nd Stage Tests : Begin
POST: CPU Interface 2nd Stage Tests : End, Status Passed
POST: CAM Subsystem Tests : Begin
POST: CAM Subsystem Tests : End, Status Passed
POST: Ethernet Controller Tests : Begin
POST: Ethernet Controller Tests : End, Status Passed
POST: Loopback Tests : Begin
POST: Loopback Tests : End, Status Passed
Cisco WS-C3550-24 (PowerPC) processor (revision J0) with 65526K/8192K bytes of memory.
Processor board ID CAT0718X0Y5
Last reset from warm-reset
Running Layer2/3 Switching Image
Ethernet-controller 1 has 12 Fast Ethernet/IEEE 802.3 interfaces
Ethernet-controller 2 has 12 Fast Ethernet/IEEE 802.3 interfaces
Ethernet-controller 3 has 1 Gigabit Ethernet/IEEE 802.3 interface
Ethernet-controller 4 has 1 Gigabit Ethernet/IEEE 802.3 interface
24 FastEthernet interfaces
2 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
384K bytes of flash-simulated NVRAM.
Base ethernet MAC Address: 00:0C:CE:F9:94:80
Motherboard assembly number: 73-5700-10
Power supply part number: 34-0966-02
Motherboard serial number: CAT071805KU
Power supply serial number: LIT070800TC
Model revision number: J0
Motherboard revision number: A0
Model number: WS-C3550-24-EMI
System serial number: CAT0718X0Y5
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: n
Would you like to terminate autoinstall? [yes]: n
Press RETURN to get started!
*Mar 1 00:00:37.727: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
*Mar 1 00:00:39.307: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
*Mar 1 00:00:58.991: %SYS-5-RESTART: System restarted --
Cisco IOS Software, C3550 Software (C3550-IPSERVICES-M), Version 12.2(44)SE6, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Mon 09-Mar-09 14:35 by gereddy
*Mar 1 00:01:01.811: %LINK-3-UPDOWN: Interface FastEthernet0/1, change
Switch>
Switch>
Switch>d state to up
*Mar 1 00:01:01.819: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up
*Mar 1 00:01:01.855: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
*Mar 1 00:01:02.811: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
*Mar 1 00:01:02.847: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
*Mar 1 00:01:02.867: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to
Switch>up
*Mar 1 00:01:03.831: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
*Mar 1 00:01:04.811: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down
Switch>en
Switch#copy flash:config.old flash:config.text
Destination filename [config.text]?
Copy in progress...C
2169 bytes copied in 0.040 secs (54225 bytes/sec)
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no ena pass
Switch(config)#ena pass ccna
Switch(config)#line con 0
Switch(config-line)#no pass
Switch(config)#end
Switch#
Switch#
Switch#
*Mar 1 00:01:52.607: %SYS-5-CONFIG_I: Configured from console by consolecop
Switch#wr
Building configuration...
[OK]
评论
18653465190
Spotlight
Spotlight
如果再加上每一步的说明就更完美更香了。
谢谢楼主分享。
ilay
VIP
VIP
设备启动之后应该用 copy flash:config.old system:running-config
不执行这个copy的话,按照上面的配置wr之后整个设备只有一个enable密码设置
当然,如果单纯的想清空配置,可以直接在switch:模式下 delete flash:config.text 、 delete flash:vlan.dat
!
----
补充一下遗漏的点:
1、先按住mode 键然后再加电,大约10-15秒后松开能进入switch:模式,部分机型时间可能会久一点,可以看console的输出
2.如果想保留之前配置,仅修改console密码enable密码或vty的密码,需要将原有配置文件rename
flash_init
rename flash:config.text flash:config.old
boot
(swith: 模式下命令无法补全,需手动敲完整)
设备启动之后先进特权模式,然后执行以下操作
copy flash:config.old system:running-config
conf t
enable sec cisco
!
line con 0
no password //需要设置console密码执行password xxx 即可 xxx为自定义密码
!
line vty 0 4
password cisco
!
最后通过wr或者copy running-config startup-config 保存最新配置
3. 如果仅想清空当前设备配置,可将上面中的rename 命令更改为delete flash:config.text / delete flash:vlan.dat 执行完成之后boot启动即可
suzhouxiaoniu
Spotlight
Spotlight
gengchunlin 发表于 2020-10-15 10:48
设备启动之后应该用 copy flash:config.old system:running-config
不执行这个copy的话,按照上面的配置wr ...

补充的很及时,这个是试验机演示如何跳过密码的文件,没有其他配置
瞬间与永恒
Level 1
Level 1
gengchunlin 发表于 2020-10-15 10:48
设备启动之后应该用 copy flash:config.old system:running-config
不执行这个copy的话,按照上面的配置wr ...

谢谢大佬补充
ljti2007
Community Member
对,如果再加上每一步的说明就更完美更香了,而且是全系列吗?还是只是交换机?
谢谢楼主分享。
likuo
Spotlight
Spotlight
不错很好。
David Chou
Level 7
Level 7
感謝分享,優化設定
764963038cisco
Level 1
Level 1
好熟悉的界面和流程
入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接