<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iTechBlog &#187; Write erase</title>
	<atom:link href="http://www.dide3d.com/tag/write-erase/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dide3d.com</link>
	<description>Get Tech&#039;d...!                                              </description>
	<lastBuildDate>Mon, 06 Sep 2010 05:48:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>VLAN Fiasco: Deleting VLAN.dat</title>
		<link>http://www.dide3d.com/2009/03/vlan-fiasco-deleting-vlandat/</link>
		<comments>http://www.dide3d.com/2009/03/vlan-fiasco-deleting-vlandat/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 14:55:29 +0000</pubDate>
		<dc:creator>Divin John</dc:creator>
				<category><![CDATA[Cisco *STUFF*]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[VLAN]]></category>
		<category><![CDATA[Reload]]></category>
		<category><![CDATA[VLAN.dat]]></category>
		<category><![CDATA[Write erase]]></category>

		<guid isPermaLink="false">http://www.dide3d.com/?p=698</guid>
		<description><![CDATA[On SW1, we run show vlan brief and see that there are three additional vlans in use: SW1#show vlan br VLAN Name Status Ports &#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10 10 VLAN0010 active 20 VLAN0020 active 30 VLAN0030 active We want to totally erase the [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: verdana; font-size: x-small;"> On SW1, we run show vlan brief and see that there are three additional vlans in use:</span></p>
<p><em>SW1#show vlan br</em></p>
<p><em>VLAN Name Status Ports<br />
&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;</em></p>
<p><em>1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4<br />
Fa0/5, Fa0/6, Fa0/7, Fa0/8<br />
Fa0/9, Fa0/10<br />
10 VLAN0010 active<br />
20 VLAN0020 active<br />
30 VLAN0030 active</em></p>
<p>We want to totally erase the router&#8217;s startup configuration, so we use the write erase command, confirm it, and reload without saving the running config:</p>
<p><em>SW1#write erase<br />
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]<br />
[OK]<br />
Erase of nvram: complete<br />
SW1#rel<br />
00:06:00: %SYS-7-NV_BLOCK_INIT: Initalized the geometry of nvram<br />
SW1#reload</em></p>
<p><em>System configuration has been modified. Save? [yes/no]: n<br />
Proceed with reload? [confirm]</em></p>
<p>The 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!</p>
<p><em>Switch#show vlan br</em></p>
<p><em>VLAN Name Status Ports<br />
&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;</em></p>
<p><em>1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4<br />
Fa0/5, Fa0/6, Fa0/7, Fa0/8<br />
Fa0/9, Fa0/10<br />
10 VLAN0010 active<br />
20 VLAN0020 active<br />
30 VLAN0030 active</em></p>
<p>The 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.</p>
<p>There&#8217;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&#8217;t type &#8220;y&#8221; or &#8220;yes&#8221; just accept the defaults by hitting the return key. If you type &#8220;y&#8221;, the router attempts to delete a file named &#8220;y&#8221;, as shown here:</p>
<p><em>Switch#delete vlan.dat<br />
Delete filename [vlan.dat]? y<br />
Delete flash:y? [confirm]<br />
%Error deleting flash:y (No such file or directory)</em></p>
<p><em>Switch#delete vlan.dat<br />
Delete filename [vlan.dat]?<br />
Delete flash:vlan.dat? [confirm]</em></p>
<p><em>Switch#</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dide3d.com/2009/03/vlan-fiasco-deleting-vlandat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
