Cisco WS-C2960G-24TC-L відновити доступ
Завантаження конфігу відбувається з файла flash:config.text
Коли обладнання увімкнено затискаємо кнопку Mode на панелі світча, він уходить в ребут, відпускаємо кнопку.
Boot Sector Filesystem (bs) installed, fsid: 2
Base ethernet MAC Address: 00:24:f9:22:22:00
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: flash_init
Initializing Flash...
flashfs[0]: 528 files, 19 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 29898752
flashfs[0]: Bytes available: 2615296
flashfs[0]: flashfs fsck took 12 seconds.
...done Initializing Flash.

switch: ?
           ? -- Present list of available commands
        boot -- Load and boot an executable image
         cat -- Concatenate (type) file(s)
        copy -- Copy a file
      delete -- Delete file(s)
         dir -- List files in directories
  flash_init -- Initialize flash filesystem(s)
      format -- Format a filesystem
        fsck -- Check filesystem consistency
        help -- Present list of available commands
      memory -- Present memory heap utilization information
       mkdir -- Create dir(s)
        more -- Concatenate (display) file(s)
      rename -- Rename a file
       reset -- Reset the system
       rmdir -- Delete empty dir(s)
         set -- Set or display environment variables
      set_bs -- Set attributes on a boot sector filesystem
   set_param -- Set system parameters in flash
       sleep -- Pause (sleep) for a specified number of seconds
        type -- Concatenate (type) file(s)
 -- MORE --
       unset -- Unset one or more environment variables
     version -- Display boot loader version
Дивимось що є
switch: dir flash:
Directory of flash:/

    2  -rwx  8412                     config.old
    3  drwx  192                      c2960-lanbasek9-mz.122-44.SE
    8  -rwx  5321                     config.text.renamed
    9  -rwx  1048                     multiple-fs
   10  -rwx  9827106                  c2960-lanbasek9-mz.122-55.SE12.bin
   12  -rwx  9822428                  c2960-lanbasek9-mz.122-55.SE11.bin
   13  -rwx  4036                     vlan.dat.renamed
   14  -rwx  5                        private-config.text.renamed

2615296 bytes available (29898752 bytes used)
тут є два конфіги
config.old та config.text.renamed
завантажуємось без конфіга
switch: boot
Loading "flash:c2960-lanbasek9-mz.122-55.SE12.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File "flash:c2960-lanbasek9-mz.122-55.SE12.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, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE12, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Thu 28-Sep-17 02:53 by prod_rel_team
Image text-base: 0x00003000, data-base: 0x01900000

Initializing flashfs...

fsck: Disable shadow buffering due to heap fragmentation.
flashfs[1]: 528 files, 19 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 32514048
flashfs[1]: Bytes used: 29898752
flashfs[1]: Bytes available: 2615296
flashfs[1]: flashfs fsck took 3 seconds.
flashfs[1]: Initialization complete....done Initializing flashfs.

Checking for Bootloader upgrade.. not needed
POST: CPU MIC register Tests : Begin
POST: CPU MIC register Tests : End, Status Passed

POST: PortASIC Memory Tests : Begin
POST: PortASIC Memory Tests : End, Status Passed

POST: CPU MIC interface Loopback Tests : Begin
POST: CPU MIC interface Loopback Tests : End, Status Passed

POST: PortASIC RingLoopback Tests : Begin
POST: PortASIC RingLoopback Tests : End, Status Passed

POST: PortASIC CAM Subsystem Tests : Begin
POST: PortASIC CAM Subsystem Tests : End, Status Passed

POST: PortASIC Port Loopback Tests : Begin
POST: PortASIC Port Loopback Tests : End, Status Passed

Waiting for Port download...Complete


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

cisco WS-C2960G-24TC-L (PowerPC405) processor (revision E0) with 65536K bytes of memory.
Processor board ID FOC1313V222
Last reset from power-on
1 Virtual Ethernet interface
24 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.

64K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address       : 00:24:F9:22:22:00
Motherboard assembly number     : 73-22222-06
Power supply part number        : 341-22222-02
Motherboard serial number       : FOC1312222C
Power supply serial number      : DCA132222H2
Model revision number           : E0
Motherboard revision number     : A0
Model number                    : WS-C2960G-24TC-L
System serial number            : FOC2222V229
Top Assembly Part Number        : 800-26222-03
Top Assembly Revision Number    : B0
Version ID                      : V03
CLEI Code Number                : COM3G00222
Hardware Board Revision Number  : 0x01


Switch Ports Model              SW Version            SW Image
------ ----- -----              ----------            ----------
*    1 24    WS-C2960G-24TC-L   12.2(55)SE12          C2960-LANBASEK9-M


*Mar  1 00:00:48.494: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
*Mar  1 00:00:48.972: %SMI-5-CLIENT:  Smart Install Client feature is enabled. It is recommended to disable the Smart Ine
*Mar  1 00:00:50.172: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
*Mar  1 00:01:11.756: %SYS-5-RESTART: System restarted --
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE12, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Thu 28-Sep-17 02:53 by prod_rel_team


         --- System Configuration Dialog ---

Enable secret warning
----------------------------------
In order to access the device manager, an enable secret is required
If you enter the initial configuration dialog, you will be prompted for the enable secret
If you choose not to enter the intial configuration dialog, or if you exit setup without setting the enable secret,
please set an enable secret using the following CLI in configuration mode-
enable secret 0 
----------------------------------
Would you like to enter the initial configuration dialog? [yes/no]: no
Switch>ena
Switch#
Тепер є доступ до світча, маємо можливість відновити конфіг й змінити пароль
Switch#copy flash:config.old running-config
Destination filename [running-config]?
тепер можна змінити пароль та зберегти конфіг
в результаті отримаємо доступ до обладнання з попередніми налаштуваннями
You should to log in

loading