본문 바로가기

IT/network

시스코 스위치 초기화 - C3750

패스워드 복구 : 1~15 진행

공장초기화 : 16~17 진행

 

1. 콘솔 연결

 

2. 모드 버튼 누르고 전원 인가

   - 초록색 램프가 꺼질 때까지 모드 버튼을 누르고 있어야 합니다.(약 15초)

 

3. Flash 초기화

   - switch: flash_init

...더보기

Initializing Flash...
flashfs[0]: 423 files, 8 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 12366848
flashfs[0]: Bytes available: 20147200
flashfs[0]: flashfs fsck took 8 seconds.
...done Initializing Flash.

 

4. Flash 디렉토리 검색

   - switch: dir flash:

...더보기

Directory of flash:/

    2  -rwx  5                        private-config.text
    3  -rwx  2770                     config.text.renamed
    4  -rwx  1096                     vlan.dat.renamed
    5  -rwx  5                        private-config.text.renamed
    6  drwx  192                      c3750-ipbase-mz.122-50.SE5
  428  -rwx  156                      express_setup.debug
  429  -rwx  1048                     multiple-fs
  431  -rwx  1156                     vlan.dat
  432  -rwx  7093                     config.text

20147200 bytes available (12366848 bytes used)

 

5. config.text 파일 백업

   - switch: rename flash:config.text flash:config.backup

 

6. Flash 디렉토리 검색(백업 파일 확인)

   - switch: dir flash:

...더보기

Directory of flash:/

    2  -rwx  5                        private-config.text
    3  -rwx  2770                     config.text.renamed
    4  -rwx  1096                     vlan.dat.renamed
    5  -rwx  5                        private-config.text.renamed
    6  drwx  192                      c3750-ipbase-mz.122-50.SE5
  428  -rwx  156                      express_setup.debug
  429  -rwx  1048                     multiple-fs
  431  -rwx  1156                     vlan.dat
  432  -rwx  7093                     config.backup

20147200 bytes available (12366848 bytes used)

 

7. 스위치 부팅

   - switch: boot

...더보기

Loading "flash:c3750-ipbase-mz.122-50.SE5/c3750-ipbase-mz.122-50.SE5.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File "flash:c3750-ipbase-mz.122-50.SE5/c3750-ipbase-mz.122-50.SE5.bin" uncompressed and installed, entry point: 0x1000000
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, C3750 Software (C3750-IPBASE-M), Version 12.2(50)SE5, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Tue 28-Sep-10 12:56 by prod_rel_team
Image text-base: 0x01000000, data-base: 0x02800000

Initializing flashfs...

flashfs[1]: 423 files, 8 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 32514048
flashfs[1]: Bytes used: 12366848
flashfs[1]: Bytes available: 20147200
flashfs[1]: flashfs fsck took 2 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

Waiting for Stack Master Election...
front_end/ (directory)
extracting front_end/fe_type_1 (34760 bytes)
extracting front_end/fe_type_2 (78400 bytes)
extracting front_end/front_end_ucode_info (86 bytes)
extracting ucode_info (76 bytes)
POST: PortASIC CAM Subsystem Tests : Begin
POST: PortASIC CAM Subsystem Tests : End, Status Passed

POST: No Cable found on stack port 1
POST: No Cable found on stack port 2

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

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

Election Complete
Switch 1 booting as Master
Waiting for Port download...Complete

cisco WS-C3750G-24TS-1U (PowerPC405) processor (revision J0) with 131072K bytes of memory.
Processor board ID FOC1602Y52Q
Last reset from power-on
1 Virtual Ethernet interface
28 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.

512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address       : 00:00:00:00:00:00
Motherboard assembly number     : 73-10219-09
Power supply part number        : 341-0098-02
Motherboard serial number       : FOC12345678 
Power supply serial number      : DCA12345678 
Model revision number           : J0
Motherboard revision number     : B0
Model number                    : WS-C3750G-24TS-S1U
System serial number            : FOC12345678
Top Assembly Part Number        : 800-26859-03
Top Assembly Revision Number    : D0
Version ID                      : V05
CLEI Code Number                : CO12345678 
Hardware Board Revision Number  : 0x09


Switch Ports Model              SW Version            SW Image
------ ----- -----              ----------            ----------
*    1 28    WS-C3750G-24TS-1U  12.2(50)SE5           C3750-IPBASE-M




Press RETURN to get started!


*Mar  1 00:01:11.621: %STACKMGR-4-SWITCH_ADDED: Switch 1 has been ADDED to the stack
*Mar  1 00:01:13.140: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
*Mar  1 00:01:13.995: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
*Mar  1 00:01:34.841: %STACKMGR-5-SWITCH_READY: Switch 1 is READY
*Mar  1 00:01:34.841: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 1 Switch 1 has changed to state DOWN
*Mar  1 00:01:34.841: %STACKMGR-4-STACK_LINK_CHANGE: Stack Port 2 Switch 1 has changed to state DOWN
*Mar  1 00:01:35.277: %STACKMGR-5-MASTER_READY: Master Switch 1 is READY
*Mar  1 00:01:35.621: %SYS-5-RESTART: System restarted --
Cisco IOS Software, C3750 Software (C3750-IPBASE-M), Version 12.2(50)SE5, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Tue 28-Sep-10 12:56 by prod_rel_team

 

8. 화면정지 시 엔터 입력

...더보기

         --- 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 
---------------------------------- 

 

9. 초기구성 진입 NO 입력

   - Would you like to enter the initial configuration dialog? [yes/no]: no

 

10. config.backup 파일 확인

   - Switch>show flash

...더보기

Directory of flash:/

    2  -rwx           5  Jun 23 2016 02:07:06 +00:00  private-config.text
    3  -rwx        2770   Mar 1 1993 01:12:45 +00:00  config.text.renamed
    4  -rwx        1096   Mar 1 1993 01:01:35 +00:00  vlan.dat.renamed
    5  -rwx           5   Mar 1 1993 01:12:45 +00:00  private-config.text.renamed
    6  drwx         192   Mar 1 1993 00:11:18 +00:00  c3750-ipbase-mz.122-50.SE5
  428  -rwx         156   Mar 1 1993 01:47:49 +00:00  express_setup.debug
  429  -rwx        1048  Jun 23 2016 02:07:06 +00:00  multiple-fs
  431  -rwx        1156  May 29 1993 19:02:55 +00:00  vlan.dat
  432  -rwx        7093  Jun 23 2016 02:07:06 +00:00  config.backup

32514048 bytes total (20147200 bytes free)
Switch>

 

11. enable 모드 활성화

   - Switch>en

 

12. config.backup 파일 복원

   - Switch#rename flash:config.backup flash:config.text

 

13. 복원 파일 확인

   - Switch#show flash

...더보기

Directory of flash:/

    2  -rwx           5  Jun 23 2016 02:07:06 +00:00  private-config.text
    3  -rwx        2770   Mar 1 1993 01:12:45 +00:00  config.text.renamed
    4  -rwx        1096   Mar 1 1993 01:01:35 +00:00  vlan.dat.renamed
    5  -rwx           5   Mar 1 1993 01:12:45 +00:00  private-config.text.renamed
    6  drwx         192   Mar 1 1993 00:11:18 +00:00  c3750-ipbase-mz.122-50.SE5
  428  -rwx         156   Mar 1 1993 01:47:49 +00:00  express_setup.debug
  429  -rwx        1048  Jun 23 2016 02:07:06 +00:00  multiple-fs
  431  -rwx        1156  May 29 1993 19:02:55 +00:00  vlan.dat
  432  -rwx        7093  Jun 23 2016 02:07:06 +00:00  config.text

32514048 bytes total (20147200 bytes free)
Switch#

 

14. flash 설정 running-config으로 복사

   - Switch#copy flash:config.text system:running-config

...더보기

Destination filename [running-config]?

% Login disabled on line 6, until 'password' is set
% Login disabled on line 7, until 'password' is set
% Login disabled on line 8, until 'password' is set
% Login disabled on line 9, until 'password' is set
% Login disabled on line 10, until 'password' is set
% Login disabled on line 11, until 'password' is set
% Login disabled on line 12, until 'password' is set
% Login disabled on line 13, until 'password' is set
% Login disabled on line 14, until 'password' is set
% Login disabled on line 15, until 'password' is set
% Login disabled on line 16, until 'password' is set
7093 bytes copied in 2.232 secs (3178 bytes/sec)

DEMO_L3_SW#
*Mar  1 09:14:37: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:14:37 UTC Mon Mar 1 1993 to 09:14:37 KST Mon Mar 1 1993, configured from console by console.
*Mar  1 09:14:41: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down
DEMO_L3_SW#

 

15. 패스워드 변경

   - DEMO_L3_SW#conf t

   - DEMO_L3_SW(config)#enable secret cisco

 

16. 공장초기화

   - DEMO_L3_SW#erase startup-config

...더보기

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
DEMO_L3_SW#
*Mar  1 00:03:32.735: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram

 

17. 재부팅

   - DEMO_L3_SW#reload

...더보기

System configuration has been modified. Save? [yes/no]: y
Building configuration...
[OK]
Proceed with reload? [confirm]

*Mar  1 00:04:43.375: %SYS-5-RELOAD: Reload requested by console. Reload reason: Reload command

 

끝.

'IT > network' 카테고리의 다른 글

시스코 스위치 초기 설정  (0) 2019.08.05
시스코 스위치 초기화 - C2960  (0) 2019.08.05
시스코 스위치 콘솔 접속  (0) 2019.08.05