<?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>xpresslearn.com &#187; Switching</title>
	<atom:link href="http://www.xpresslearn.com/category/cisco/switching/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xpresslearn.com</link>
	<description>Solutions to your Networking and Security questions</description>
	<lastBuildDate>Tue, 13 Dec 2011 18:16:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Upgrade to a modular IOS image</title>
		<link>http://www.xpresslearn.com/cisco/switching/upgrade-to-a-modular-ios-image</link>
		<comments>http://www.xpresslearn.com/cisco/switching/upgrade-to-a-modular-ios-image#comments</comments>
		<pubDate>Thu, 16 Oct 2008 02:52:55 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Switching]]></category>
		<category><![CDATA[6500]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[Modular]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/?p=200</guid>
		<description><![CDATA[Cisco IOS Software Modularity is available for the two newest Supervisor modules, the Sup720 and Sup32,  which go into the Cisco 6500 series platform.  Basically, by using the modular IOS, the switch runs more efficiently.  This is accomplished by splitting up major components inside the IOS into separate subsystems, which will run in different processes. [...]]]></description>
			<content:encoded><![CDATA[<p>Cisco IOS Software Modularity is available for the two newest Supervisor modules, the Sup720 and Sup32,  which go into the Cisco 6500 series platform.  Basically, by using the modular IOS, the switch runs more efficiently.  This is accomplished by splitting up major components inside the IOS into separate subsystems, which will run in different processes.  The modularity also allows the patching of portions of the IOS, without having to install an entirely new IOS.  Think about this: How many times have you installed a new IOS image to fix a specific bug, but the new software caused a problem in another area that was previously not broken?  Now, fixing issues by only patching the part of the software with a problem helps insure the rest of the device&#8217;s operation will continue to operate as it did in the past.</p>
<p>A new feature that comes along with the modular image is the inclusion of Cisco Embedded Event Manager (EEM).  This feature allows the EEM process to &#8216;catch&#8217; a defined event and then spawn an action from that raised event.  For example, the device can generate and send an email when the CPU goes over a certain percentage for a period that is longer than a defined threshold.  The engine behind this functionality is controlled using the Python scripting language.  Using Python to write these embedded event handlers provides some powerful capabilities at your fingertips.<br />
<span id="more-200"></span></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>This article wasn&#8217;t really intended to help you decide on using the IOS modularity option, but to explain the upgrade/conversion process.  The first thing to do is obtain the proper image from CCO.  The modular version has the same feature sets and versions available just like the native IOS versions do.  Just pick the right modular image based on your hardware and services needed just like you would any other time.</p>
<p>Once you have downloaded the image, upload it to storage that is available on the (primary) supervisor.  Before the &#8216;installation&#8217; of the modular IOS, the supervisor has to boot from it first, like it would any other image.  In fact, the switch can load the modular IOS .bin file and run just like it was the non-modular version.  However, this would defeat the purpose, since patching is not available until the installation has been performed and the system rebooted.</p>
<p>Put a boot statement in the configuration pointing it to the .bin file that was just uploaded to storage and reload the switch.  Once the switch is back up running on the new image here is where it starts to get fun&#8230;</p>
<p>Let&#8217;s look at the output of the <strong>show version</strong> command after the switch has booted the new IOS image:</p>
<pre>6500switch#sh version
Cisco IOS Software, s72033_rp Software (s72033_rp-ADVIPSERVICESK9_WAN-VM),
Version 12.2(33)SXH3a, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Wed 24-Sep-08 14:37 by prod_rel_team

ROM: System Bootstrap, Version 12.2(17r)SX5, RELEASE SOFTWARE (fc1)

6500switch uptime is 14 hours, 53 minutes
Uptime for this control processor is 14 hours, 52 minutes
Time since 6500switch switched to active is 14 hours, 52 minutes
System returned to ROM by reload at 23:22:24 CDT Tue Oct 14 2008
 (SP by reload)
System image file is "disk0:s72033-advipservicesk9_wan-vz.122-33.SXH3a.bin"

cisco WS-C6506-E (R7000) processor (revision 1.1) with
516096K/8192K bytes of memory.
SR71000 CPU at 600Mhz, Implementation 1284, Rev 1.2, 512KB L2 Cache
Last reset from s/w reset
1 Virtual Ethernet interface
52 Gigabit Ethernet interfaces
1917K bytes of non-volatile configuration memory.

65536K bytes of Flash internal SIMM (Sector size 512K).
Configuration register is 0x2102

Patching is not available since the system is not running from an
installed image. To install please use the "install file" command</pre>
<p>Take a look at the last couple of lines of the output. This output is telling you to run the &#8216;install file&#8217; command in order to install the image. The installation procedure creates a directory structure on the file system specified in the install command. In this example, the image is running from flash installed in slot0:, which is known to the switch as disk0:. We are going to install onto the sup-bootdisk0: flash, which is an compact flash module installed internally with a <a href="http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/hardware/Config_Notes/78_17277.html">compact flash adapter</a> that replaces the SP bootflash on the supervisor. Cisco recommends the modular installation use internal storage, because it is too easy to eject the flash from the slots on the front of the supervisor &#8211; which would cause the switch to crash.<br />
<!--more--></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The command to start the process will be: <strong>install file disk0:s72033-advipservicesk9_wan-vz.122-33.SXH3a.bin sup-bootdisk0:/sys</strong> . The syntax is basically the source image to use then the destination. Notice the /sys at the end of the destination, which is a required argument and is called the search root. The search root is basically just a top level directory and valid entries are: sys|newsys|oldsys .  Below is a normal output during the installation:</p>
<pre>6500switch#install file disk0:s72033-advipservicesk
9_wan-vz.122-33.SXH3a.bin sup-bootdisk:/sys
Source filename [s72033-advipservicesk9_wan-vz.122-33.SXH3a.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Verifying checksums of extracted files

Verifying installation compatibility

Finalizing installation ...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Computing and verifying file checksums
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Writing installation meta-data.  Please wait ...

NOTE: The newly added base image is not yet active.
      To activate the new base image, perform an 'install bind' in
      config mode followed by a 'reload'.

[DONE]

6500switch#</pre>
<p>The last thing you see is a note on how to activate the new base image.  The correct command in this example is: 6509switch(config)#<strong>install bind sup-bootdisk:/sys</strong> .  Notice this command is done from configuration mode.  This command basically just adds a boot statement in the switch configuration pointing to the new modular image.  Here is the output from the install bind command:</p>
<pre>6500switch(config)#install bind sup-bootdisk:/sys
WARNING: This system is running in a redundant mode.  However, the specified
search root on the Standby does not contain installed software, or is unavailable.
Unless the proper software is installed on the Standby,
it will not boot from this binding</pre>
<p>The message we received above was due to the fact the example system was running dual supervisor modules.  If you have a single supervisor, this message will not display.  In order to get the installation onto the redundant supervisor, the process is a little simpler.  There is a copy command that will copy the existing installation on sup-bootflash0:/sys to the redundant supervisor&#8217;s file system.  The following is all that is required to insure the secondary supervisor can boot successfully:</p>
<pre>6500switch#install copy sup-bootdisk:/sys slavesup-bootdisk:/sys
Copying installed software at sup-bootdisk:/sys to slavesup-bootdisk:/sys
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[DONE]</pre>
<p>A look at the running configuration shows the following:</p>
<pre>6500switch#show run</pre>
<pre>boot-start-marker
boot system flash disk0:s72033-advipservicesk9_wan-vz.122-33.SXH3a.bin
boot system flash sup-bootdisk:
boot system sup-bootdisk:/sys/s72033/base/s72033-advipservicesk9_wan-vm
boot-end-marker</pre>
<p>As you can see, the install bind command will not remove any of the previous boot statements.  In all the upgrades I have performed so far, I have went ahead and removed all the old boot statements, just to make sure the supervisor boots correctly.</p>
<pre>6500switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
6500switch(config)#no boot system flash disk0:s72033-advipservicesk9_wan-vz.122-33.SXH3a.bin
6500switch(config)#no boot system flash sup-bootdisk:
6500switch(config)#end
6500switch#wr
Building configuration...
[OK]
6500switch#sh boot
BOOT variable = sup-bootdisk:/sys/s72033/base/s72033-advipservicesk9_wan-vm,12;
CONFIG_FILE variable =
BOOTLDR variable =
Configuration register is 0x2102

Standby is up
Standby has 524288K/8192K bytes of memory.

Standby BOOT variable = sup-bootdisk:/sys/s72033/base/s72033-advipservicesk9_wan-vm,12;
Standby CONFIG_FILE variable =
Standby BOOTLDR variable =
Standby Configuration register is 0x2102</pre>
<p>The last thing to do is reload the switch:</p>
<pre>6500switch#reload
Proceed with reload? [confirm]</pre>
<p>Once the switch is back up, the output of show version now looks like:</p>
<p><!--more--></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<pre>6500switch# sh ver
Cisco IOS Software, s72033_rp Software (s72033_rp-ADVIPSERVICESK9_WAN-VM),
 Version 12.2(33)SXH3a, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Wed 24-Sep-08 14:37 by prod_rel_team

ROM: System Bootstrap, Version 12.2(17r)SX5, RELEASE SOFTWARE (fc1)

 6500switch uptime is 8 minutes
Uptime for this control processor is 7 minutes
Time since 6500switch switched to active is 7 minutes
System returned to ROM by reload at 15:07:48 CDT Wed Oct 15 2008 (SP by reload)
System image file is "sup-bootdisk:/sys/s72033/base/s72033-advipservicesk9_wan-vm"

cisco WS-C6506-E (R7000) processor (revision 1.1) with 516096K/8192K bytes of memory.
SR71000 CPU at 600Mhz, Implementation 1284, Rev 1.2, 512KB L2 Cache
Last reset from s/w reset
1 Virtual Ethernet interface
52 Gigabit Ethernet interfaces
1917K bytes of non-volatile configuration memory.

65536K bytes of Flash internal SIMM (Sector size 512K).
Configuration register is 0x2102

System is currently running from installed software
For further information use "show install running"</pre>
<p>To look at the actual software versions along with any patch information, issue the <strong>show install running</strong> command:</p>
<pre>6500switch#show install running

B/P C State     Filename
--- - --------  --------

Software running on card installed at location s72033_rp - Slot 6 :
 B    Active    slavesup-bootdisk:/sys/s72033_rp/base/DRACO2_MP

Software running on card installed at location s72033 - Slot 5 :
 B    Active    sup-bootdisk:/sys/s72033/base/s72033-advipservicesk9_wan-vm -
Version 12.2(33)SXH3a

Software running on card installed at location s72033_rp - Slot 5 :
 B    Active    sup-bootdisk:/sys/s72033_rp/base/DRACO2_MP

Software running on card installed at location c2_lc - Slot 1 :
 B    Active    sup-bootdisk:/sys/c2_lc/base/C2LC

Software running on card installed at location s72033 - Slot 6 :
 B    Active    slavesup-bootdisk:/sys/s72033/base/s72033-advipservicesk9_wan-vm -
Version 12.2(33)SXH3a

LEGEND:
-------:
B/P/MP - (B)ase image, (P)atch, or (M)aintenance (P)ack
'C' - (C)ommitted
Pruned - This file has been pruned from the system
Active - This file is active in the system
PendInst - This file is set to be made available to run on the
   system after next activation.
PendRoll - This file is set to be rolled back after next activation.
InstPRel - This file will run on the system after next reload
RollPRel - This file will be removed from the system after next reload
RPRPndIn - This file is both rolled back pending a reload, and pending
   installation.  On reload, this file will not run and will move to
   PendInst state.  If 'install activate' is done before reload, pending
   removal and install cancel each other and file simply remains active
IPRPndRo - This file is both installed pending a reload, and pending rollback.
   If the card reloads, it will be active on the system pending a rollback
   If 'install activate' is done before a reload, the pending install and
   removal with cancel each other and the file will simply be removed
Occluded - This file has been occluded from the system,
   a newer version of itself has superceded it.

6500switch#</pre>
<p>All things considered, this is a pretty easy upgrade &#8211; just take your time and make sure each step is followed carefully. I would recommend allocating 1.5 hours for the first upgrade performed. Once you&#8217;re familiar with the process, it can be done in half that time and even quicker if the image is transferred to a filesystem on the switch prior to performing the upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/switching/upgrade-to-a-modular-ios-image/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Spanning Tree Root Bridge</title>
		<link>http://www.xpresslearn.com/cisco/switching/spanning-tree-root-bridge</link>
		<comments>http://www.xpresslearn.com/cisco/switching/spanning-tree-root-bridge#comments</comments>
		<pubDate>Sun, 25 May 2008 02:11:23 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Switching]]></category>
		<category><![CDATA[802.1D]]></category>
		<category><![CDATA[root bridge]]></category>
		<category><![CDATA[Spanning Tree]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/?p=113</guid>
		<description><![CDATA[The most important element to spanning tree is the root bridge placement.  If no other element of spanning tree is manually configured on your network, the root bridge should definitely be set.]]></description>
			<content:encoded><![CDATA[<p>Configuring spanning tree correctly is very important on any local area network.  The most important element to spanning tree is the root bridge placement.  By default, spanning-tree which is running on all switches in the network, will elect a root bridge automatically.  In most all cases, automatic root bridge election is not a good idea.  If no other element of spanning tree is manually configured on your network, the root bridge should definitely be set.</p>
<p>Before you configure STP, select a switch to be the root of the spanning tree. This switch does not need to be the most powerful switch, but choose the most centralized switch on the network. All data flow across the network is from the perspective of this switch. Switches in the distribution layer often serve as the spanning tree root because these switches typically do not connect to end stations. Also, moves and changes within the network are less likely to affect these switches.</p>
<p><span id="more-113"></span></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Let&#8217;s consider the following network diagram:</p>
<p style="text-align: center;"><img class="size-full wp-image-73" title="Dynagen network layout using 3640 routers and NM-16ESW modules" src="http://www.xpresslearn.com/wp-content/uploads/2008/02/dynagenfournm-16.gif" alt="" width="451" height="258" /></p>
<p>Vlan3 is defined on the network with SW1configured as the root bridge.</p>
<pre>SW1#show spanning-tree root
VLAN3
  Root ID    Priority    8192
             Address     cc00.0cf4.0002
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec</pre>
<p>The output of the previous show command reflects that it is the root bridge for Vlan3.  The mac-address shown is the address of the switch serving as the root bridge.  Using the mac address shown in the show spanning-tree root output, we can go searching for the root bridge of any vlan.</p>
<p>The priority was configured on SW1 in order for it to assume root bridge status for vlan 3.  The configuration command executed on SW1:</p>
<pre>SW1(config)#spanning-tree vlan 3 priority 8192</pre>
<p>SW2 is configured to assume the root bridge in the event SW1fails:</p>
<pre>SW2(config)#spanning-tree vlan 3 priority 16384</pre>
<p>Let&#8217;s say on SW3 we configure the following:</p>
<pre>SW3(config)#spanning-tree vlan 3 priority 4096</pre>
<p>Run the show spanning-tree root command again on SW1:</p>
<pre>SW1#show spanning-tree root
VLAN3
  Root ID    Priority    4096
             Address     cc02.0cf4.0002
             Cost        12
             Port        321 (Port-channel1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec</pre>
<p>The mac-address cc02.0cf4.0002 belongs to SW3, which has now become the root bridge for vlan3.  How do you prevent this from happening?</p>
<p>Using best practice configuration techniques, make sure SW3 and SW4 does not become the root bridge for any vlan.</p>
<pre>SW3(config)#spanning-tree vlan 1-4094 priority 65535
SW4(config)#spanning-tree vlan 1-4094 priority 65535</pre>
<p>Configure SW1 and SW2 as the primary and secondary root bridges for vlan 3</p>
<pre>SW1(config)#spanning-tree vlan 3 priority 1
SW2(config)#spanning-tree vlan 3 priority 2</pre>
<p>Remember to do this configuration for each vlan on the network, because in per vlan spanning-tree, there is a root bridge for each spanning-tree instance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/switching/spanning-tree-root-bridge/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Spanning Tree Explained</title>
		<link>http://www.xpresslearn.com/cisco/spanning-tree-explained</link>
		<comments>http://www.xpresslearn.com/cisco/spanning-tree-explained#comments</comments>
		<pubDate>Wed, 23 Jan 2008 03:39:04 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[Spanning Tree]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/cisco/spanning-tree-explained</guid>
		<description><![CDATA[There are many choices when trying to decide which version of spanning tree to implement in your network.  This article will attempt to explain the different options and when to use each.]]></description>
			<content:encoded><![CDATA[<p>The following is an explanation of all the spanning-tree versions available to the Cisco switching platform.</p>
<p>Consider the following illustration:</p>
<p style="text-align: center" align="left"><img src="http://www.xpresslearn.com/wp-content/uploads/2008/01/fourswitchenvironment.gif" alt="Small Office Network Environment Illustration" /></p>
<p>In the above illustration, switchA and switchB is considered the core/distribution switches in this small office scenario.  Switch A &amp; B have a Layer 2 connection between them for high speed switching in this collapsed core layer.  Servers connect to both core/distribution switches with NIC teaming configured in the Operating System.  The switches C &amp; D serve as access switches in the wiring closets for office workstations.  The access switches have dual uplinks, one to each core/distribution switch for redundancy.</p>
<p><span id="more-22"></span></p>
<p>There are 10 vlans configured in this example network, half of them are load balanced on one uplink connection and the other half of the vlans are forwarded on the second uplink connection.  Each access switch uplink also serves as a backup to the other.</p>
<p style="text-align: center" align="center"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>PVST</strong> &#8211; <em>Per Vlan Spanning Tree</em> &#8211; This is the original Cisco proprietary, per vlan spanning tree protocol.  It <span class="content">maintains a spanning tree instance for each VLAN configured in the network.</span></p>
<p><span style="text-decoration: underline;">Configuration Example</span>:</p>
<pre>switchA(config)# spanning-tree mode pvst
switchA(config)# spanning-tree vlan 1,2,3,4,5 root primary
switchA(config)# spanning-tree vlan 6,7,8,9,10 root secondary
switchA(config)# spanning-tree backbonefast</pre>
<pre>switchB(config)# spanning-tree mode pvst
switchB(config)# spanning-tree vlan 1,2,3,4,5 root secondary
switchB(config)# spanning-tree vlan 6,7,8,9,10 root primary
switchB(config)# spanning-tree backbonefast</pre>
<pre>switchC(config)# spanning-tree mode pvst
switchC(config)# spanning-tree uplinkfast</pre>
<pre>switchD(config)# spanning-tree mode pvst
switchD(config)# spanning-tree uplinkfast</pre>
<p><strong>PVST+</strong> &#8211; <em>Per Vlan Spanning Tree Plus</em> &#8211; It can be thought of as PVST version 2, still Cisco proprietary, with enhancements added to the original version.  The difference between the two protocols is PVST supports ISL as the trunking protocol, where PVST+ makes use of the 802.1Q trunking protocol.</p>
<p><strong>RSTP</strong> &#8211; <em>Rapid Spanning Tree Protocol</em> &#8211; This is the standards based (802.1w) spanning tree protocol that is very similar to Cisco&#8217;s proprietary PVST+.  Many of the previously Cisco proprietary methods of speeding up convergence, such as Portfast, Uplinkfast, Backbone now have standards based equivalents that are built into RSTP.</p>
<p><span style="text-decoration: underline;">Configuration Example</span>:</p>
<pre>switchA(config)# spanning-tree mode rapid-pvst
switchA(config)# spanning-tree vlan 1,2,3,4,5 root primary
switchA(config)# spanning-tree vlan 6,7,8,9,10 root secondary</pre>
<pre>switchB(config)# spanning-tree mode rapid-pvst
switchB(config)# spanning-tree vlan 1,2,3,4,5 root secondary
switchB(config)# spanning-tree vlan 6,7,8,9,10 root primary</pre>
<pre>switchC(config)# spanning-tree mode rapid-pvst</pre>
<pre>switchD(config)# spanning-tree mode rapid-pvst</pre>
<p><strong>MST</strong> &#8211; <em>Multiple Spanning Tree</em> &#8211; It can be thought of as RSTP version 2.  Known as 802.1s, this version of spanning tree takes 802.1w and builds on the standard.  MISTP allows you to selectively map/group multiple vlans to a single instance of spanning tree.</p>
<p style="text-align: center" align="center"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>For Example: There are 10 vlans defined in the network, instead of having 10 instances of spanning tree running (using PVST), you can shrink it down to say two instances of spanning tree running on a switch by mapping half the vlans to one instance and the other half to the second instance.  The biggest advantage is the reduced resource footprint on the switch, requiring less memory and processor utilization for the spanning tree process.</p>
<p><span style="text-decoration: underline;">Configuration Example</span>:</p>
<pre>switchA(config)# spanning-tree mst configuration
switchA(config-mst)# name corpbuilding
switchA(config-mst)# revision 1
switchA(config-mst)# instance 1 vlan 1 - 5
switchA(config-mst)# instance 2 vlan 6 - 10
switchA(config-mst)# exit
switchA(config)# spanning-tree mst 1 root primary
switchA(config)# spanning-tree mst 2 root secondary
switchA(config)# spanning-tree mode mst</pre>
<pre>switchB(config)# spanning-tree mst configuration
switchB(config-mst)# name corpbuilding
switchB(config-mst)# revision 1
switchB(config-mst)# instance 1 vlan 1 - 5
switchB(config-mst)# instance 2 vlan 6 - 10
switchB(config-mst)# exit
switchB(config)# spanning-tree mst 1 root secondary
switchB(config)# spanning-tree mst 2 root primary
switchB(config)# spanning-tree mode mst</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/spanning-tree-explained/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Resolution to basic multicast problems</title>
		<link>http://www.xpresslearn.com/cisco/resolution-to-basic-multicast-problems</link>
		<comments>http://www.xpresslearn.com/cisco/resolution-to-basic-multicast-problems#comments</comments>
		<pubDate>Tue, 01 Jan 2008 01:25:26 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[Checkpoint]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[IPSO]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/uncategorized/resolution-to-basic-multicast-problems</guid>
		<description><![CDATA[Trying to figure out why multicast doesn't work across a flat network that consist of multiple switches?  This article contains the resolution to that broken Windows server cluster or the Nokia/Checkpoint cluster that doesn't work.]]></description>
			<content:encoded><![CDATA[<p>Very commonly a new presence will enter your network, it could be something you have introduced or a product another team member has installed, only to find out there is some type of &#8216;network communication problem&#8217; with the new product.</p>
<p>After some investigation, the traffic type in question is discovered to be multicast.  Some run from this problem like the plaque, others will tell the installer of the new product they are out of luck, because multicast traffic is &#8216;not supported&#8217;.  More commonly &#8216;bandaids&#8217; are put in place to make the product work.  The types of fixes implemented could be something like putting all the multicast &#8216;talkers&#8217; on the same physical switch.  Other accommodating changes could be more drastic, such as disabling important features that are enabled on catalyst switches by default.</p>
<p>Now that the picture has been painted, a little explanation:</p>
<p><span id="more-45"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>IGMP is a protocol used by clients wanting to receive a multicast stream.  The client sends an IGMP report message to a multicast router telling or confirming that it wants to receive a particular stream.  An IGMP query message is used by the multicast router to ask clients if they want to receive a multicast stream.  If there is not a client requesting or confirming it wants to receive a stream, the router will not forward the traffic, because it is not needed.</p>
<p>Catalyst switches have a feature called IGMP snooping. Basically the switch transparently listens for these IGMP query/report messages described above.  If it does not detect any multicast traffic being requested, it shuts off any traffic from the stream to that switchport.  This optimizes the traffic flow even more, since it operates at a switchport level.  The reason why igmp snooping often causes issues is when there is no multicast router in place.  In many cases there is good reason for this, if multicast across a routed network is not desired, there is no good reason to turn on multicast routing.</p>
<p>However, the problem comes in when snooping blocks a multicast stream on the uplink port (where it normally would receive IGMP query messages from the multicast router).  This happens because the switch never sees any IGMP traffic on those ports, therefore it shuts down traffic on them.  Therefore the IGMP request messages from the client are never received on a different switch that is connected to the multicast sender.</p>
<p>Many times after researching a similar problem, the resolution will be from the product vendor to disable IGMP snooping with the command &#8216;no igmp snooping&#8217;.  If you disable IGMP snooping, all switches treat multicast traffic as broadcast traffic. This floods the traffic to <em>all</em> the 	 ports in that VLAN, regardless of whether the ports have interested receivers 	 for that multicast stream.  Obviously, this is not the type of behavior desired in any network &#8211; let&#8217;s fix the issue properly so snooping can be left enabled.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Solution</strong></p>
<p>Manually configure an mrouter port on each access switch, in the absence of a multicast router on the network.  The assigned mrouter port should be the uplink port that connects the access switch to the distribution layer.  The access switch will always forward IGMP messages on the mrouter port.  Do not configure an mrouter port on the distribution switch.  In this scenerio, when the client connected to an access switch requests a multicast stream the IGMP message will be forwarded out the uplink port to the distribution switch.  When the distribution detects the IGMP messages from an access switch, it will put the uplink port in it&#8217;s IGMP snooping table, thus allowing multicast traffic on the port.</p>
<p>To manually configure an access switch with an mrouter port:</p>
<pre>accessSwitch(config)#ip igmp snooping vlan 10 mrouter interface Gig 1/0/49</pre>
<p>The previous example assumes all the hosts using multicast is on vlan10 and the access switch uplink port is Gigabit 1/0/49.</p>
<p>Now, when the security guys call and say their new Checkpoint firewalls running on that shiney new Nokia cluster doesn&#8217;t work &#8211; go armed with the fix.  Many high availability/clustering applications use multicast for the heartbeat traffic, the Microsoft clustering built into Windows also uses it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/resolution-to-basic-multicast-problems/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading software on access switch stacks manually</title>
		<link>http://www.xpresslearn.com/cisco/upgrading-software-on-access-switch-stacks-manually</link>
		<comments>http://www.xpresslearn.com/cisco/upgrading-software-on-access-switch-stacks-manually#comments</comments>
		<pubDate>Fri, 28 Dec 2007 23:08:17 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[3750]]></category>
		<category><![CDATA[access switch]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[stack]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/cisco/upgrading-software-on-access-switch-stacks-manually</guid>
		<description><![CDATA[This article will focus on upgrading software on a Cisco 3750 switch stack comprised of two switches.  There are procedures for upgrading one of the access switches and then letting the stack manage the distribution/installation of software on the other switches. However, there is some comfort to doing it all manually and checking things after each step.]]></description>
			<content:encoded><![CDATA[<p>This article will focus on upgrading software on a Cisco 3750 switch stack comprised of two switches.  There are procedures for upgrading one of the access switches and then letting the stack manage the distribution/installation of software on the other switches. However, there is some comfort to doing it all manually and checking things after each step.</p>
<p>First, if we access the switch stack and issue a dir all-filesystems it will return something like:</p>
<p><span id="more-43"></span></p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<pre>Directory of flash:/

    2  -rwx         936   Jul 9 2007 14:40:47 -05:00  vlan.dat
    3  -rwx        1941   Jul 9 2007 14:49:22 -05:00  private-config.text
    5  -rwx       10144   Jul 9 2007 14:49:22 -05:00  config.text
    6  drwx         192   Mar 6 1993 16:38:47 -06:00  c3750-ipbasek9-mz.122-35.SE2

15998976 bytes total (5792256 bytes free)
Directory of system:/

    3  dr-x           0                    &lt;no date&gt;  memory
    1  -rw-       10144                    &lt;no date&gt;  running-config
    2  dr-x           0                    &lt;no date&gt;  vfiles

No space information available
Directory of nvram:/

  499  -rw-       10144                    &lt;no date&gt;  startup-config
  500  ----        1941                    &lt;no date&gt;  private-config

524288 bytes total (512151 bytes free)
Directory of flash2:/

    2  -rwx         936   Jul 9 2007 14:40:51 -05:00  vlan.dat
    3  -rwx       10144   Jul 9 2007 14:49:22 -05:00  config.text
    4  -rwx        1941   Jul 9 2007 14:49:22 -05:00  private-config.text
    6  drwx         192   Mar 6 1993 16:42:54 -06:00  c3750-ipbasek9-mz.122-35.SE2

15998976 bytes total (5792256 bytes free)</pre>
<p>Notice in the above output that there is a flash: and a flash2.  Flash would belong to switch 1 (master) and flash2: would be the internal flash belonging to switch 2 in the stack.  Also notice that the images are underneath the directory name that matches the image file name.  This is something that I am not very fond of.  I like the image to be in the root of the flash, instead of buried in a directory.  Cisco starting doing this when the switches first provided an HTML interface.  So, all the files needed for the built-in web server would also be under this directory structure.  Since I do not use the web interface to configure access switches, nor do I desire for them to have that ability &#8211; we will delete the directory structure and replace with a single image file.</p>
<pre>switch#del /force /recursive flash:c3750-ipbasek9-mz.122-35.SE2
switch#del /force /recursive flash2:c3750-ipbasek9-mz.122-35.SE2</pre>
<p>Let&#8217;s take another look at the storage on both switches:</p>
<pre>switch#dir all-filesystems
Directory of flash:/

    2  -rwx         936   Jul 9 2007 14:40:47 -05:00  vlan.dat
    3  -rwx        1941   Jul 9 2007 14:49:22 -05:00  private-config.text
    5  -rwx       10144   Jul 9 2007 14:49:22 -05:00  config.text

15998976 bytes total (15984640 bytes free)
Directory of system:/

    3  dr-x           0                    &lt;no date&gt;  memory
    1  -rw-       10144                    &lt;no date&gt;  running-config
    2  dr-x           0                    &lt;no date&gt;  vfiles

No space information available
Directory of nvram:/

  499  -rw-       10144                    &lt;no date&gt;  startup-config
  500  ----        1941                    &lt;no date&gt;  private-config

524288 bytes total (512151 bytes free)
Directory of flash2:/

    2  -rwx         936   Jul 9 2007 14:40:51 -05:00  vlan.dat
    3  -rwx       10144   Jul 9 2007 14:49:22 -05:00  config.text
    4  -rwx        1941   Jul 9 2007 14:49:22 -05:00  private-config.text

15998976 bytes total (15984640 bytes free)
switch#</pre>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</center></p>
<p>Now that there is room for the image, transfer the new IOS to the first switch:</p>
<pre>switch#copy tftp flash:
Address or name of remote host [10.1.2.21]?
Source filename [c3750-ipbasek9-mz.122-37.SE.bin]?
Destination filename [c3750-ipbasek9-mz.122-37.SE.bin]?
Accessing tftp://10.1.2.21/c3750-ipbasek9-mz.122-37.SE.bin...
Loading c3750-ipbasek9-mz.122-37.SE.bin from 10.1.2.21 (via Vlan2): !!!!!!!!!!!![OK - 8199380 bytes]
8199380 bytes copied in 138.210 secs (59326 bytes/sec)
switch#</pre>
<p>Next, copy the image from switch1 to switch 2 using the copy command:</p>
<pre>switch#copy flash:c3750-ipbasek9-mz.122-37.SE.bin flash2:c3750-ipbasek9-mz.122-37.SE.bin</pre>
<p>The switch settings can be viewed by running the show boot command:</p>
<pre>switch#sh boot
BOOT path-list      : flash:c3750-ipbasek9-mz.122-35.SE2/c3750-ipbasek9-mz.122-35.SE2.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
-------------------
Switch 2
-------------------
BOOT path-list      : flash:c3750-ipbasek9-mz.122-35.SE2/c3750-ipbasek9-mz.122-35.SE2.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :

Auto upgrade        : no
Auto upgrade path   :
switch#</pre>
<p>As you can see from the output above, the switches are still set to look for the old filename at startup.  Set the new boot statement in all of the switch stack members at one time by using the following command:</p>
<pre>switch(config)#boot system switch all flash:c3750-ipbasek9-mz.122-37.SE.bin</pre>
<p>Once the boot command is set, let&#8217;s look at the boot variables once more:</p>
<pre>switch#sh boot
BOOT path-list      : flash:c3750-ipbasek9-mz.122-37.SE.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
-------------------
Switch 2
-------------------
BOOT path-list      : flash:c3750-ipbasek9-mz.122-37.SE.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :

Auto upgrade        : no
Auto upgrade path   :
switch#</pre>
<p>You will notice that both switches show they are booting from flash: as apposed to switch 2 showing flash2.  This is because flash: is what the storage is known as to each access switch, so consider this normal.</p>
<p>The only thing left is to copy the running configuration to startup and reboot the switch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/upgrading-software-on-access-switch-stacks-manually/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Manually locating the switchport of a connected host</title>
		<link>http://www.xpresslearn.com/cisco/manually-locating-the-switchport-of-a-connected-host</link>
		<comments>http://www.xpresslearn.com/cisco/manually-locating-the-switchport-of-a-connected-host#comments</comments>
		<pubDate>Wed, 26 Dec 2007 01:43:27 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Switch]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/cisco/manually-locating-the-switchport-of-a-connected-host</guid>
		<description><![CDATA[Many times a network engineer needs to quickly find where a particular host is plugged into the network.  This article explains how to accomplish this using a manual discovery process that can be performed rather quickly,]]></description>
			<content:encoded><![CDATA[<p>There are many times that a network administrator needs to locate a switch and port that a device is physically plugged into.  This can be done manually by using the following example.</p>
<p>If the mac-address of a the device is known, then skip this first step of determining the mac-address from the IP address.</p>
<p>From the layer 3 device directly connected to the subnet containing the device to be found, ping the IP address of the host.  From a cisco device the process will look like the following:</p>
<p><span id="more-40"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<pre>bna-lan-01#ping 10.120.2.100

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.120.2.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms</pre>
<p>It&#8217;s always a good idea to ping the device first.  Otherwise, if there has been no recent communication to/from the device trying to be located, it will not appear in the arp table.  Therefore, ping the device to ensure the mac address will be in the arp table.  To locate the device, issue a show arp command with a pipe that includes the IP address of the host.</p>
<pre>bna-lan-01#sh arp | inc 10.120.2.100
Internet  10.120.2.100            0   000d.23e4.1f20  ARPA   Vlan2
bna-lan-01#</pre>
<p>The output of the show arp command will include the mac address along with what vlan the device resides in..  Now that the mac address of the host has been obtained, next issue the show mac-address command on the switch at the core of your network:  In this example, the layer 3 device and the core switch is the same Cisco 6500 switch, with the name bna-lan-01.</p>
<pre>bna-lan-01#sh mac-address-table address 000d.23e4.1f20
Legend: * - primary entry
        age - seconds since last seen
        n/a - not available

  vlan   mac address     type    learn     age              ports
------+----------------+--------+-----+----------+--------------------------
Supervisor:
*  2     000d.23e4.1f20  dynamic  Yes      80               Gi1/8</pre>
<p>After issuing the show mac-address command, we see that the mac address was learned via Gigabit 1/8.  From here, let&#8217;s assume the network is an all Cisco network and CDP is still running on the uplink ports.  The next bit of information needed is what is connected on the other end of Gig1/8.  Let&#8217;s do a show cdp nei to obtain that information:</p>
<pre>bna-lan-01#sh cdp nei detail Gi1/8
-------------------------
Device ID: bna-asw-01
Entry address(es):
  IP address: 10.1.0.21
Platform: cisco WS-C3750-48TS,  Capabilities: Router Switch IGMP
Interface: GigabitEthernet1/8,  Port ID (outgoing port): GigabitEthernet1/0/49
Holdtime : 124 sec

Version :
Cisco Internetwork Operating System Software
IOS (tm) C3750 Software (C3750-I9-M), Version 12.1(19)EA1d, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 05-Apr-04 22:40 by antonino

advertisement version: 2
Protocol Hello:  OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=0FF0000
VTP Management Domain: 'BNA-NET'
Native VLAN: 257
Duplex: full</pre>
<p>The downstream access switch is a 3750 with a management IP address of 10.1.0.21.  The next step is to access this switch and issue the show mac address command on it.</p>
<pre>bna-asw-01#sh mac-address-table address 000d.23e4.1f20
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
 2      000d.23e4.1f20    DYNAMIC     Gi1/0/4</pre>
<p>The output shows the host connected to the port Gigabit 1/0/4.  If there had been another switch in between bna-asw-01 and the host, we would just do the same thing as previously &#8211; which is issue the show cdp neighbor command and find the management IP of the next access switch.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/manually-locating-the-switchport-of-a-connected-host/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switchport Macros</title>
		<link>http://www.xpresslearn.com/cisco/switchport-macros</link>
		<comments>http://www.xpresslearn.com/cisco/switchport-macros#comments</comments>
		<pubDate>Thu, 20 Dec 2007 22:11:37 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[access switch]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/cisco/switchport-macros</guid>
		<description><![CDATA[Smartports macros provide a way to save and share common switch port configurations. You can use Smartports macros for repetitive configuration tasks, such as setting up interfaces for use with a particular type of system. Even for seasoned professionals, macros offer advantages such as consistent configuration.]]></description>
			<content:encoded><![CDATA[<p>Smartports macros provide a way to save and share common switch port configurations. You can use Smartports macros for repetitive configuration tasks, such as setting up interfaces for use with a particular type of system.  Even for seasoned professionals, macros offer advantages such as consistent configuration.  Because we are human and prone to mistakes, switchports commonly get configured a little different each time it is performed.</p>
<p><span id="more-39"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Let&#8217;s start with an example macro for the configuration of workstation connected switch ports.  This particular macro is called workstation and contains the commands you would typically use on the interface configuration for connecting standard PC&#8217;s.  The macro can also contain comments, which are defined with the pound sign.  Any line starting with # will simply be ignored by the macro, however they can be of big help when reviewing the contents of the macro to understand what each command is intended for.  Also, you will notice that the first two lines after the macro name are comments that tells what to use this macro for and how to run it on a switch port</p>
<pre>@
macro name workstation
# Configure port for standard workstation connectivity
# Usage: macro apply workstation $vlan "vlan number"
description Accounting Department PC
switchport access vlan $vlan
switchport mode access
# Configure portfast
spanning-tree portfast
# Speed and Duplex
speed auto
duplex auto
# Turn off CDP on user port
no cdp enable
# In case the port is disabled
no shutdown
# Remove the reference to the macro that was ran on this interface
no macro description
@</pre>
<p>Let&#8217;s say we want to configure a switch port for connecting to a workstation and it will reside in vlan 10.  To apply the previous macro, you would do the following:</p>
<pre>switch(config)#interface Gig1/0/1
switch(config-if)#macro apply workstation 10</pre>
<p>It&#8217;s always best practice to have all non-connected ports in a shutdown state.  The following macro will reset an interface back to a default state and disable the port.</p>
<pre>@
macro name portniu
# Unassign a switch port
# Usage: macro apply portniu
shutdown
description NIU
no switchport
switchport
no spanning-tree portfast
speed auto
duplex auto
no macro description
@</pre>
<p>When creating your own macros, keep in mind the following guidelines:</p>
<ul>
<li>When creating a macro, all CLI commands should be in the same configuration mode.</li>
<li>When a macro is applied globally to a switch or to a switch interface, all existing configuration on the interface is retained. This is helpful when applying an incremental configuration.</li>
<li>If you modify a macro definition by adding or deleting commands, the changes are not reflected on the interface where the macro was originally applied. You need to reapply the updated macro on the interface to apply the new or changed commands.</li>
</ul>
<p>The switches that support macros also have a few already built in, which may do everything you need.  The six default macros are:</p>
<p>cisco-global<br />
cisco-desktop<br />
cisco-phone<br />
cisco-switch<br />
cisco-router<br />
cisco-wireless</p>
<p>The default macros will not show up in the running configuration.  However, any custom macros that are created will show up near the top of the switch&#8217;s running configuration.  To view the contents of each default macro, use the following command:</p>
<pre>switch#show parser macro</pre>
<p>Macros are a huge time saver, consider using them in your next deployment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/switchport-macros/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco 3750 Access Switch Stacking Quick Reference</title>
		<link>http://www.xpresslearn.com/cisco/cisco-3750-access-switch-stacking-quick-reference</link>
		<comments>http://www.xpresslearn.com/cisco/cisco-3750-access-switch-stacking-quick-reference#comments</comments>
		<pubDate>Sun, 16 Dec 2007 04:34:20 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[stack]]></category>
		<category><![CDATA[Switch]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/cisco/cisco-3750-access-switch-quick-reference</guid>
		<description><![CDATA[This article contains notes on Cisco Catalyst 3750 switch stack operation.  Listed are quick references to useful commands when administering this model of switch.]]></description>
			<content:encoded><![CDATA[<p><em><strong>Operational Notes:</strong></em></p>
<p>The stack master is the single point of stack-wide management. From the stack master, you configure:</p>
<p>- System-level (global) features that apply to all stack members<br />
- Interface-level features for each stack member</p>
<p>All stack members are eligible stack masters. If the stack master becomes unavailable, the remaining stack members participate in electing a new stack master from among themselves. A set of factors determine which switch is elected the stack master. One of the factors is the stack member priority value. The switch with the highest priority value becomes the stack master.</p>
<p>A higher priority value for a stack member increases its likelihood to be elected stack master and to retain its stack member number. The priority value can be 1 to 15. The default priority value is 1.</p>
<p><span id="more-38"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The stack master contains the saved and running configuration files for the switch stack. The configuration files include the system-level settings for the switch stack and the interface-level settings for each stack member. Each stack member has a current copy of these files for back-up purposes.</p>
<p>You manage the switch stack through a single IP address. The IP address is a system-level setting and is not specific to the stack master or to any other stack member. You can manage the stack through the same IP address even if you remove the stack master or any other stack member from the stack.</p>
<p>A switch stack has up to nine stack members connected through their StackWise ports. A switch stack always has one stack master.</p>
<p><em><strong>Command Usage Notes:</strong></em></p>
<p>You can display the stack member number by using the user EXEC command:</p>
<pre>Switch#show switch</pre>
<p>You can manually change the stack member number by using the global configuration command:</p>
<pre>Switch(Config)#switch (current-stack-member-number) renumber (new-stack-member-number)</pre>
<p>The new number goes into effect after that stack member resets.</p>
<p>A single switch can be reset in the stack by using the privileged EXEC command:</p>
<pre>Switch#reload slot (stack-member-number)</pre>
<p>You can change the priority value for a stack member by using the  global configuration command:</p>
<pre>Switch(Config)#switch (stack-member-number) priority (new-priority-value)</pre>
<p>To manually upgrade a stack member using the IOS from another stack member:</p>
<pre>Switch#archive copy-sw /destination-system (destination-stack-member-number)
/force-reload (source-stack-member-number)</pre>
<p>To run a command (such as show version) on a single switch in the stack:</p>
<pre>remote command (stack-member-number) show version</pre>
<p>Valid values for stack-member-number are 1-9</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/cisco-3750-access-switch-stacking-quick-reference/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>dot1Q trunking between Cisco and 3com SuperStack III switches</title>
		<link>http://www.xpresslearn.com/cisco/dot1q-trunking-between-cisco-and-3com-superstack-iii-switches</link>
		<comments>http://www.xpresslearn.com/cisco/dot1q-trunking-between-cisco-and-3com-superstack-iii-switches#comments</comments>
		<pubDate>Tue, 09 Oct 2007 03:55:24 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[3com]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Switch]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/24</guid>
		<description><![CDATA[This article will walk through the configuration steps of setting up an 802.1q trunk port between a Cisco access switch and a 3com SuperStack III access switch.]]></description>
			<content:encoded><![CDATA[<p>The goal of this article is to show inter-operable trunk port configurations for Cisco and 3com SuperStack III switches.  This information will specifically focus on connecting a Cisco switch to a 3com switch and establishing an 802.1q trunk.</p>
<p><span id="more-24"></span></p>
<p>Goal:</p>
<p>Workstations configured for vlan 10 and Servers configured for vlan 11 are connected to a Cisco Switch. Another switch has to be added for capacity reasons, however it is a 3com.  Additional Workstations and Servers need to be connected to the new 3com switch, using the same vlan separation configured on the Cisco access switch.  The workstations in vlan 10 must communicate to each other across both switches.  The Servers must also communicate across switches, which are in vlan 11.</p>
<p>In this example:</p>
<ul>
<li>The Cisco switch is connected to the 3com switch using port 1 on each side.</li>
<li>Create two vlans locally on each switch
<ul>
<li>Vlan 10 (for Workstations)</li>
<li>Vlan 11 (for Servers)</li>
</ul>
</li>
<li>Configure port 1 on each switch for 802.1q trunking</li>
</ul>
<p>Cisco switch configuration:</p>
<pre>vlan 10
 name Workstations
vlan 11
 name Servers

interface FastEthernet0/1
description Connected to 3com switch
switchport trunk encapsulation dot1q
switchport mode trunk</pre>
<pre>interface FastEthernet0/2
description Workstation
switchport access vlan 10

interface FastEthernet0/3
description Server
switchport access vlan 11</pre>
<p>3com SuperStack III configuration steps:</p>
<pre>Select menu option (bridge/vlan): create
Select VLAN ID (2-4094)[3]: 10
Enter VLAN Name [VLAN 10]: Workstations</pre>
<pre>
Select menu option (bridge/vlan): create
Select VLAN ID (2-4094)[3]: 11
Enter VLAN Name [VLAN 11]: Servers

Select menu option (bridge/vlan/modify): add
Select VLAN ID (1-2,116,120)[1]: 10
Select bridge ports (AL1-AL4,unit:port...,?): 1:2
Enter tag type (untagged, tagged): untagged</pre>
<pre>Select menu option (bridge/vlan/modify): add
Select VLAN ID (1-2,116,120)[1]: 11
Select bridge ports (AL1-AL4,unit:port...,?): 1:3
Enter tag type (untagged, tagged): untagged</pre>
<pre>
Select menu option (bridge/vlan/modify): add
Select VLAN ID (1-2,116,120)[1]: 10-11
Select bridge ports (AL1-AL4,unit:port...,?): 1:1
Enter tag type (untagged,tagged): tagged</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/dot1q-trunking-between-cisco-and-3com-superstack-iii-switches/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Say Goodbye to Vlan1</title>
		<link>http://www.xpresslearn.com/cisco/say-goodbye-to-vlan1</link>
		<comments>http://www.xpresslearn.com/cisco/say-goodbye-to-vlan1#comments</comments>
		<pubDate>Mon, 08 Oct 2007 02:51:08 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Switch]]></category>
		<category><![CDATA[Vlan1]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/23</guid>
		<description><![CDATA[Stop managing Cisco devices with the default Vlan1.  This article will explain why to change this in your network, and how to perform the configuration.]]></description>
			<content:encoded><![CDATA[<p>There are so many reasons to leave Vlan1 alone.  Just let it do the bare minimum it has do and nothing else.  There are three common abuses that administrators misuse vlan1 for (hey we are all guilty, including me).</p>
<p><span id="more-23"></span></p>
<ol>
<li>Running switch management traffic over Vlan1.  This is when an IP address is configured on Vlan1 in order to access the switch for management purposes.  Every access switch comes with vlan1 in the default configuration, which makes it very easy to configure an IP address on it, in order to telnet to the switch for management.</li>
<li>Running user traffic over Vlan1.  This happens typically in smaller networks where a switch is installed and the default port setup is used.  The default configuration for all access switch ports is to run user traffic in this vlan.</li>
<li>Running native vlan traffic on trunk ports over vlan1, please see this<a href="http://www.xpresslearn.com/index.php/archives/19"> remedy</a> for that issue.</li>
</ol>
<p>All three of these issues largely exist because of the default IOS configurations that Cisco defines for the switch.  The defaults are designed for small networks and/or junior administrators so that they can get switches up and on the network quickly and easily.  You are expected by Cisco to know when to change the defaults, however this commonly does not what happen, even in larger scale implementations.</p>
<p>This article will only focus on abuse number 1.  There are other solutions to numbers 2 and 3, which is talked about separately.</p>
<p>Now, to be fair, back in the &#8216;early&#8217; days, the &#8216;Management Vlan&#8217;, as it&#8217;s commonly referred as, couldn&#8217;t be changed.  So if you were going to manage a switch over the network, the IP address had to be configured on Vlan1.  This has long been remedied and really leaves little to no excuse for still using it.</p>
<p>Before showing how to change this, here are just a few facts about what vlan1 is used for that can&#8217;t be changed (thus the reason to leave it only to do these things).</p>
<ul>
<li> Cisco Discovery Protocol (CDP)</li>
<li>Vlan Trunking Protocol (VTP)</li>
<li>Port Aggregation Protocol (PAgP)</li>
<li>Dynamic Trunking Protocol.(DTP)</li>
</ul>
<p>In order to change the management vlan, you must first decide on a (preferably dedicated) vlan number to use.  Once this is decided, connect to the conolse port of the switch and perform the following configuration:</p>
<pre>Switch#config t
Switch(Config)#interface Vlan1
Switch(Config)#no ip address
Switch(Config)#shutdown
Switch(Config)#interface VlanX
Switch(Config)#ip address x.x.x.x y.y.y.y
Switch(Config)#no shut</pre>
<p>After performing this configuration, you will be able to access the switch from the new vlan.  As for access to this vlan, you must either have the host you are accessing from in the same vlan as the management, or have some type of layer3 interface in the management vlan. The benefits to having a layer3 interface in the management vlan allows you to use a firewall or an access list on a router interface to limit access to the devices.</p>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/say-goodbye-to-vlan1/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

