Delete VLAN setup
ssnyderu2
Member Posts: 475 ■■■□□□□□□□
in CCNA & CCENT
I got a 2950 off ebay and it was not completely reset. I want to clear the VLAN settings to factory default. Below is what I have on it now.
Switch#show vlan brief
VLAN Name Status Ports
----
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
2 VLAN0002 active
3 VLAN0003 active
10 Sales active
20 Marketing active
30 ASE active
40 ASR active
50 Managers active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
I got the following command from the Cisco website (delete flash:vlan.dat) to reset the VLAN. It did not work, I got the below error. What did I do wrong? I want this box like I just got it new. I also ran the "write erase"command with no issues.
Switch#delete flash:vlan.dat
Delete filename [vlan.dat]? y
Delete flash:y? [confirm]
%Error deleting flash:y (No such file or directory)
Switch#show vlan brief
VLAN Name Status Ports
----
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
2 VLAN0002 active
3 VLAN0003 active
10 Sales active
20 Marketing active
30 ASE active
40 ASR active
50 Managers active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
I got the following command from the Cisco website (delete flash:vlan.dat) to reset the VLAN. It did not work, I got the below error. What did I do wrong? I want this box like I just got it new. I also ran the "write erase"command with no issues.
Switch#delete flash:vlan.dat
Delete filename [vlan.dat]? y
Delete flash:y? [confirm]
%Error deleting flash:y (No such file or directory)
2019 Goals: 70-698, CCENT, MCSA 2016
Certifications: A+, Network+, Security+, CIW Foundations and MTA OS Fundamentals
Cisco Lab :3x Cisco 2811 Routers, 3x Cisco 3750 Switches and Cisco 2620 Router with NM-32A module
Windows Lab: Dual CPU Hyper-V server with 12 Cores/24 Threads, 96GB RAM and 2TB HDD.
CANCER SURVIVOR! In Remission Since September 2016!
Certifications: A+, Network+, Security+, CIW Foundations and MTA OS Fundamentals
Cisco Lab :3x Cisco 2811 Routers, 3x Cisco 3750 Switches and Cisco 2620 Router with NM-32A module
Windows Lab: Dual CPU Hyper-V server with 12 Cores/24 Threads, 96GB RAM and 2TB HDD.
CANCER SURVIVOR! In Remission Since September 2016!
Comments
-
Priston Member Posts: 999 ■■■■□□□□□□Delete filename [vlan.dat]? y
Delete flash:y? [confirm]
%Error deleting flash:y (No such file or directory)
Try just hitting enter instead of y. Notice how the file name goes from being vlan.dat to y? Your trying to delete filename y.A.A.S. in Networking Technologies
A+, Network+, CCNA -
mikeybinec Member Posts: 484 ■■■□□□□□□□and you have to reload the switchCisco NetAcad Cuyamaca College
A.S. LAN Management 2010 Grossmont College
B.S. I.T. Management 2013 National University -
ssnyderu2 Member Posts: 475 ■■■□□□□□□□I did as you suggested and it looked as if the command was successful, but it still showed the same VLAN information. I ran the same command again and got: %Error deleting flash:vlan.dat (No such file or directory)
So it looked as if the file was deleted. I ran the reload command and now its gone!
All that was a long way of saying thanks for the info.2019 Goals: 70-698, CCENT, MCSA 2016
Certifications: A+, Network+, Security+, CIW Foundations and MTA OS Fundamentals
Cisco Lab :3x Cisco 2811 Routers, 3x Cisco 3750 Switches and Cisco 2620 Router with NM-32A module
Windows Lab: Dual CPU Hyper-V server with 12 Cores/24 Threads, 96GB RAM and 2TB HDD.
CANCER SURVIVOR! In Remission Since September 2016! -
clarson Member Posts: 903 ■■■■□□□□□□or you could have done, config t, no vlan 2-999, end
probably should check for vtp settings too, show vtp status -
ssnyderu2 Member Posts: 475 ■■■□□□□□□□check for vtp settings too, show vtp status
Not sure what I am looking at.
Switch>enable
Switch#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 64
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x57 0xCD 0x40 0x65 0x63 0x59 0x47 0xBD
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)2019 Goals: 70-698, CCENT, MCSA 2016
Certifications: A+, Network+, Security+, CIW Foundations and MTA OS Fundamentals
Cisco Lab :3x Cisco 2811 Routers, 3x Cisco 3750 Switches and Cisco 2620 Router with NM-32A module
Windows Lab: Dual CPU Hyper-V server with 12 Cores/24 Threads, 96GB RAM and 2TB HDD.
CANCER SURVIVOR! In Remission Since September 2016! -
clarson Member Posts: 903 ■■■■□□□□□□Configuration Revision : 0 good
VTP Operating Mode : Server good, but transparent mode might be better, config t, vtp mode transparent, end
VTP Domain Name : good, no domain name
Number of existing VLANs : 5 not sure where 5 existing vlans are coming from, try delete flash:vlan.dat, wr erase, reload see if they are gone -
clarson Member Posts: 903 ■■■■□□□□□□never mind. 5 existing vlans, the default (1) and
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
there you go, there are 5. -
ssnyderu2 Member Posts: 475 ■■■□□□□□□□This is what I have done:
Switch>enable
Switch#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 64
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x57 0xCD 0x40 0x65 0x63 0x59 0x47 0xBD
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)
And
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
I am guessing the 5 vlans are the 1 default and those 1002 - 1005.2019 Goals: 70-698, CCENT, MCSA 2016
Certifications: A+, Network+, Security+, CIW Foundations and MTA OS Fundamentals
Cisco Lab :3x Cisco 2811 Routers, 3x Cisco 3750 Switches and Cisco 2620 Router with NM-32A module
Windows Lab: Dual CPU Hyper-V server with 12 Cores/24 Threads, 96GB RAM and 2TB HDD.
CANCER SURVIVOR! In Remission Since September 2016!