<?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>Aaron&#039;s Worthless Words &#187; learning</title>
	<atom:link href="http://aconaway.com/tag/learning/feed/" rel="self" type="application/rss+xml" />
	<link>http://aconaway.com</link>
	<description>Not something you want to hear</description>
	<lastBuildDate>Wed, 08 Sep 2010 14:39:15 +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>BCMSN Notes &#8212; STP States</title>
		<link>http://aconaway.com/2009/05/21/bcmsn-notes-stp-states/</link>
		<comments>http://aconaway.com/2009/05/21/bcmsn-notes-stp-states/#comments</comments>
		<pubDate>Fri, 22 May 2009 01:49:20 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bcmsn]]></category>
		<category><![CDATA[blocking]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[listening]]></category>
		<category><![CDATA[spanning tree]]></category>
		<category><![CDATA[state]]></category>
		<category><![CDATA[stp]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=340</guid>
		<description><![CDATA[I&#8217;ve decided to take on the CCNP certification, so I&#8217;m going to wind up with a few posts will be more my own notes than anything.  A switch port on a 2960 comes up with a default configuration on VLAN 1.  What happens from the perspective of spanning-tree? First, the port comes up on blocking [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to take on the CCNP certification, so I&#8217;m going to wind up with a few posts will be more my own notes than anything.  <img src='http://aconaway.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A switch port on a 2960 comes up with a default configuration on VLAN 1.  What happens from the perspective of spanning-tree?</p>
<ul>
<li>First, the port comes up on <strong>blocking </strong>mode.  This is to make sure that loops aren&#8217;t created without first listening to the network to see what&#8217;s going on.</li>
<li>Next, if the port may be a root or designated port, the port is moved to the <strong>listening </strong>state.  In this state, the port can send and receives BPDUs only.  It can&#8217;t send traffic, but it can discover the other switches participating in STP.</li>
<li>After the forwarding delay, the port goes into the <strong>learning </strong>state.   In this state, the port can send and receive BPDUs as in listening, but it can now receive traffic.  It can&#8217;t yet send any.</li>
<li>After the forwarding delay again, the port goes into the <strong>forwarding </strong>state.  The port can now send and receive data.</li>
</ul>
<p>If the port is configured with <em>spanning-tree portfast</em>, the mode goes from <strong>blocking </strong>directly to <strong>forwarding </strong>without going through these steps.  Obviously you don&#8217;t want a switch plugged into a port configured for portfast since you may wind up with a loop.</p>
<p>Here&#8217;s the <em>debug spanning-tree events</em> output from one of my labs.  F0/3 is configured for portfast.  I <em>shut</em>/<em>no shut</em> it to see what happens.</p>
<blockquote>
<pre>*Mar  8 18:09:51.163: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
sw01#
*Mar  8 18:09:51.747: set portid: VLAN0007 Fa0/3: new port id 8003
*Mar  8 18:09:51.747: STP: VLAN0007 Fa0/3 -&gt;jump to forwarding from blocking
sw01#
*Mar  8 18:09:53.739: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up
*Mar  8 18:09:54.739: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up</pre>
</blockquote>
<p>Notice the &#8220;jump to forwarding from blocking&#8221;.</p>
<p>Here&#8217;s the same output when the port is not in portfast mode.  Notice the timestamps.  It takes about 30 seconds (2 x default foward delay) to go from blocking to listening to learning to forwarding.</p>
<blockquote>
<pre>*Mar  8 18:13:05.313: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
sw01#
*Mar  8 18:13:06.013: set portid: VLAN0007 Fa0/3: new port id 8003
*Mar  8 18:13:06.013: STP: VLAN0007 Fa0/3 -&gt; listening
sw01#
*Mar  8 18:13:06.381: %LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to up
*Mar  8 18:13:07.381: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
sw01#
*Mar  8 18:13:21.013: STP: VLAN0007 Fa0/3 -&gt; learning
sw01#
*Mar  8 18:13:36.013: STP: VLAN0007 Fa0/3 -&gt; forwarding</pre>
</blockquote>
<p>Send any obvious corrections and questions my way.</p>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2009/05/21/bcmsn-notes-stp-states/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
