Catalyst2950 工場出荷時へのリセット
20100825

確認環境
 Catalyst 2950G-24 Ver 12.1(14)EA1a
 Catalyst 2950T-24 Ver 12.1(19)EA1
◆コンフィグを工場出荷時に戻す。
Switch#write erase (「erase startup-config」でも可)
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]y[OK]
Erase of nvram: complete

◆再起動
Switch#reload

System configuration has been modified. Save? [yes/no]: no
 上はrunning-configを書き換えている場合に出る。
Proceed with reload? [confirm]y

◆再起動後
Would you like to enter the initial configuration dialog? [yes/no]: no

◆VLAN.datの確認
Switch#dir flash:
Directory of flash:/

2 -rwx 273 Jan 01 1970 00:01:24 env_vars
3 -rwx 855 Mar 01 1993 00:02:30 vlan.dat
4 -rwx 2980487 Mar 01 1993 00:05:32 c2950-i6q4l2-mz.121-19.EA1a.bin
5 drwx 2432 Mar 01 1993 00:07:26 html

7741440 bytes total (1762304 bytes free)

「vlan.dat」が存在している事を確認する。

◆VLAN情報の消去
Switch#delete flash:vlan.dat
Delete flash:vlan.dat? [confirm]y

◆再起動
Switch#reload
Proceed with reload? [confirm]y

◆再起動後
Would you like to enter the initial configuration dialog? [yes/no]: no
 上記は工場出荷状態の時に起動する度に出る模様。