CCNA  CCNP Home Lab Tutorial:  The VLAN
CCNA CCNP Home Lab Tutorial: The VLAN

CCNA And CCNP Candidates Who Have Their Own Cisco Home Labs Often Email Me About An Odd Situation That Occurs When They Erase A Switch's Configuration. Their Startup Configuration Is Gone, As They Expect, But The VLAN And VTP Information Is Still There!Sounds Strange, Doesn't It? Let's Look At An Example. On SW1, We Run Show Vlan Brief And See In This Abbreviated Output That There Are Three Additional Vlans In Use:SW1show Vlan Br10 VLAN0010 Active20 VLAN0020 Active30 VLAN0030 ActiveWe Want To Totally Erase The Router's Startup Configuration, So We Use The Write Erase Command, Confirm It, And Reload Without Saving The Running Config:SW1write EraseErasing The Nvram Filesystem Will Remove All Configuration Files! Continue? ConfirmOKErase Of Nvram: Complete00:06:00: SYS-7-NVBLOCKINIT: Initalized The Geometry Of NvramSW1reloadSystem Configuration Has Been Modified. Save? Yesno: NProceed With Reload? ConfirmThe Router Reloads, And After Exiting Setup Mode, We Run Show Vlan Brief Again. And Even Though The Startup Configuration Was Erased, The Vlans Are Still There!Switchshow Vlan Br10 VLAN0010 Active20 VLAN0020 Active30 VLAN0030 ActiveThe Reason Is That This Vlan And VTP Information Is Actually Kept In The VLAN.DAT File In Flash Memory, And The Contents Of Flash Are Kept On A Reload. The File Has To Be Deleted Manually.There's A Little Trick To Deleting This File. The Switch Will Prompt You Twice To Ask If You Really Want To Get Rid Of This File. Don't Type "y" Or "yes"; Just Accept The Defaults By Hitting The Return Key. If You Type "y", The Router Attempts To Delete A File Named "y", As Shown Here:Switchdelete Vlan.datDelete Filename Vlan.dat? YDelete Flash:y? ConfirmError Deleting Flash:y (No Such File Or Directory)Switchdelete Vlan.datDelete Filename Vlan.dat?Delete Flash:vlan.dat? ConfirmSwitchThe Best Way To Prepare For CCNA And CCNP Exam Success Is By Working On Real Cisco Equipment, And By Performing Lab Tasks Over And Over. Repetition Is The Mother Of Skill, And By Truly Erasing Your VLAN And VTP Information By Deleting The Vlan.dat File From Flash, You'll Be Building Your Cisco Skills To The Point Where Your CCNA And CCNP Exam Success Is A Certainty.