作業手順
- erase startup-config
こちらでNVRAM上にあるコンフィグ設定を削除します。
startup-configが削除されると起動時に読み込むコンフィグがなくなります。
Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]←Enter
[OK]
Erase of nvram: complete
- show flash:
- delete flash:vlan.dat
フラッシュメモリ上にあるvlan.datを削除します。(ない場合は不要)
これはNVRAMにあるコンフィグ情報とは別にあり、削除しないとvlan情報が残ってしまいます。
Switch#show flash:
Directory of flash:/
2 -rwx 33 Mar 2 2021 11:24:29 +09:00 pnp-tech-time
3 -rwx 16028 Mar 2 2021 11:24:31 +09:00 pnp-tech-discovery-summary
4 -rwx 2072 Oct 26 2023 13:39:19 +09:00 multiple-fs
490 drwx 512 Sep 22 2023 16:40:06 +09:00 dc_profile_dir
492 drwx 512 Oct 24 2022 12:08:27 +09:00 pnp-tech
495 drwx 512 Sep 26 2022 12:30:58 +09:00 pnp-info
499 drwx 512 Sep 22 2023 16:40:05 +09:00 c2960x-universalk9-mz.152-7.E7
991 -rwx 3676 Oct 19 2023 11:57:58 +09:00 vlan.dat
122185728 bytes total (80119296 bytes free)
Switch#delete flash:vlan.dat
Delete filename [vlan.dat]? ←Enter
Delete flash:/vlan.dat? [confirm]←Enter
vlan.datがフラッシュメモリから消えたら再起動します。
- reload
kan-agsw12-02#reload
Proceed with reload? [confirm]
Oct 26 13:39:38.552 JST: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload command.
CPU rev: B
(略)
----------------------------------
Would you like to enter the initial configuration dialog? [yes/no]: no←対話式に設定するか聞かれるのでNO
これで初期化完了です。


コメント