<?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>The Online CCNP Study Guide</title>
	<atom:link href="http://www.ccnpguide.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ccnpguide.com</link>
	<description>Rambling notes from someone desperate to pass.</description>
	<lastBuildDate>Thu, 12 Aug 2010 13:29:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The Art of Troubleshooting</title>
		<link>http://www.ccnpguide.com/the-art-of-troubleshooting/</link>
		<comments>http://www.ccnpguide.com/the-art-of-troubleshooting/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 13:29:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=286</guid>
		<description><![CDATA[I&#8217;m almost done with my notes on SSO, NSF, FHRPs, and server load balancing, so hang with me.  In the mean time check out this brilliant post by Kevin Bovis about troubleshooting wisdom. I have a lot to learn from talented people like Kevin.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m almost done with my notes on SSO, NSF, FHRPs, and server load balancing, so hang with me.  In the mean time check out <a href="http://etherealmind.com/the-ancient-and-noble-art-of-troubleshooting/">this brilliant post </a>by Kevin Bovis about troubleshooting wisdom.</p>
<p>I have a lot to learn from talented people like Kevin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/the-art-of-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CCNP SWITCH 642-813 :: SNMP, Syslog, &amp; IP SLA</title>
		<link>http://www.ccnpguide.com/ccnp-switch-642-813-snmp-syslog-ip-sla/</link>
		<comments>http://www.ccnpguide.com/ccnp-switch-642-813-snmp-syslog-ip-sla/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 01:26:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=268</guid>
		<description><![CDATA[  Many people may be confused as to why I would dedicate an entire post to network monitoring tools and their configuration.  The reason is because these topics are tested relatively heavily on the actual CCNP SWITCH Exam.  Whether you agree or disagree about the weight given to these topics given the number of others is irrelevant.  [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff6600;"><br />
</span> </p>
<p>Many people may be confused as to why I would dedicate an entire post to network monitoring tools and their configuration.  The reason is because these topics are tested relatively heavily on the actual CCNP SWITCH Exam.  Whether you agree or disagree about the weight given to these topics given the number of others is irrelevant.  It&#8217;s covered on the exam &#8211; so take the time to understand the topics (especially IP SLA).</p>
<p>Here we go&#8230;</p>
<h1><span style="color: #808080;">Syslog</span></h1>
<p><span style="color: #000000;">Syslog is a network management protocol that is not unique to Cisco devices, but integrates well within IOS.  Syslog allows a network-attached device to report and log error and notification messages either locally or to a remote Syslog server.</span></p>
<p><span style="color: #000000;">Syslog messages are plain text sent using UDP port 514.</span></p>
<p><span style="color: #000000;"><strong>Every syslog message contains two parts, a severity level and a facility.  The severity level goes from 0 to 7 with 0 being the most severe to 7 being simply informational.</strong> Facilities are service identifiers that categorize events and messages for easier reporting.</span></p>
<p><span style="color: #000000;"><strong>The most common facilities on IOS devices include:</strong></span></p>
<ul>
<li>IP</li>
<li>OSPF</li>
<li>SYS (operating system)</li>
<li>IP Security (IP Sec)</li>
<li>Route Switch Processor (RSP)</li>
<li>Interface (IF)<span id="more-268"></span></li>
</ul>
<p><strong>Messages are presented in the following format:</strong><br />
%FACILITY-SUBFACILITY-SEVERITY-MNEMONIC:Message-text</p>
<div id="_mcePaste"><strong>An example:</strong><br />
%SYS-5-CONFIG_I: cwr2000 on vty0 Configured from console by (192.168.64.25)</div>
<div> </div>
<div id="_mcePaste">The example Syslog message indicates that the operating system (facility = SYS) is issuing a notification (SEVERITY = 5) has been configured (MNEUMONIC = CONFIG) and that a user on VTY0 from IP 192.168.64.34 has made the configuration.</div>
<div> </div>
<div><em>Note:  One of the most common Syslog messages you&#8217;ll see is line protocol up/down messages after a configuration change has been made in config mode.  Also, is ACL logging is enabled, Syslog messages will be generated when packets match ACL parameters.</em></div>
<h2><span style="color: #ff6600;">Configuring Syslog</span></h2>
<p><span style="color: #000000;">To configure Syslog to export events to an external Syslog server, use the following commands:</span></p>
<p><span style="color: #000000;">Switch(config)# logging <em>&lt;ip address of server&gt;<br />
</em></span>Switch(config)# logging trap <em>&lt;severity level&gt;</em></p>
<p><em><span style="font-style: normal;">To configure the local switch to store syslog messages, use the <strong>logging buffered</strong> command.</span></em></p>
<p><em><span style="font-style: normal;">Switch(config)# logging</span></em>buffered ?<br />
<em>&lt;0-7&gt;             Logging severity leve</em>l</p>
<p>Use the s<strong>how logging</strong> command to show the contents of the local log files.</p>
<div>
<h1 style="font-size: 2em;"><span style="color: #808080;">SNMP</span></h1>
<p><span style="color: #000000;">SNMP is simply the standard for network monitoring and management and contains three core elements:</span></p>
<ul>
<li>Network Management Application (SNMP Manager)</li>
<li>SNMP Agents (running inside a managed device)</li>
<li>MIB Database object that describes the information requested (inside the agent)</li>
</ul>
</div>
<p><strong>SNMP network management application periodically uses UDP to poll the agent residing on a managed device for useful, predetermined information</strong>.  The problem is it polls the device on a set schedule, so there will be a lag between when an event occurs and when the application learns of it.</p>
<p>SNMP traps, are not so passive. When certain criteria are met, the agent sends the application a notification instantly, so it no longer has to wait around to find out.  This can introduce bandwidth savings.  <strong>Think of it like push notification in the cellular world.</strong></p>
<p>The data that the agent collects is stored in its MIB.  <strong>Community strings are used to provide a level of authorization for the MIB contents (read or write) -</strong> kind of like a weak SNMP passwords.  They are transmitted in clear text across the network, so be careful.</p>
<h2><span style="color: #ff6600;">SNMP Versions</span></h2>
<ul>
<li>SNMP v1 (insecure)</li>
<li>SNMP v2 &#8211; introduced the read/write community strings (insecure)</li>
<li>SNMP v3 &#8211; provides encryption and authentication (recommended whenever possible)</li>
</ul>
<p> </p>
<h2 style="font-size: 1.5em;"><span style="color: #ff6600;">SNMP Configuration</span></h2>
<ol>
<li><span style="color: #ff6600;"><span style="color: #000000;">Configure SNMP access lists<em> (optional, but recommended)</em></span></span></li>
<li><span style="color: #ff6600;"><span style="color: #000000;">Configure community strings</span></span></li>
<li><span style="color: #ff6600;"><span style="color: #000000;">Configure SNMP trap destination</span></span></li>
<li><span style="color: #ff6600;"><span style="color: #000000;">Configure SNMP v3 user </span></span><em>(optional, but recommended)</em></li>
</ol>
<p style="padding-left: 30px;"><span style="text-decoration: underline;">Example Configuration</span><br />
Switch(config)# access-list 100 permit ip 10.1.1.0 0.0.0.255 any<br />
Switch(config)# snmp-server community <em>aaron</em> RO 100<br />
Switch(config)# snmp-server community t<em>hisismoresecure</em> RW 100<br />
Switch(config)# snmp-server trap 192.168.1.52</p>
<p style="padding-left: 30px;"> </p>
<h1 style="font-size: 2em;"><span style="color: #808080;">IP Service Level Agreement</span></h1>
<p><span style="color: #000000;">Service level agreements or SLAs are contractual agreements usually between a customer and service provider that spell out the minimum acceptable levels of service.  SLAs are often attached to WAN and MPLS links because any downtime can significantly affect business performance/profits.</span></p>
<p><span style="color: #000000;">In terms of the exam, Cisco&#8217;s SLA attempts to measure latency, jitter, and packet loss for a given link.  Cisco does this by enabling IOS to send synthetic traffic  to a specific host computer or router that is configured to respond.  The router can then use determine one way jitter, delay, an packet loss.</span></p>
<p><span style="color: #000000;">Router &lt;&#8212;&#8212;&#8211;&gt; Router<br />
</span>OR<br />
Router &lt;&#8212;&#8212;&#8212;&gt; PC</p>
<h2><span style="color: #ff6600;">Common IP SLA Functions</span></h2>
<ul>
<li>Edge-to-edge network availability monitoring</li>
<li>Network performance monitoring</li>
<li>VoIP, video, and VPN monitoring</li>
<li>IP heath assessment</li>
<li>MPLS monitoring</li>
<li>Troubleshooting</li>
</ul>
<p><strong>IP SLA can measure the following statistics:</strong></p>
<ul>
<li>Network latency and response time</li>
<li>Packet loss</li>
<li>Jitter and voice quality scoring</li>
<li>end-to-end network connectivity</li>
</ul>
<h2><span style="color: #ff6600;">IP SLA Operations</span></h2>
<p><span style="color: #000000;">Multiple IP SLA operations (measurements) can run in a network at the same time.  The reporting tools use SNMP to fetch the data so they can report on it.</span></p>
<p><span style="color: #000000;">The source router needs to be configured with a target device, protocol, and UDP/TCP port number for each IP SLA operation.  The source router uses the IP SLA control protocol to confirm communication with the responding host before the source sends the test messages.</span></p>
<p><span style="color: #000000;">To increase security, the responder can use an MDF hash to authenticate the message from the source, securing the exchange.</span></p>
<p><span style="color: #000000;">When the operation is complete, the results are stored in the IP SLA MIB on the source and can be retrieved via SNMP (or by traps which can be conditionally set to send alerts if thresholds are exceeded).</span></p>
<p><span style="color: #000000;">Almost all of the configuration occurs on the source router.  The source sends the probe packets that test whatever protocols the administrator chooses.  Although any IP device can be a respoder, another IP SLA router is prefered because the measurement accuracy will be improved.</span></p>
<h2><span style="color: #000000;"><span style="color: #ff6600;">IP SLA Operation Breakdown</span></span></h2>
<ol>
<li><span style="color: #000000;">Source sends a IP SLA control message with the configured operation to the responder using UDP port 1967.  The control message carries the protocol, port, and duration defined when the operation was configured on the source router.<br />
</span><span style="color: #000000;">*  If MD5 is enabled, the checksum is sent with the control message.<br />
*  I authentication is enabled, the responder verifies it.  If authentication fails, the responder returns an authentication failure message.<br />
* If a response is not received from the responder, it will attempt to retransmit until it eventually times out.</span></li>
<li><span style="color: #000000;">The responder sends a confirmation message back to the source router and listens on the specified port.</span></li>
<li><span style="color: #000000;">If the response from the control message is OK, it begins sending probe packets.</span></li>
<li><span style="color: #000000;">The responder responds to the incoming probe packets for the predetermined time.</span></li>
</ol>
<p> </p>
<p style="text-align: center;"><span style="color: #000000;"><span style="color: #ff6600;"><a href="http://www.ccnpguide.com/wp-content/uploads/2010/08/IP-SLA.png"><img class="alignnone size-full wp-image-277" title="IP SLA Diagram" src="http://www.ccnpguide.com/wp-content/uploads/2010/08/IP-SLA.png" alt="" width="485" height="160" /></a></span></span></p>
<p style="text-align: left;"> </p>
<p style="text-align: left;"><span style="color: #000000;"><a href="http://www.ccnpguide.com/wp-content/uploads/2010/08/IP-SLA.png"></a></span><strong> The diagram above outlines the timestamp process IP SLA uses to calculate round trip time (RTT) accurately.</strong></p>
<ol>
<li>
<div style="text-align: left;">The source sends a packet at time T1</div>
</li>
<li>
<div style="text-align: left;">The responder record both the receipt time (T2) and the transmitted time (T3).  Because there can delay between when the router receives t packet and when a confirmation is sent back out the interface, it tracks the difference in time(in sub-milliseconds).  The source later subtracts this difference from the total RTT because it was not time in transit, but rather router software processing time.</div>
</li>
</ol>
<p style="text-align: left;">An additional benefit of so many timestamps is the ability to track one-way delay, jitter, and packet loss.  Remember that traffic behavior can be asynchronous.  Also, make sure that both devices are using the same source for clock information.  The same NTP server is a requirement for many of these functions.</p>
<h2 style="text-align: left;"><span style="color: #ff6600;">Configuring IP SLA</span></h2>
<ol>
<li>
<div style="text-align: left;">Configure the source router</div>
</li>
<li>
<div style="text-align: left;">Activate the IP SLA on the source</div>
</li>
<li>
<div style="text-align: left;">Configure that tracking object on the source</div>
</li>
<li>
<div style="text-align: left;">Configure responder</div>
</li>
</ol>
<p style="text-align: left; padding-left: 30px;"><span style="text-decoration: underline;">Example Source Configuration</span><br />
Switch(config)# ip sla 10 (number indicates the IP SLA test identifier)<br />
Switch(config-sla)# type echo prot ipIcmpEcho 192.168.1.10 source-int fa0/1<br />
Switch(config-sla)# frequency 20 (number of times the operation repeats)<br />
Switch(config)# exit<br />
Switch(config)# ip sla schedule 10 life forever start-time now<br />
Switch(config)# track 1 ip sla 10 reachability</p>
<p style="text-align: left;"><span style="text-decoration: underline;">Responder Configuration:</span><br />
Switch2(config)# ip sla monitor responder</p>
<h2 style="text-align: left;"><span style="color: #ff6600;">Verifying IP SLA</span></h2>
<p style="text-align: left;">Switch# <strong>show ip sla statistics</strong><br />
Switch# <strong>show ip sla configuration </strong>{<em>operationID</em>}<br />
 </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/ccnp-switch-642-813-snmp-syslog-ip-sla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Next Topic &#8211; High-Availability</title>
		<link>http://www.ccnpguide.com/next-topic-high-availability/</link>
		<comments>http://www.ccnpguide.com/next-topic-high-availability/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 16:33:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=265</guid>
		<description><![CDATA[Wow, I have to say &#8211; that last post on Inter-VLAN routing was brutal.  It&#8217;s an important topic for the CCNP SWITCH Exam, but that was long.  This week I&#8217;m focused on the high-availability topics that will be covered in the exam.  Some technology overviews to look forward to:  Network Monitoring Syslog SNMP IP SLA Redundant Supervisor [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, I have to say &#8211; that last post on Inter-VLAN routing was brutal.  It&#8217;s an important topic for the CCNP SWITCH Exam, but that was long.  This week I&#8217;m focused on the high-availability topics that will be covered in the exam. </p>
<p>Some technology overviews to look forward to:</p>
<ul>
<li> Network Monitoring
<ul>
<li>Syslog</li>
<li>SNMP</li>
<li>IP SLA</li>
</ul>
</li>
<li>Redundant Supervisor Cards
<ul>
<li>Route processor redundancy</li>
<li>SSO</li>
<li>NSF</li>
</ul>
</li>
<li>First Hop Redundancy Protocols
<ul>
<li>HSRP</li>
<li>VRRP</li>
<li>GLBP</li>
</ul>
</li>
</ul>
<p>Anything I&#8217;m missing for high-availability?  Have a great week!</p>
<p>Aaron</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/next-topic-high-availability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CCNP SWITCH 642-813 :: Inter-VLAN Routing on Multilayer Switches</title>
		<link>http://www.ccnpguide.com/ccnp-switch-642-813-inter-vlan-routing-on-multilayer-switches/</link>
		<comments>http://www.ccnpguide.com/ccnp-switch-642-813-inter-vlan-routing-on-multilayer-switches/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 18:00:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=253</guid>
		<description><![CDATA[VLANs require a layer 3 device between them to communicate.  Cisco recommend using layer 3 routing at the distribution layer or core layer of the multilayer switched network to terminate local VLANS, isolate network problems,  and avoid access layer issues from affecting the core. There are 3 inter-VLAN routing device options: layer 3 multilayer Catalyst [...]]]></description>
			<content:encoded><![CDATA[<p>VLANs require a layer 3 device between them to communicate.  Cisco recommend using layer 3 routing at the distribution layer or core layer of the multilayer switched network to terminate local VLANS, isolate network problems,  and avoid access layer issues from affecting the core.</p>
<p><strong>There are 3 inter-VLAN routing device options:</strong></p>
<ul>
<li>layer 3 multilayer Catalyst switch</li>
<li>external router that allows trunking (router-on-a-stick)</li>
<li>external router with enough interfaces for every VLAN (this doesn&#8217;t scale and is very expensive)</li>
</ul>
<p><strong>All Catalyst multilayer switches support the following types of layer 3 interfaces:</strong></p>
<ul>
<li><strong>Routed port</strong> &#8211; a pure layer 3 port similar to that on a router</li>
<li><strong>Switch virtual interface (SVI)</strong> &#8211; virtual routed VLAN interface for inter-VLAN routing</li>
<li><strong>Bridge virtual interface (BVI)</strong> &#8211; a layer 3 bridging interface</li>
</ul>
<h1><span style="color: #808080;">Inter-VLAN Routing Types // Advantages and Disadvantages</span></h1>
<h2><span style="color: #ff6600;">External Router (router -on-a-stick)</span></h2>
<p><strong>Advantages</strong></p>
<ul>
<li>Works with almost all switches because the switches do not have to support layer 3, just VLANs and trunking</li>
<li>Simple configuration (one switch port, one router interface)</li>
</ul>
<p><strong><span id="more-253"></span>Disadvantages</strong></p>
<ul>
<li>Router is a single point of failure</li>
<li>If the trunk becomes congested, it can affect every VLAN</li>
<li>Slightly higher latency because traffic must leave and renter the switch and the router makes the traffic decisions in software (which is slower than hardware)</li>
</ul>
<h2><span style="color: #ff6600;">Switch Virtual Interfaces</span></h2>
<p>Remember that Cisco recommends using layer 2 between access and distribution layers and layer 3 routing between distribution and core layers.</p>
<p>SVIs are virtual VLAN interfaces on multilayer switches that are configured in the same way a trunk interface on a router would.  One SVI is created for each VLAN to be routed and it performs the process for all the packets associated with that VLAN.</p>
<p>The only SVI created by default is the SVI for VLAN 1.  The rest must be created manually, although the switch will created an SVI the first time a VLAN interface mode is entered for a particular VLAN.<br />
For example, when thew command <em># interface vlan 10</em> is entered SVI 10 is automatically created on the switch.</p>
<p>Whenever an SVI is created, make sure the VLAN is present in the VLAN table, otherwise the interface will remain down.</p>
<p><strong>Advantages</strong></p>
<ul>
<li>Fast because all performed in hardware</li>
<li>No need for external links for routing</li>
<li>Low latency (doesn&#8217;t need to leave the switch)</li>
</ul>
<p><strong>Disadvantages</strong></p>
<ul>
<li>May require a more expensive switch</li>
</ul>
<h2><span style="color: #ff6600;">Routed Ports</span></h2>
<p>Routed ports are physical ports on the switch that act much like a router interface would with an IP address configured.   Routed ports are not associated with an particular VLAN and do not run layer 2 protocols like  STP and VTP.</p>
<p><em>Note:  Routed interfaces do not support subinterfaces.</em></p>
<p>Routed ports are point-to-point links that usually connect core switches to other core switches or distribution layer switches (if the distribution layer is running layer 3).</p>
<p>Make sure when configuring a routed port that you use the <em>no switchport</em> command to make sure the interface is configured to operate at layer 3.  Also make sure to assign IP addresses and any other layer 3 information required.  Check the routing protocols are configured.</p>
<p><strong>Advantages</strong></p>
<ul>
<li>A multilayer switch can have both SVIs and routed ports configured</li>
<li>Multilayer switches forward all layer 2 and 3 traffic in hardware, so it is very fast</li>
</ul>
<h1><span style="color: #808080;">Configuring Inter-VLAN Routing with an External Router</span></h1>
<h2><span style="color: #ff6600;">Implimentation Planning</span></h2>
<ul>
<li><span style="color: #000000;">Need to know how many VLANS require routing, the VLAN IDs, and what ports connect to the router</span></li>
<li><span style="color: #000000;">Every router subinterface must be configured with the same type of frame encapsulation (usually 802.1q) as well as the switch side of the link</span></li>
<li><span style="color: #000000;">Make sure the native VLAN is the same on both ends.  Now a subinterface on the router can be created for the native VLAN, also if it is a subinterface &#8211; make sure to define its encapsulation type with the <strong>encapsulation dot1q </strong><em>ID</em><strong> vlan</strong> command.</span></li>
<li><span style="color: #000000;">It is best practice to match the subinterface ID to the VLAN ID</span></li>
</ul>
<p><span style="color: #ff6600;"> </span></p>
<h2><span style="color: #ff6600;">Configuring Router-on-a-stick</span></h2>
<ol>
<li>Enable trunking on the switch port</li>
<li>Enable the router interface with the <strong>no shut</strong> command</li>
<li>Crate the subinterfaces on the router for each VLAN<strong><br />
</strong></li>
<li>Configure IPs and encapsulation on each subinterface as they relate to their VLANs<br />
<strong>Switch (conf-subif)# encapsulation [dot1q | isl] vlan-id {native}<br />
Switch (conf-subif)# ip address </strong><em>x.x.x.x  x.x.x.x</em></li>
</ol>
<p style="padding-left: 60px;"><strong><span style="font-weight: normal;"><em><span style="text-decoration: underline;">Example router interface configuration<br />
</span></em></span></strong>Router(config)# interface FastEthernet0/0<br />
Router(config-if)#no shutdown<br />
Router(config)# interface FastEthernet 0/0.1<br />
Router(config-subif) description VLAN 1<br />
Router(config-subif)# encapsulation dot1Q 1 native<br />
Router(config-subif)# ip address 10.1.1.1 255.255.255.0<br />
Router(config-subif)# exit<br />
Router(config)# interface FastEthernet 0/0.2<br />
Router(config-subif)# description VLAN 2<br />
Router(config-subif)# encapsulation dot1Q 2<br />
Router(config-subif)# ip address 10.2.2.1 255.255.255.0<br />
Router(config-subif)# exit<br />
Router(config)# end</p>
<div style="padding-left: 60px;"><span style="text-decoration: underline;"><em>Example switch trunk interface configuration (connected to router&#8217;s Fa 0/0)</em></span></div>
<div style="padding-left: 60px;">
<div>switch(config)# interface FastEthernet 4/2</div>
<div>switch(config-if)# switchport trunk encapsulation dot1q</div>
</div>
<div style="padding-left: 60px;">switch(config-if)# switchport mode trunk</div>
<p><span style="color: #ff6600; font-size: x-large;"><strong><span style="color: #000000; font-size: small;"><span style="font-weight: normal;"><br />
</span></span></strong></span></p>
<h1 style="font-size: 2em;"><span style="color: #808080;">Configuring Inter-VLAN Routing with SVIs</span></h1>
<h2><span style="color: #808080;"> </span><strong><span style="color: #ff6600;">Implementation Planning</span></strong></h2>
<ul>
<li><span style="color: #000000;">Identify which VLANs require layer 3 gateways as you may not want all VLANs to be routable within the organization</span></li>
<li><span style="color: #000000;">Make sure VLANs are create don the switch, then make SVIs</span></li>
<li><span style="color: #000000;">Find out what IPs need to be configured on each SVI interface, then use the <strong>no shutdown </strong>command to enable them</span></li>
<li>Configure any routing protocols that are required</li>
<li><span style="color: #000000;">Determine if any switchports should be excluded from contributing to the SVI line-state up-and-down calculation </span></li>
</ul>
<h2 style="font-size: 1.5em;"><span style="color: #ff6600;">Configuring SVIs</span></h2>
<ol>
<li>Select an SVI</li>
<li>Assign an IP address to the interface</li>
<li>Enable the interface</li>
<li>Optional &#8211; Enable IP routing on the router</li>
<li>Optional &#8211; Enable an IP routing protocol</li>
</ol>
<p><em><strong>Note:</strong> Routing protocols are only required to allow different devices to communicate across different VLANs or networks.  They are not required to route between SVIs on the same switch because the switch sees the SVIs as connected interfaces.</em></p>
<p style="padding-left: 60px;"><em><span style="text-decoration: underline;"><span style="text-decoration: underline;">Example Configuration</span></span></em></p>
<p style="padding-left: 60px;"><em><span style="font-style: normal;">Switch# configure terminal<br />
</span></em>Enter configuration commands, one per line.  End with CNTL/Z.<br />
Switch(config)# ip routing<br />
Switch(config)# router rip<br />
Switch(config-router)# network 10.0.0.0<br />
Switch(config)# interface vlan 10<br />
Switch(config-if)# ip address 10.10.1.1 255.0.0.0<br />
Switch(config-if)# no shutdown<br />
Switch(config-if)# interface vlan 20<br />
Switch(config-if)# ip address 10.20.1.1 255.255.255.0<br />
Switch(config-if)# no shutdown</p>
<h2 style="font-size: 1.5em;"><span style="color: #ff6600;">SVI Autostate</span></h2>
<p><span style="color: #ff6600;"><span style="color: #000000;">An SVI is auto automatically created when the following conditions are met:</span></span></p>
<ul>
<li>The VLAN is active and exists in the VLN database</li>
<li>The VLAN interface exists and is not administratively shut down</li>
<li>At least a single port on the switch has a port in the VLAN, is in the up state, and is in the spanning-tree forwarding state.</li>
</ul>
<p>This automatic SVI creation is called SVI Autostate.  If there are multiple ports on the switch in the same VLAN, the default action is to take down the SVI interface if all of the ports in that VLAN are shut down.</p>
<p>The command <strong>switchport autostate exclude</strong>, when applied to port, will allow the VLAN to go down if all of the other ports in the VLAN go down except the one autostate exclude was applied to.  This is often desirable when traffic analyzers are attached to a host.  They will stay up, but are just passive monitors, so if all other devices in the VLAN go down &#8211; this port would prevent the VLAN from going down, so autostate exclude is applied to allow the VLAN to still go down.</p>
<h1><span style="color: #808080;">Configuring Inter-VLAN Routing with Routed Ports</span></h1>
<p><span style="color: #808080;"> </span></p>
<div id="_mcePaste">
<ol>
<li>Select the interface</li>
<li>Convert to layer 3 port (no switchport command)</li>
<li>An an IP address</li>
<li>Enable the interface (no shut command)</li>
</ol>
</div>
<div style="padding-left: 30px;"><span style="text-decoration: underline;"><em>Example Configuration</em></span></div>
<div style="padding-left: 30px;">Core(config)# interface GigabitEthernet 1/1</div>
<div id="_mcePaste" style="padding-left: 30px;">Core(config-if)# no switchport</div>
<div id="_mcePaste" style="padding-left: 30px;">Core(config-if)# ip address 10.10.1.1 255.255.255.252</div>
<div id="_mcePaste" style="padding-left: 30px;">Core(config-if)# exit</div>
<div><strong>Verification Commands</strong></div>
<h2><span style="color: #ff6600;"> </span></h2>
<ul>
<li>show ip interface<em> interface_type_port| svi_number </em></li>
<li>show interface <em>interface_type_port| svi_number </em></li>
<li>show running <em>interfacetype_port| svi_number </em></li>
<li>ping</li>
<li>show vlan</li>
<li>show interface trunk</li>
</ul>
<h1><span style="color: #808080;">Troubleshooting Inter-VLAN Problems</span></h1>
<p><span style="color: #000000;">Here is a list to run through when identifying an issue related to inter-VLAN routing:</span></p>
<ul>
<li>Correct VLANs on switches and trunks</li>
<li>Correct routes</li>
<li>Correct primary and secondary root bridges</li>
<li>Correct IP addresses and masks</li>
</ul>
<p><strong>The table below outlines common issues that may come up and some potential causes.</strong></p>
<p><span style="font-family: 'Lucida Grande', Verdana, Arial, 'Bitstream Vera Sans', sans-serif; line-height: 16px; font-size: 12px; color: #333333;"><strong>
<table id="wp-table-reloaded-id-5-no-1" class="wp-table-reloaded wp-table-reloaded-id-5">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Problem</th><th class="column-2">Potential Cause</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">Missing VLAN</td><td class="column-2">Make sure:<br />
VLAN defined across switches<br />
VLAN enabled on trunk ports<br />
Ports in correct VLANs<br />
</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">Layer 3 port misconfiguration</td><td class="column-2">SVI wrong IP and/or mask<br />
SVI not up<br />
SVI number does not match VLAN number<br />
Routing is not enabled</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">Routing protocol misconfiguration</td><td class="column-2">Make sure all necessary interfaces and networks are in routing protocol.  Only required if need to connect to other routers.</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">Host Misconfiguration</td><td class="column-2">Check Host IP and mask<br />
Check host's default gateway.  It should be the SVI or layer 3 interface IP address.</td>
	</tr>
</tbody>
</table>
</strong></span></p>
<p><span style="font-family: 'Lucida Grande', Verdana, Arial, 'Bitstream Vera Sans', sans-serif; line-height: 16px; font-size: 12px; color: #333333;"><strong><span style="color: #000000; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-weight: normal; line-height: 19px; font-size: 13px;"> </span></strong></span></p>
<h1 style="font-size: 2em;"><span style="color: #808080;">How create Layer 3 EtherChannels</span></h1>
<ol>
<li><span style="color: #000000;">Create a virtual layer 2 interface<br />
Switch(config)<strong># interface port-channel 1</strong></span></li>
<li><span style="color: #000000;">Change the port to layer 3<br />
Switch(config-if)# <strong>no switchport</strong></span></li>
<li><span style="color: #000000;"><strong><span style="font-weight: normal;">Assign an IP address</span><br />
<span style="font-weight: normal;">Switch(config-if)#</span> ip address ip_address subnet_mask </strong></span></li>
<li><span style="font-weight: normal;">Select the interface </span><br />
<span style="font-weight: normal;">Switch(config)# </span>interface <em>range interface_id portnumber_range </em></li>
<li><span style="font-weight: normal;">Set the interface to layer 3.  If all of the physical interfaces are not acting in the same layer, the EtherChannel will not form.<br />
</span><span style="font-weight: normal;">Switch(config-if-range)#</span> no switchport</li>
<li><span style="font-weight: normal;">Assign all physical interfaces to the EtherChannel group.<br />
Switch(config-if-range) # </span>channel-group <span style="font-weight: normal;"><em>channel-group-number</em></span> mode {auto [non-silent] | desirable [non-silent] | on} | {active | passive}</li>
</ol>
<h1 style="font-size: 2em;"><span style="color: #888888;">Implementing DHCP in a Multilayer Switch Environment</span></h1>
<p><span style="color: #000000;">By default, Catalyst multilayer switches include DHCP relay agent software. </span></p>
<p><span style="color: #000000;">Distribution multilayer switches often act as layer 3 gateways for clients connecting to the access switches.  Because of this DHCP can be provided within the same switches </span><span style="color: #000000;">to serve the hosts with IP addresses and other necessary network parameters.</span></p>
<p><span style="color: #000000;">The other option is to consolidate the DHCP services to one or more dedicated servers.  In that case, the distribution layer must redirect incoming client DHCP requests to </span><span style="color: #000000;">the external DHCP server.</span></p>
<h2><span style="color: #ff6600;">Configuring DHCP service on the multilayer switch</span></h2>
<ol>
<li><span style="color: #000000;">By default the switch assumes the whole network range for the DHCP scope.  To exclude certain addresses or ranges, in global config mode, use the <strong>ip</strong><strong> </strong><strong>dhcp</strong><strong> excluded-address</strong> </span><span style="color: #000000;">command.  Follow it with a range of addresses to exclude from your scope.  For discontinuous ranges, use more than one <strong>ip</strong><strong> </strong><strong>dhcp</strong><strong> excluded-address</strong> commands.</span></li>
<li><span style="color: #000000;">Configure the network value, which indicates the subnet to offer addresses from.</span></li>
<li><span style="color: #000000;">Configure any other network parameters you would like the switch to server in its DHCP offers (ex. default-gateway, lease duration, subnetmask, DNS server address).</span></li>
</ol>
<p><span style="color: #000000;"><em>Note:  Remember that a switch cannot offer DHCP addresses for a subnet it is not a member of.</em><br />
</span></p>
<p style="padding-left: 30px;"><span style="text-decoration: underline;">Configuration Example</span><br />
Switch(config)# ip dhcp excluded-address 10.1.10.1 10.1.10.20 (range beginning to end)<br />
Switch(config)# ip dhcp pool example10<br />
Switch(config-dhcp)# network 10.1.10.0 255.255.255.0<br />
Switch(config-dhcp)# default-router 10.1.10.1<br />
Switch(config-dhcp)# option 150 10.1.1.50 (Option 15- specifies a TFTP server IP &#8211; often for IP phones to reach Call Managers)<br />
Switch(config-dhcp)# lease 0 8 0 (0 days 8 hours 0 minutes)</p>
<p style="padding-left: 30px;">Switch(config)# interface vlan10<br />
Switch(config-if)# ip address 10.1.10.1 255.255.255.0</p>
<h2 style="font-size: 1.5em;"><span style="color: #ff6600;">Configuring DHCP Relay</span></h2>
<p><span style="color: #000000;">If an enterprise is using external DHCP servers, then the <strong>ip helper-address</strong> command must be entered on the layer 3 interface.  Because hosts use broadcast messages to try to find the DHCP server, if it is in a different subnet, it will be dropped at the default gateway because broadcasts are not forwarded across VLAN boundaries.</span></p>
<p><span style="color: #000000;">The DHCP relay agent allows the DHCP request to be forwarded on as a unicast message to a single IP address.  It not only forwards DHCP services, but also TFTP, DNS, Time, NetBIOS, names server, and BOOTP packets by default.</span></p>
<p><span style="color: #000000;">The <strong>ip helper-address </strong>command must be applied to the layer 3 interface itself.</span></p>
<p style="padding-left: 30px;"><span style="color: #000000;"><span style="text-decoration: underline;">Configuration Example</span><br />
switch(config)# interface vlan10<br />
</span>switch(config-if)# ip address 10.1.10.1 255.255.255.0<br />
switch(config-if)# ip helper-address 10.1.100.1</p>
<p><em>Note:  You can apply to to an SVI or a routed interface.</em></p>
<p><em><span style="font-style: normal;"> </span></em></p>
<p><em> </em></p>
<p><em> </em></p>
<p><em> </em></p>
<h2 style="font-size: 1.5em;"><span style="color: #ff6600;"><span style="font-style: normal;">Verifying DHCP Settings</span></span></h2>
<p><span style="font-style: normal;"><span style="font-style: normal;"> </span></span></p>
<p><em><span style="font-style: normal;"> </span></em></p>
<p style="display: inline !important;"><span style="color: #000000;"><span style="font-style: normal;">Use these two commands to check its operation:</span></span></p>
<p><span style="font-style: normal;"> </span></p>
<p><span style="color: #000000;"><span style="font-style: normal;"> </span></span></p>
<ul>
<li><span style="font-style: normal;">show ip dhcp binding &#8211; displays client DHCP bindings including IP address and MAC</span></li>
<li><span style="font-style: normal;">debug ip dhcp server packet &#8211; shows in real-time the DHCP discover, offer, reply, and ack packets</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/ccnp-switch-642-813-inter-vlan-routing-on-multilayer-switches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CCNP SWITCH 642-813 :: Spanning Tree Enhancements &amp; Best Practices</title>
		<link>http://www.ccnpguide.com/ccnp-switch-642-813-spanning-tree-enhancements-best-practices/</link>
		<comments>http://www.ccnpguide.com/ccnp-switch-642-813-spanning-tree-enhancements-best-practices/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 13:50:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=231</guid>
		<description><![CDATA[  BPDU Guard Prevents problems related to switches accidentally being connected to PortFast-enabled ports.  Bridging loops would normally instantly occur. It places the port in err-disable state if it receives a BPDU - disabling the interface. To enable BPDU Guard globally on the switch: Switch(config)# spanning-tree portfast edge bpduguard default To enable BPDU Guard at the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ccnpguide.com/wp-content/uploads/2010/08/STP-Enhancements.png"></a> </p>
<h2><span style="color: #ff6600;">BPDU Guard</span></h2>
<p>Prevents problems related to switches accidentally being connected to PortFast-enabled ports.  Bridging loops would normally instantly occur.</p>
<p>It places the port in err-disable state if it receives a BPDU - disabling the interface.</p>
<p><strong>To enable BPDU Guard globally on the switch:</strong><br />
Switch(config)# spanning-tree portfast edge bpduguard default</p>
<p><strong>To enable BPDU Guard at the interface level:<br />
</strong>Switch(config)# spanning-tree bpduguard enable</p>
<h2><span style="color: #ff6600;">BPDU Filtering</span></h2>
<p>Prevents BPDUs from being transmitted from PortFast-enabled interfaces.</p>
<p><strong>When enabled globally on the switch:</strong></p>
<ul>
<li>Configures all PortFast ports for BPDU filtering</li>
<li>If BPDUs are seen, the port looses its PortFast status, BPDU filtering is disabled, and STP resumes default operation on the port</li>
<li>When the port comes up, it sends 10 BPDUs, if it hears any BPDUs during that time PortFast and BPDU filtering are disabled</li>
</ul>
<p><strong>When applied to an individual port:</strong></p>
<ul>
<li>It ignores all BPDUs it receives</li>
<li>It does not transmit BPDUs</li>
</ul>
<p><em>Note:  If you enable BPDU Guard and BPDU filtering on the same interface, BPDU Guard has no effect because BPDU filtering has precedence over BPDU Guard.</em></p>
<p><span id="more-231"></span></p>
<p><strong>To enable BPDU filtering globally on the switch:</strong><br />
Switch(config)# spanning-tree portfast bpdufilter default</p>
<p><strong>To enable BPDU filtering at the interface level:</strong><br />
Switch(config)# spanning-tree bpdufilter enable</p>
<p><strong>To verify:</strong><br />
Switch# show spanning-tree summary<br />
    OR<br />
Switch# show spanning-tree interface fa 0/3 detail</p>
<h2><span style="color: #ff6600;">Root Guard</span></h2>
<p>Root guard was developed to control where root bridges can be located within the network.  Switches learn about and elect root bridges based on BPDUs they receive, so if a new switch is added to the environment with a lower bridge priority than the current root bridge, the new switch will become root &#8211; and in turn disrupting your carefully planned traffic patterns.  To prevent this from occurring, root guard can be applied to interface where a root bridge should never been seen.</p>
<p>When root guard is applied to an interface, it forces the port to essentially always remain a designated interface, never allowing it to transition to a root port.  If a root guard-enabled  port received a superior BPDU, it immediately moves the port to a root-inconsistent STP state (essentially the same as the listening state) and does not forward any traffic out that port.</p>
<p>When the root guard protected port stops receiving superior BPDUs, it automatically unblocks the port and proceeds through its normal listening, learning, and eventually forwarding states.  No intervention is required.</p>
<p> <strong>To enable root guard on an interface:</strong><br />
Switch(config)# int fa 4/4<br />
Switch(config-if)# spanning-tree guard root</p>
<h2><span style="color: #ff6600;">Loop Guard</span></h2>
<p>Most bridging loops that occur when STP is active happen when a port in blocking state stops receiving BPDUs on the interface and therefore transition the port to forwarding state &#8211; creating an all-ports-forwarding loop.  It blocks ports on a per-VLAN basis, so on trunks it will only block that VLAN &#8211; not the whole trunk.</p>
<p>Loop guard should be applied to all non-desgnated ports (ex. root, alternate). </p>
<p><strong>To enable loop guard on an interface:</strong><br />
Switch(config)# int fa 4/4<br />
Switch(config-if)# spanning-tree guard loop</p>
<p><strong>To enable loop guard globally on the switch:</strong><br />
Switch(config)# spanning-tree loopguard default</p>
<p><strong>To verify:</strong><br />
Switch# show spanning-tree interface fa 0/3 detail</p>
<h2><span style="color: #ff6600;">UDLD</span></h2>
<p>UDLD is another loop-prevention mechanism for STP.  It tries to discover unidirectional links before they grow into bridging loops.  This situation is much more common in fiber optic networks where there is a physical Rx/Tx pair and a situation can arrise where one is not functioning correctly.</p>
<p>STP relies on constant and consistant reception of BPDU messages.  If a switch stops receiving BPDUs on a desgnated (upstream) port, STP ages out the information for the port and transistiones it into forwarding state.  This will lead to a loop.</p>
<p>UDLD sends UDLD protocol packets to it neighbor switch &#8211; 15 seconds is the default.  The neighbor is then expected to echo packet the packets before a timer expires.  If the switch does not hear a reply it waits, before finally shutting down the port.</p>
<p>There are two UDLD modes:</p>
<ul>
<li><strong>Normal</strong>- UDLD simply places the port into an undetermined state if it stops hearing responses from its directly-connected neighbor</li>
<li><strong>Aggressive</strong>(Preferred) &#8211; Tries to re-establish the connection up to 8 times, then puts the port in err-disable state (essentially shutting down the port)</li>
</ul>
<p><em>Note:  UDLD is enabled by default on all Ethernet fiber-optic interfaces.</em></p>
<p><strong>To enable UDLD on an interface:</strong><br />
Switch(config)# int fa 4/4<br />
Switch(config-if)# udld port {aggressive}</p>
<p><strong>To enable UDLD globally on all fiber ports:</strong><br />
Switch(config)# udld {enable | aggressive}</p>
<p><em>Note:  While both loop guard and aggressive UDLD have many overlapping functions, enabling both provides the best protection.</em></p>
<h2><span style="color: #ff6600;">Flex Links</span></h2>
<p>Flex links is a layer 2 solution that allows you to disable STP at the access layer, while maintaining link redundancy and loop avoidance.  Flex links allow a convergence time of less than 50 milliseconds (super fast). </p>
<p>Flex links work by combining a pair of links on a common access switch.  One link is active, while the other acts as a backup if the other link fails for any reason.  The interfaces can be physical ports or EtherChannel bundles.</p>
<p>Some more details:</p>
<ul>
<li>One a single backup port is allowed per active port and they must both be on the same switch or stack.</li>
<li>The  active and backup links can be dissimilar types and work just fine (ex. fasteth/gig, gig/etherchannel, etc..)</li>
<li>STP is always disabled on Flex links</li>
</ul>
<p><strong>The configuration is done exclusively on the &#8220;active&#8221; interface with the following command:</strong><br />
Switch(config)# int fa 4/4<br />
Switch(config-if)# switchport backup interface fa 5/17</p>
<p><strong>To verify:</strong><br />
Switch# sh int switchport backup</p>
<h1><span style="color: #888888;">Spanning Tree Best Practices<br />
</span></h1>
<ul>
<li><strong>Something to consider with spanning tree is the lack of multipathing options.</strong>  STP eliminates loops by creating a tree structure where a single link is created to each switch.  This means that even with all the redundant links you put in place, STP will always only allow one &#8211; reducing much of your available bandwidth.Because of this and other limitations, it is recommended to use layer 3 at both the distribution and core layers.  Using layer 3 between the distribution and core allows you to use multipathing (up to 16 paths) using Equal-Cost Multipathing (ECMP) with the dependency of STP.  Also, the new Nexus 7ks allow layer 2 multipathing with two links using virtual port channels.</li>
<li>Because a 50 second network convergence delay is usually not acceptable in modern networks, RSTP is prefered. </li>
<li>STP should absolutely be used on the network edge to prevent user/wiring errors from propagating throughout the network</li>
<li>A root bridge should be manually assigned in every STP topology</li>
<li>If using PVST+ or RPVST+, assign a root bridge for each VL:AN using the command:<br />
<strong>#spanning-tree vlan <em>ID</em> root</strong></li>
<li>Use the STP Enhancements (sometimes referred to as the STP toolkit) to optimize the topology</li>
<li><strong>Loop guard &#8211; </strong>Implement on layer 2 uplink ports between access and distribution layer</li>
<li><strong>Root guard &#8211; </strong>Implement on distribution switch ports facing the access ports</li>
<li><strong>UplinkFast</strong>- Implement on uplink ports from access to distribution switches</li>
<li><strong>BPDU guard</strong> or <strong>root guard</strong>- Implement on access ports connected to end devices, as is <strong>PortFast</strong></li>
<li><strong>UDLD -</strong>Sometimes implemented on fiber ports between switches</li>
</ul>
<p> </p>
<p><a href="http://www.ccnpguide.com/wp-content/uploads/2010/08/STP-Enhancements.png"><img class="alignnone size-full wp-image-240" title="STP Enhancements" src="http://www.ccnpguide.com/wp-content/uploads/2010/08/STP-Enhancements.png" alt="" width="493" height="432" /></a></p>
<h1><span style="color: #808080;">Troubleshooting Spanning Tree</span></h1>
<p><span style="color: #808080;"> <span style="color: #000000;"><strong>Duplex Mismatch</strong></span></span></p>
<p><span style="color: #808080;"><span style="color: #000000;">If one side of a link is set to half duplex and the other is set to full , then the potential exists that the full duplex side will begin sending lots of traffic to the half duplex interface.  If that happens, the half duplex interface will experience collisions when it attempts to transmit STP BPDUs.  The full duplex interface will therefore never receive them, and assume other interfaces on the switch in blocking state can transfer to a forwarding state &#8211; creating a loop.</span></span></p>
<p><strong>Unidirectional link failure</strong></p>
<p>This occurs when a hardware failure causes a normally two-way link to become a one-way link.  The potential loop problem is the same as with the duplex mismatch issue, with one side moving from blocking to forwarding because they stop receiving superior BPDUs on the interface.</p>
<p>Aggressive UDLD can prevent loops from forming when this occurs by putting the offending port into err-disable state.  Cisco recommends using agressive UDLD on all point-point links in a switched environment.</p>
<p><strong>Frame Corruption</strong></p>
<p>This is a very uncommon cause of STP loops, but it exists when errors on an interface do not allow BPDU frames from being received.  Again, a pot moves from blocking to forwarding because they stop receiving superior BPDUs on the interface. This could be caused by a duplex mismatch, bad cable, or incorrect cable length.</p>
<p><strong>Resource Errors</strong></p>
<p>If for any reason the CPU of a switch is over-utilized, there exists the possibility that it will be unable to send out BPDUs.  STP is generally not very resource intensive, but be careful when running PVST+.</p>
<p><strong>PortFast-related Errors</strong></p>
<p>PortFast interfaces move directly into forwarding state, so if a hub or switch gets connected to an edge port configured with PortFast, a loop will form.  BPDO Guard can prevent this condition.<br />
General STP Troubleshooting Methodology</p>
<ol>
<li><strong>Develop a plan.</strong></li>
<li><strong>Isolate the cause and correct an STP problem.</strong></li>
<li><strong>Document findings.</strong></li>
</ol>
<p><strong>Develop a plan</strong><br />
In order to make a plan, you must know the following parts of the network:<br />
* The switched topology<br />
* The location of the root bridge<br />
* The location of blocking ports</p>
<p><strong>Correct the problem</strong><br />
1. Identify a bridging loop<br />
The best way to determine a loop is to capture packets on a saturated link and look for duplicate packets.  Another option is to look for abnormally high interface utilization values.</p>
<p>Some common symptoms include HSRP may complain of duplicate IP addresses, consistent flapping of MAC values because MAC addresses do not flap.</p>
<p><strong>Restore connectivity</strong><br />
Most of the time administrators do not have he luxury of time to identify the root cause of a loop, instead they must stop it as quickly as possible.  Here are some options:</p>
<ul>
<li>Disable every port that is providing redundancy, starting with areas of the network more affected.  Try to disable ports you know should be in blocking state if possible.</li>
<li>If it is difficult to pin down, increase the level of STP logging on the switches.  The loops form when a port moes into forwarding state, so it can latter be identified.</li>
</ul>
<p style="padding-left: 30px;">Try this:<br />
Switch# <strong>debug spanning-tree events</strong></p>
<p style="padding-left: 30px;">To log the events:<br />
Switch(config)# <strong>logging buffered</strong></p>
<p><strong>Check Port Statuses</strong><br />
Start with blocking ports first &#8211; here are some more guidelines:</p>
<ul>
<li>Make sure switch both root and blocking ports are receiving BPDUs</li>
<li>Switch# <strong>sh spanning-tree vlan <em>ID</em> detail</strong>   (enter multiple times to see if the number is increasing)</li>
<li>Look for duplex mismatch errors using the <strong>show interface</strong> command</li>
<li>Check port utilization with the show interface command.  Look at the load, input/output values for abnormally high rates.</li>
<li>Look for an increase of input error fields using the <strong>show interface</strong> command.</li>
<li>Check for resource errors</li>
</ul>
<p><strong>Resource Errors</strong><br />
Use the <strong>show process cpu</strong> command to check whether the CPU utilization is nearing 100%.</p>
<p><strong>Disable Unnecessary Features</strong><br />
Sometimes it becomes easier to identify a solution when the network is simplified.  Try disabling unnecessary features to reduce complexity.  Save the configuration before making the changes so it can be restored after the issue is resolved.</p>
<p><strong>Document Findings<br />
</strong>It is important to document both your findings and any changes to the network after the dust clears.  Current and detailed documentation also reduces troubleshooting time in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/ccnp-switch-642-813-spanning-tree-enhancements-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CCNP SWITCH 642-813 :: Multiple Spanning Tree (MST)</title>
		<link>http://www.ccnpguide.com/ccnp-switch-642-813-multiple-spanning-tree-mst/</link>
		<comments>http://www.ccnpguide.com/ccnp-switch-642-813-multiple-spanning-tree-mst/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 16:47:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=222</guid>
		<description><![CDATA[  MST expands upon the IEEE 802.1w RST algorithm in an attempt to reduce the number of STP instances, thus reducing the required CPU cycles on a switch.  MST enables you to group VLANs and associate them with spanning tree instances.  Each instance&#8217;s topology can be independent of the rest, optimizing load balancing and fault [...]]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>MST expands upon the IEEE 802.1w RST algorithm in an attempt to reduce the number of STP instances, thus reducing the required CPU cycles on a switch.  MST enables you to group VLANs and associate them with spanning tree instances.  Each instance&#8217;s topology can be independent of the rest, optimizing load balancing and fault tolerance measures.  MST is also backwards compatible with all older STP variations.</p>
<p>Switches participating in MST that have the same MST configuration information are referred to as a region.  Switches with different MST configurations or that are running legacy 802.1D are considered separate MST regions.</p>
<p>MST is usually not implemented in campus environments because if you follow the local VLAN model (recommended by Cisco), there should not be that many VLANs on any given switch because they should only extend to the switch block boundary.  That makes RPVST+ a better choice because of it&#8217;s simpler configuration.</p>
<p><span id="more-222"></span></p>
<h2><span style="color: #ff6600;">Multiple Spanning Tree Regions</span></h2>
<p><span style="color: #000000;">Each switch that runs MST in the network has a single MST configuration consisting of the following 3 items:</span></p>
<ul>
<li><span style="color: #000000;">Configuration name (alphanumeric)</span></li>
<li><span style="color: #000000;">Configuration revision number</span></li>
<li><span style="color: #000000;">A 4096-element table that associates each VLAN to a given instance</span></li>
</ul>
<h2><span style="color: #ff6600;">MST Configuration</span></h2>
<p>Each switch that runs MST:</p>
<p><strong>Enable MST globally:</strong><br />
Switch(config)# spanning-tree mode mst</p>
<p><strong>Enter MST Submode:<br />
</strong>Switch(config)# spanning-tree mst configuration<br />
Switch(config-mst)# sh current</p>
<p><strong>Define a configuration name</strong>:<br />
Switch(config-mst)# name <em>XYZ</em></p>
<p><strong>Set the MST revision number</strong>:<br />
Switch(config-mst)# revision 1</p>
<p><strong>Map the VLANs to an MST instance:<br />
</strong>Switch(config-mst)# instance 1 vlan 3, 5, 7<br />
Switch(config-mst)# instance 2 vlan 2, 4, 6</p>
<p><strong>Display configuration to be applied:<br />
</strong>Switch(config-mst)# show pending</p>
<p><strong>Display current running MST configuration:<br />
</strong>Switch(config-mst)# show current</p>
<p><strong>Apply the configuration:<br />
</strong>Switch(config-mst)# end</p>
<p><strong>Cancel the configuration:<br />
</strong>Switch(config-mst)# abort</p>
<p><strong>Assign an MST root bridge<br />
</strong>Switch(config)# spanning-tree mst 2 root primary</p>
<h2><span style="color: #ff6600;">Verification Commands</span></h2>
<ul>
<li>Switch# show spanning-tree mst</li>
<li>Switch# show spanning-tree mst 1  (to view MST info for a single instance)</li>
<li>Switch# show spanning-tree mst 1 detail</li>
<li>Switch# show spanning-tree mst interface fa 0/3</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/ccnp-switch-642-813-multiple-spanning-tree-mst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weekend Hiatus</title>
		<link>http://www.ccnpguide.com/weekend-hiatus/</link>
		<comments>http://www.ccnpguide.com/weekend-hiatus/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 17:12:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=216</guid>
		<description><![CDATA[  Our family was out of town for the weekend visiting family, so needless to say, my studying momentum has slowed.  I&#8217;m going to try and wrap up all the spanning tree related notes this week so I can move onto more interesting topics (like high-availability).  Hang with me while we push through spanning tree [...]]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>Our family was out of town for the weekend visiting family, so needless to say, my studying momentum has slowed.  I&#8217;m going to try and wrap up all the spanning tree related notes this week so I can move onto more interesting topics (like high-availability).  Hang with me while we push through spanning tree &#8211; it&#8217;s a big part of layer 2 in most enterprise deployments and is really important to understand more than just the fundamentals.</p>
<p>As always, if you have comments or questions, leave a comment.  Those command-line tips are always appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/weekend-hiatus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CCNP SWITCH 642-813 :: Rapid Spanning Tree</title>
		<link>http://www.ccnpguide.com/ccnp-switch-642-813-rapid-spanning-tree/</link>
		<comments>http://www.ccnpguide.com/ccnp-switch-642-813-rapid-spanning-tree/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 18:57:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=204</guid>
		<description><![CDATA[Rapid Spanning Tree Protocol (IEEE 802.1w) was introduced to dramatically speed up STP&#8217;s convergence when network changes occur. RSTP can revert to 802.1D (common spanning-tree) to inter-operate with legacy bridges on a per-port basis. A rapid version of PVST+, RPVST+ is a per-VLAN implementation of rapid spanning-tree. RSTP Port States Discarding Merges the former disabled, blocking, and [...]]]></description>
			<content:encoded><![CDATA[<p>Rapid Spanning Tree Protocol (IEEE 802.1w) was introduced to dramatically speed up STP&#8217;s convergence when network changes occur.</p>
<p>RSTP can revert to 802.1D (common spanning-tree) to inter-operate with legacy bridges on a per-port basis.</p>
<p>A rapid version of PVST+, RPVST+ is a per-VLAN implementation of rapid spanning-tree.</p>
<h2><span style="color: #ff6600;">RSTP Port States</span></h2>
<ul>
<li><strong>Discarding</strong>
<ul>
<li><strong><span style="font-weight: normal;">Merges the former disabled, blocking, and listening states</span></strong></li>
<li><strong><span style="font-weight: normal;">Prevents the forwarding of frames</span></strong></li>
<li>Seen in both stable/active and synchronization/changes</li>
</ul>
</li>
<li><strong>Learning</strong>
<ul>
<li>Receives frame to populate the MAC table</li>
<li>Seen in both stable/active and synchronization/changes</li>
</ul>
</li>
<li><strong>Forwarding</strong>
<ul>
<li>Forwarding ports determine the active topology</li>
<li>An agreement process between switches occurs before frames can be forwarded</li>
<li>Only seen in stable/active topologies</li>
</ul>
</li>
</ul>
<p><em>Note:  In every RSTP port state, BPDU frames are accepted and processed.<span id="more-204"></span></em></p>
<p><em><strong>
<table id="wp-table-reloaded-id-4-no-1" class="wp-table-reloaded wp-table-reloaded-id-4">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Operational Status</th><th class="column-2">STP Port State</th><th class="column-3">RSTP Port State</th><th class="column-4">Port Included in Active Topology</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">Enabled</td><td class="column-2">Blocking</td><td class="column-3">Discarding</td><td class="column-4">No</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">Enabled</td><td class="column-2">Listening</td><td class="column-3">Discarding</td><td class="column-4">No</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">Enabled</td><td class="column-2">Learning</td><td class="column-3">Learning</td><td class="column-4">Yes</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">Enabled</td><td class="column-2">Forwarding</td><td class="column-3">Forwarding</td><td class="column-4">Yes</td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">Disabled</td><td class="column-2">Discarding</td><td class="column-3">Discarding</td><td class="column-4">No</td>
	</tr>
</tbody>
</table>
</strong></em></p>
<h2> </h2>
<h2><span style="color: #ff6600;">RSTP Port Roles</span></h2>
<ul>
<li><strong>Root port </strong>(active)
<ul>
<li>On non-root bridges only</li>
<li>Best port towards the root bridge</li>
<li>Only one per switch</li>
<li>Is always in forwarding state in an active/stable topology</li>
</ul>
</li>
<li><strong>Designated port </strong>(active)
<ul>
<li>On root and non-root bridges</li>
<li>All ports on root bridge are designated ports</li>
<li>Receives and forwards frames towards the root bridge as needed</li>
<li>Only one per segment</li>
</ul>
</li>
<li><strong>Alternate </strong>(inactive)
<ul>
<li>Offers an alternate path towards the root bridge, but is in discarding state in an active topology</li>
<li>Present on nondesignated switches and becomes designated if path fails</li>
</ul>
</li>
<li><strong>Backup </strong>(inactive)
<ul>
<li>An additional switch port on a redundant (and designated) link</li>
<li>It has a higher port ID than it&#8217;s redundant peer port, so it assumes the discarding state</li>
</ul>
</li>
<li><strong>Disabled port</strong>
<ul>
<li>No role in spanning tree</li>
</ul>
</li>
</ul>
<p> </p>
<h2><span style="color: #ff6600;">RSTP Link Type</span></h2>
<p><span style="color: #000000;">In common spanning tree, it took 50 seconds before port could be placed in forwarding state after a network change.  RSTP&#8217;s biggest advantage is its ability to rapidly transition alternate ports to a forwarding state.  To do this, the protocol relies on two variables, link type and edge port.</span></p>
<ul>
<li><span style="color: #000000;"><strong>Link type</strong></span>
<ul>
<li><span style="color: #000000;">Point-to-point or shared</span></li>
<li><span style="color: #000000;">Determined by duplex mode of port</span>
<ul>
<li><span style="color: #000000;">Full Duplex &#8211; assumed to be point-to-point</span></li>
<li><span style="color: #000000;">Half Duplex &#8211; assumed to be shared</span></li>
</ul>
</li>
<li><span style="color: #000000;">Point-to-point links are considered candidates for rapid transition to forwarding state</span></li>
<li><span style="color: #000000;">Link type can be manually configured if desired</span></li>
</ul>
</li>
</ul>
<p><span style="color: #000000;">The link types cannot be determined until the port role is first established.</span></p>
<ul>
<li><span style="color: #000000;"><strong>Roots ports</strong></span>
<ul>
<li><span style="color: #000000;">Don&#8217;t use the link type parameter</span></li>
<li><span style="color: #000000;">Make rapid transition to forwarding state as soon as it recieves a BPDU from the root bridge and puts nondesignated ports in blocking state (<em>called sync</em>)</span></li>
</ul>
</li>
<li><span style="color: #000000;"><strong>Alternative and backup ports</strong></span>
<ul>
<li><span style="color: #000000;">Do not use link type in most cases</span></li>
<li><span style="color: #000000;">Simply go through RSTP operation process</span></li>
</ul>
</li>
<li><span style="color: #000000;"><strong>Designated ports</strong></span>
<ul>
<li><span style="color: #000000;">Most common use of link type parameter</span></li>
<li><span style="color: #000000;">Only allows rapid transition to forwarding if point-to-point</span></li>
</ul>
</li>
</ul>
<h2><span style="color: #ff6600;">RSTP Edge Ports</span></h2>
<p><span style="color: #000000;">Edge ports are assumed to connected to an and host and bever another switch.  Edge ports immediately transition to rapid forwarding sate when enabled.</span></p>
<p><strong>Edge port</strong></p>
<ul>
<li>the RSTP equivalent of PortFast</li>
<li>allowed to transition directly into forwarding state</li>
<li>designated through manual configuration</li>
<li>Does not generate a topology when link transitions to enabled or disabled status</li>
<li>If edge port receives a BPDU, looses edge port status and become a normal STP port and generates a topology change notification (TCN)</li>
</ul>
<p> </p>
<h2><span style="color: #ff6600;">RSTP Topology Changes</span></h2>
<p><span style="color: #000000;">In 802.1D spanning tree, when a switch detects a topology change, it first notifies the root bridge.  The root bridge then sets the TC (topology change) flag on the BPDUs it sends out, which gets relayed throughout the switched network.  When a switch receives the notification, it reduces its bridging-table aging time equal to the forward delay.  That allows the outdated topology information to be flushed from the switches.</span></p>
<p><span style="color: #000000;">This modle works well, but the problem is that it takes a minimum of twice the forwarding delay for bridges to transition back to forwarding state.  RSTP solves this.</span></p>
<p><span style="color: #000000;">In RSTP, only non-edge ports that are transitioning to forwarding state cause a topology change notification to be sent out.  Unlike with 802.1D, ports moving to blocking state do not cause a TC BPDU to be sent.</span></p>
<h2><span style="color: #ff6600;"> </span></h2>
<h2><span style="color: #ff6600;">Synchronization</span></h2>
<p>Synchronization is term used to describe the RSTP network convergence process.</p>
<p>Nonedge ports begin in the discarding state.  It then performs a handshake to determine the state of each end of the link.  Each switch assumes that its port should become the designated port for the link, and so it sends a proposal message (a configuration BPDU) to its neighbor switch.  When a switch recieves a proposal message, the following events occur:</p>
<ol>
<li>If the sender has a superior BPDU, the local switch realizes that the sender should be the designated switch (thus have the designated port) and its own port should then become a new root port.</li>
<li>Before the switch agrees to anything, it must sncronize itself with the topology.</li>
<li>All nonedge ports are moved to discarding stae to prevent loops from forming.</li>
<li>An agreement message is sent back to the sender, affirming the new designated port choice.  This also lets the sender switch know that it is in the process of syncronizing itself.</li>
<li>The root port is moved into forwarding state.  The sender&#8217;s port can begin forwarding.</li>
<li>For each nonedge port in discarding state, a proposal message is sent to the respective neighbor.</li>
<li>An agreement message is expected and recieved.</li>
<li>The nonedge port is moved to forwarding state.</li>
</ol>
<p>Because the recipient of a sync prosal isolate itself from the rest of the network (all other nonedge ports are temporarily in blocking state), the nearest neighbors must also syncronize themselves.  This creates a rippling wave of sayncronizing switches throughout the network which occurs very quickly.  Because timers are not used, changes occur at the speed of BPDU transmissions.</p>
<h2><span style="color: #ff6600;">Bridge IDs</span></h2>
<p>In 802.1D, each switch was required to have a unique bridge ID, consisting of a priority value + MAC address.  PVST+ and PVRST+ also require the BID, but they must also include VLAN information within the BID because a unique instance must run for each VLAN on each switch.  Tp accomplish this, a portion of the priority field is used to carry the VID.</p>
<p><strong>Old bridge priority:<br />
</strong>Priority value (default 32,768 &#8211; increments of one)<br />
 +<br />
 MAC address</p>
<p><span style="text-decoration: underline;"><em><strong>New bridge priority:</strong></em></span><br />
Priority value (default 32,768 &#8211; increments of 4,096)<br />
 +<br />
Extended system ID (12 bit field carrying the VID)<br />
 +<br />
MAC Address<br />
<strong>Remember that if the priority value is not manually configured, the root bridge for each VLAN will be determined by lowest MAC address</strong>.  Also, keep in mind that the priority value you configure is only half of the actual priority value used by the switch because the VLAN ID is also attached.  Here&#8217;s an example:</p>
<p>Default priority field for VLAN 11:<br />
32768 + 11 = 32779</p>
<p>Higher priority for VLAN 11:<br />
28672 + 11 = 28683</p>
<h2><span style="color: #ff6600;">RSTP Compatibilty with 802.1D</span></h2>
<p><span style="color: #000000;">802.1w is backwards compatible with common spanning tree, but it looses it&#8217;s fast convergence benefit for that particular segment.  If a switch recieves BPDUs that do not reflect its current operating mode, for two times the hello time, it switches STP modes.</span></p>
<h2><span style="color: #ff6600;">Spanning Tree Defaults on Catalyst Switches</span></h2>
<p>The default STP mode on current cisco switches is PVST+.  That means that all VLANS will elect the same root bridge and a topology change will impact all VLANs the same.  ALl redundant links would also be blocked in exactly the same manner.</p>
<h2><span style="color: #ff6600;">PortFast</span></h2>
<p>Spanning Tree Portfast causes layer 2 switch interfaces to enter forwarding state immediately, bypassing the listening and learning states.  It should be used on ports connected directly to end hosts like servers or workstations. </p>
<p><em>Note:  If it isn&#8217;t enabled, DHCP timeouts can occur while STP converges, causing more problems.</em></p>
<p><strong>To configure PortFast<br />
</strong>Switch# conf t<br />
Switch (config)# int fa 3/1<br />
Switch (config-if)# [no] spanning-tree portfast</p>
<p><strong>To verify PortFast on an interface:<br />
</strong>Switch# sh spanning-tree int fa 3/1 portfast</p>
<p>PortFast can be configured globally on an access switch for all interfaces to save configurations.  Also, it only applies to access interfaces, not trunks.  Use the spanning-tree portfast trunk command if it is required on a trunk.  If you do so, make sure to disable it explicitly on uplink interfaces.</p>
<p><strong>To configure PortFast globally:<br />
</strong>Switch# spanning-tree portfast default</p>
<h2><span style="color: #ff6600;">Switchport Mode Host</span></h2>
<p><strong>To configure PortFast and disable both channeling and trunking negotiation on an interface:<br />
</strong>Switch (config-if)# switchport host</p>
<h2><span style="color: #ff6600;">RPVST+ Configuration</span></h2>
<ol>
<li><strong>Enable RPVST+ globally on all switches</strong><br />
Switch(config)#spanning-tree mode rapid-pvst</li>
<li><strong>Designate and configire a primary root brigde<br />
</strong>Switch(config)#spanning-tree vlan 2 root primary</li>
<li><strong>Designate and configire a secondary root brigde<br />
</strong>Switch(config)#spanning-tree vlan 2 root secondary</li>
<li><strong>Verify the configuration</strong><br />
Switch#show spanning-tree vlan 2</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/ccnp-switch-642-813-rapid-spanning-tree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CCNP SWITCH 642-813 :: Spanning Tree Basics</title>
		<link>http://www.ccnpguide.com/ccnp-switch-642-813-spanning-tree-basics/</link>
		<comments>http://www.ccnpguide.com/ccnp-switch-642-813-spanning-tree-basics/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 20:57:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=178</guid>
		<description><![CDATA[      Spanning Tree Protocol (STP) is designed to prevent problems related to bridging loops.  STP solves the problem by blocking redundant paths and allowing only a single active path.      Severl different versions of Spanning Tree have been introduced over the years.  Here are a few:      Common Spanning Tree (CST)- IEEE 802.1D, One instance of spanning [...]]]></description>
			<content:encoded><![CDATA[<p>     </p>
<p>Spanning Tree Protocol (STP) is designed to prevent problems related to bridging loops.  STP solves the problem by blocking redundant paths and allowing only a single active path.     </p>
<p>Severl different versions of Spanning Tree have been introduced over the years.  Here are a few:     </p>
<ul>
<li><strong>Common Spanning Tree</strong> <strong>(CST)</strong>- IEEE 802.1D, One instance of spanning tree runs for the entire switched network resulting in low CPU requirements, but suboptimal traffic paths when multiple VLANs are used.  It is also slow to converge.</li>
<li><strong>Per VLAN Spanning Tree Plus (PVST+)</strong>- One instance of STP per VLAN, more resources required, slow convergence still, includes portfast, BPDU guard, BPDU filter, Root Guard, and loop guard.</li>
<li><strong>Rapid STP (RSTP)</strong>- IEEE 802.1w, One instance of STP, but very fast convergence time.  till suboptimal traffic flows because only a single instance for the entire switched network.</li>
<li><strong>Multiple Spanning Tree (MST) </strong>- An IEEE standard that allows you to map multiple VLANS with similar traffic flow requirements into the same spanning-tree instance.  MST also supports RSTP for fast convergence.  Each instance supports Portfast, BPDU guard, BPDU filter, Root Guard, and loop guard.</li>
<li><strong>PVRST+</strong>- A Cisco enhancement to RSTP that behaves similar to PVST+.  It supports a separate instance of RSTP for each VLAN and each instance supports Portfast, BPDU guard, BPDU filter, Root Guard, and loop guard.  This option has the largest CPU and memory requirements.</li>
</ul>
<p><em>Note: MST and PVRST+ have become the dominate spanning-tree protocols of choice and in Cisco switches, PVST+ is the default flavor of STP that is enabled when a VLAN is created.</em>     </p>
<h2><em><span id="more-178"></span><br />
</em></h2>
<h2>STP Convergence</h2>
<ol>
<li><strong>Root bridge election<br />
<span style="font-weight: normal;">Each VLAN elects one root bridge.  All ports on the root bridge act as designated ports, which send and receive traffic as well as BPDUs.  The bridge with the lowest priority becomes root.</span></strong></li>
<li><strong>Root ports are determined on all non-root bridges<br />
<span style="font-weight: normal;">Each non-root bridge is assigned a single root port that send and receives traffic.  The root port is chosen based on the port with the lowest-cost path between the non-root bridge and the root bridge.  If two paths are equal cost, the port with the lowest port ID (priority + port number) will win.</span></strong></li>
<li><strong><span style="font-weight: normal;"><strong>Designated port selection<br />
</strong>Each segment has a single designated port.  Designated ports are chosen from on non-root ports that have the lowest path cost to the root bridge.  In the event of a tie, the bridge ID acts as a tiebreaker (lowest wins).  All ports on a root bridge are designated ports.<br />
</span></strong></li>
</ol>
<h2><span style="font-weight: normal;"><strong>STP Port Roles</strong></span></h2>
<ul>
<li><span style="font-weight: normal;"><strong>Root port</strong></span>
<ul>
<li><strong><span style="font-weight: normal;">On non-root bridges only</span></strong></li>
<li><strong><span style="font-weight: normal;">Forwards traffic towards the root bridge</span></strong></li>
<li><strong><span style="font-weight: normal;">Only one per switch</span></strong></li>
<li><strong><span style="font-weight: normal;">Can populate the MAC table</span></strong></li>
</ul>
</li>
<li><span style="font-weight: normal;"><strong>Designated port</strong></span>
<ul>
<li><strong><span style="font-weight: normal;">On root and non-root bridges</span></strong></li>
<li><strong><span style="font-weight: normal;">All ports on root bridge are designated ports</span></strong></li>
<li><strong><span style="font-weight: normal;">Receives and forwards frames towards the root bridge as needed</span></strong></li>
<li><strong><span style="font-weight: normal;">Only one per segment</span></strong></li>
<li><strong><span style="font-weight: normal;">Can populate the MAC table</span></strong></li>
</ul>
</li>
<li><span style="font-weight: normal;"><strong>Nondesignated port</strong> </span>
<ul>
<li><span style="font-weight: normal;">Does not forward packets (blocking)</span></li>
<li><span style="font-weight: normal;">Does not populate the MAC table</span></li>
</ul>
</li>
<li><strong>Disabled port</strong>
<ul>
<li>A port that is shut down</li>
</ul>
</li>
</ul>
<p>   <span style="font-weight: normal;"> </span> </p>
<div><span style="font-weight: normal;"></span></div>
<p><span style="font-weight: normal;"></p>
<h2> STP Port States</h2>
<ul>
<li><strong>Blocking</strong>
<ul>
<li>In nondesignated status and does not forward frames</li>
<li>Receives BPDUs to determine root switch</li>
<li>Defualt 20 seconds in this state (max age)</li>
</ul>
</li>
<li><strong>Listening</strong>
<ul>
<li>Receives and sends BPDUs</li>
<li>15 seconds (forward delay)</li>
</ul>
</li>
<li><strong>Learning</strong>
<ul>
<li>Populates the CAM table</li>
<li>15 seconds (forward delay)</li>
</ul>
</li>
<li><strong>Forwarding</strong>
<ul>
<li>Part of the active topology</li>
<li>forwards frames</li>
<li>sends and receives BPDUs</li>
</ul>
</li>
<li><strong>Disabled</strong>
<ul>
<li>Does not participate in STP</li>
<li>Does not forward frames</li>
</ul>
</li>
</ul>
<p>     </p>
<h2> STP Path Cost</h2>
<p>Spanning-tree uses a link cost calculation to determine the the root ports on non-root switches.  It is calculated by adding the costs of all links between the root bridge and the local switch.   </p>
<ul>
<li>10 Gbps &gt; Cost 1</li>
<li>1 Gbps &gt; Cost 4</li>
<li>100 Mbps &gt; Cost 19</li>
<li>10 Mbps &gt; Cost 100</li>
</ul>
<p>    </p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/ccnp-switch-642-813-spanning-tree-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PacketPushers and Professional Development</title>
		<link>http://www.ccnpguide.com/packetpushers-and-professional-development/</link>
		<comments>http://www.ccnpguide.com/packetpushers-and-professional-development/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 13:30:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ccnpguide.com/?p=181</guid>
		<description><![CDATA[I wanted to quickly share a great podcast that I recently found through a fellow blogger.  PacketPushers, whose tag line is &#8220;where too much networking is never enough&#8221; is an excellent resource for those involved in the networking field.  The guys who host the show are all very smart network consultants and architects from around [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to quickly share a great podcast that I recently found through a fellow blogger.  <a href="http://packetpushers.net" target="_blank">PacketPushers</a>, whose tag line is &#8220;where too much networking is never enough&#8221; is an excellent resource for those involved in the networking field.  The guys who host the show are all very smart network consultants and architects from around the world who discuss current technology topics they are seeing in the industry as well as specific topics like career development.</p>
<p>The last episode I listened to was particularly good.  Titled, <a href="http://packetpushers.net/episode-11-if-you-cant-be-replaced-you-cant-be-promoted/" target="_blank">Episode 11: If You Can’t Be Replaced, You Can’t Be Promoted </a>they talk about what it takes to get to become &#8220;that guy&#8221;, the go-to guy, the true expert in their company.  They also discuss a very interesting topic &#8211; Cisco IOS educational licensing.  The idea is that Cisco could create a structure where IOS images where made available to those learning and preparing for Cisco certification.  Apparently Cisco has been kicking around the idea for some time, but there has been no action on it.  I&#8217;m fortunate enough to work at a company that gets free access to all the C IOS images for free, but many aren&#8217;t in my position and try to get by with just books, which is not the same as actually performing the commands in a CLI.</p>
<p>The PacketPushers even invited Aaron Conaway on from <a href="http://aconaway.com/" target="_blank">Aaron&#8217;s Worthless Words</a>.  Aaron blogs in a very candid manner about his professional development through the Cisco Certification process (both his successes and failures).  He recently went through the SWITCH, ROUTE, and TSHOOT exams for the new curriculum and openly shares his experiences with the content.<br />
Check out both Aaron&#8217;s blog as well as the PacketPushers podcast &#8211; you won&#8217;t be disappointed!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccnpguide.com/packetpushers-and-professional-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
