2022年10月16日 星期日

Cisco 3850 & 3750X 回復原廠預設值

在所有設定都不要的情況下,又可以進入config模式

Switch>en
Switch#
Switch#wr e              
//若不想將之前設定取回而是要恢復原廠預設值時 
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]y[OK]
Erase of nvram: complete
Switch#
*Oct 20 20:21:08.637: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Switch#
Switch#
Switch#
Switch#reload                        //重新啟動 Switch
System configuration has been modified. Save? [yes/no]: no //不將舊有設定回存  
Proceed with reload? [confirm]y      //確定將 Switch 重新啟動


在沒有帳號密碼的情況下,先拔掉電源,按住Mode鍵,在插上電源,等燈號出現綠燈橫亮,console會停在password recovery的下後,放掉Mode鍵

1.先輸入flash_init
switch: flash_init
Initializing Flash…
flashfs[0]: 547 files, 19 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 15487488
flashfs[0]: Bytes available: 17026560
flashfs[0]: flashfs fsck took 11 seconds.

…done Initializing Flash.

2.要先做第一步驟,第二步驟才能執行dir flash:
switch: dir flash:
Directory of flash:/

2  -rwx  564       <date>               vlan.dat
3  -rwx  1914      <date>               private-config.text
5  drwx  192       <date>               c2960-lanbasek9-mz.122-58.SE2
6  -rwx  3096      <date>               multiple-fs

7  -rwx  2289      <date>               config.text

3.刪除config.text 及 vlan.dat檔案
switch: del flash:config.text
Are you sure you want to delete “flash:config.text” (y/n)?y
File “flash:config.text” deleted

switch: del flash:vlan.dat
Are you sure you want to delete “flash:vlan.dat” (y/n)?y

File “flash:vlan.dat” deleted

4.輸入boot,讓switch重新開機

沒有留言:

張貼留言