reloading switch

livenliven Member Posts: 918
Is the vlan database maintained even if you delete the startup config and reload?
encrypt the encryption, never mind my brain hurts.

Comments

  • georgemcgeorgemc Member Posts: 429
    yes
    WGU BS: Business - Information Technology Management
    Start Date: 01 October 2012
    QFT1,PFIT in progress.
    TRANSFERRED/COMPLETED: AGC1,BBC1,LAE1,QBT1,LUT1,QLC1,QMC1,QLT1,IWC1,INC1,INT1,BVC1,CLC1,MGC1, CWV1 BNC1, LIT1,LWC1,QAT1,WFV1,EST1,EGC1,EGT1,IWT1,MKC1,MKT1,RWT1,FNT1,FNC1, BDC1,TPV1 REQUIRED:
  • phreakphreak Member Posts: 170 ■■□□□□□□□□
    Yes.




    2900-12-1#show vlan
    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
    100 test active
    1002 fddi-default active
    1003 token-ring-default active
    1004 fddinet-default active
    1005 trnet-default active

    2900-12-1#

    2900-12-1#erase start
    Erasing the nvram filesystem will remove all files! Continue? [confirm]
    [OK]
    Erase of nvram: complete
    2900-12-1#reload
    Proceed with reload? [confirm]

    00:02:35: %SYS-5-RELOAD: Reload requested

    ###############


    AFTER ERASE START AND RELOAD....

    Switch>enable
    Switch#show vlan
    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
    100 test active
    1002 fddi-default active
    1003 token-ring-default active
    1004 fddinet-default active
    1005 trnet-default active


    Switch#





    What you need to do is erase the vlan.dat file out of flash...

    Switch#dir flash:
    Directory of flash:/

    2 -rwx 1810419 Mar 01 1993 00:09:58 c2900xl-c3h2s-mz.120-5.WC12.bin
    3 -rwx 8192 Mar 01 1993 00:09:58 e2rb.bin
    4 drwx 704 Mar 01 1993 00:10:36 html
    16 -rwx 109 Mar 01 1993 00:10:37 info
    17 -rwx 109 Mar 01 1993 00:10:37 info.ver
    19 -rwx 616 Mar 01 1993 00:01:24 vlan.dat

    3612672 bytes total (678400 bytes free)
    Switch#


    Switch#del flash:/vlan.dat
    Delete filename [vlan.dat]?
    Delete flash:/vlan.dat? [confirm]
    Switch#show flash

    Directory of flash:/

    2 -rwx 1810419 Mar 01 1993 00:09:58 c2900xl-c3h2s-mz.120-5.WC12.bin
    3 -rwx 8192 Mar 01 1993 00:09:58 e2rb.bin
    4 drwx 704 Mar 01 1993 00:10:36 html
    16 -rwx 109 Mar 01 1993 00:10:37 info
    17 -rwx 109 Mar 01 1993 00:10:37 info.ver

    3612672 bytes total (679424 bytes free)
    Switch#



    AFTER ABOVE STEP:

    Switch>show vlan
    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
    1002 fddi-default active
    1003 token-ring-default active
    1004 fddinet-default active
    1005 trnet-default active


    Switch>
  • livenliven Member Posts: 918
    phreak wrote:
    Yes.




    2900-12-1#show vlan
    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
    100 test active
    1002 fddi-default active
    1003 token-ring-default active
    1004 fddinet-default active
    1005 trnet-default active

    2900-12-1#

    2900-12-1#erase start
    Erasing the nvram filesystem will remove all files! Continue? [confirm]
    [OK]
    Erase of nvram: complete
    2900-12-1#reload
    Proceed with reload? [confirm]

    00:02:35: %SYS-5-RELOAD: Reload requested

    ###############


    AFTER ERASE START AND RELOAD....

    Switch>enable
    Switch#show vlan
    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
    100 test active
    1002 fddi-default active
    1003 token-ring-default active
    1004 fddinet-default active
    1005 trnet-default active


    Switch#





    What you need to do is erase the vlan.dat file out of flash...

    Switch#dir flash:
    Directory of flash:/

    2 -rwx 1810419 Mar 01 1993 00:09:58 c2900xl-c3h2s-mz.120-5.WC12.bin
    3 -rwx 8192 Mar 01 1993 00:09:58 e2rb.bin
    4 drwx 704 Mar 01 1993 00:10:36 html
    16 -rwx 109 Mar 01 1993 00:10:37 info
    17 -rwx 109 Mar 01 1993 00:10:37 info.ver
    19 -rwx 616 Mar 01 1993 00:01:24 vlan.dat

    3612672 bytes total (678400 bytes free)
    Switch#


    Switch#del flash:/vlan.dat
    Delete filename [vlan.dat]?
    Delete flash:/vlan.dat? [confirm]
    Switch#show flash

    Directory of flash:/

    2 -rwx 1810419 Mar 01 1993 00:09:58 c2900xl-c3h2s-mz.120-5.WC12.bin
    3 -rwx 8192 Mar 01 1993 00:09:58 e2rb.bin
    4 drwx 704 Mar 01 1993 00:10:36 html
    16 -rwx 109 Mar 01 1993 00:10:37 info
    17 -rwx 109 Mar 01 1993 00:10:37 info.ver

    3612672 bytes total (679424 bytes free)
    Switch#



    AFTER ABOVE STEP:

    Switch>show vlan
    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
    1002 fddi-default active
    1003 token-ring-default active
    1004 fddinet-default active
    1005 trnet-default active


    Switch>



    thanks that is a mighty kind example
    encrypt the encryption, never mind my brain hurts.
  • phreakphreak Member Posts: 170 ■■□□□□□□□□
    No problem


    I showed two different ways to look at the flash too....


    dir flash:

    and show flash


    There are always many ways of doing the same thing on Cisco gear it seems. :)
  • networker050184networker050184 Mod Posts: 11,962 Mod
    In order to delete the VLAN data base you must delete the vlan.dat file.
    An expert is a man who has made all the mistakes which can be made.
  • dtlokeedtlokee Member Posts: 2,378 ■■■■□□□□□□
    The answer depends on the mode of the switch, when in VTP transparent the VLANs are stored in the startup config, in server mode they are stored in the VLAN.DAT.
    The only easy day was yesterday!
  • r_durantr_durant Member Posts: 486 ■■■□□□□□□□
    dtlokee wrote:
    The answer depends on the mode of the switch, when in VTP transparent the VLANs are stored in the startup config, in server mode they are stored in the VLAN.DAT.

    Hmmm...I wasn't aware of that, I always thought the VLANs were all stored in the VLAN.dat...good to know!!
    CCNA (Expired...), MCSE, CWNA, BSc Computer Science
    Working on renewing CCNA!
  • dtlokeedtlokee Member Posts: 2,378 ■■■■□□□□□□
    VLAN.DAT is only good for VLANs 1-1005, if you want to create the extended range (1006-4094) VLANs then you will need to go to transparent mode which uses the config file, not VLAN.DAT
    The only easy day was yesterday!
  • phreakphreak Member Posts: 170 ■■□□□□□□□□
    Yeah! Thanks for the information. I was not aware of that either.


    The only reason I knew the answer that I did is that I was fiddling with vlans at the office here one day, and I tried the erase start reload routine and found they still were there.


    Thanks for the info. Maybe that should be added to the master CCNA info document?
  • livenliven Member Posts: 918
    thanks again guys, I am really thankful for the info.
    encrypt the encryption, never mind my brain hurts.
  • arcaniumarcanium Member Posts: 15 ■□□□□□□□□□
    Thanks for the info, the transparent vtp setting was holding me up as well
Sign In or Register to comment.