Generally we have Switch#delete vlan.dat Or Switch#delete
flash:vlan.dat command to delete all Vlan configuration. However I have noticed that the vlans are still there when you hit
Switch#Show Vlan command. Running Switch#dir to check if the file is
available and the file vlan.dat does not show up. But the vlan is
still shown and active. Then I checked the STP mode of the switch, as I expect it should be Server or Transparent Switch.
Switch#show vtp status
It went in vain as it was a Server. After googling around I found that it was startup configuration that needs to be cleared.
If there is a single vlan we would have selected Switch(config)#no vlan.
But in this case to make sure all vlan data is removed erase the startup config as
Switch#Erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [co]
[OK]
Erase of nvram: complete
Switch#
00:01:14: %SYS-7-NV_BLOCK_INIT: Initalized the geometry of nvram
Switch#reload
System configuration has been modified. Save? [yes/no]: No
Proceed with reload? [confirm]
When I checked Switch#Show All the vlans were vanished.
Switch#show vtp status
It went in vain as it was a Server. After googling around I found that it was startup configuration that needs to be cleared.
If there is a single vlan we would have selected Switch(config)#no vlan.
But in this case to make sure all vlan data is removed erase the startup config as
Switch#Erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [co]
[OK]
Erase of nvram: complete
Switch#
00:01:14: %SYS-7-NV_BLOCK_INIT: Initalized the geometry of nvram
Switch#reload
System configuration has been modified. Save? [yes/no]: No
Proceed with reload? [confirm]
When I checked Switch#Show All the vlans were vanished.
No comments:
Post a Comment