<?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>CCIE UK &#187; IOS</title>
	<atom:link href="http://www.ccieuk.com/tag/ios/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ccieuk.com</link>
	<description>Moving towards CCIE....</description>
	<lastBuildDate>Sun, 17 Jan 2010 17:02:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>UDLD and EtherChannel Configuration</title>
		<link>http://www.ccieuk.com/2009/06/25/udld-and-etherchannel-configuration/</link>
		<comments>http://www.ccieuk.com/2009/06/25/udld-and-etherchannel-configuration/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 19:27:11 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[CCIE Study]]></category>
		<category><![CDATA[LAN Switching]]></category>
		<category><![CDATA[Technical Articles]]></category>
		<category><![CDATA[CCNA]]></category>
		<category><![CDATA[CCNP]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://www.ccieuk.com/?p=113</guid>
		<description><![CDATA[A data centre network for a client I work with had an interesting issue this week. For no apparent reason some users within the data centre environment reported connection issues to hosts in the network. They were able to connect to some hosts but not others. Then all of a sudden connection would be restored [...]]]></description>
			<content:encoded><![CDATA[<p>A data centre network for a client I work with had an interesting issue this week. For no apparent reason some users within the data centre environment reported connection issues to hosts in the network. They were able to connect to some hosts but not others. Then all of a sudden connection would be restored but quickly lost again.</p>
<p>One of my colleagues was able to access two of the core data centre switches but I could only get to one. A very quick trip to the data centre floor and a console cable connection into the core data centre switches revealed the issue.<span id="more-113"></span></p>
<p>The two switches in question (Catalyst 4507s) have a 2 x 1Gb EtherChannel configured on either end, connected by fibre connections. One side of the connection reported that both links were active in the Etherchannel. The other side had one link as down and the logs showing that the connection had left the EtherChannel.</p>
<p>The full reason for this is still unknown but this type of issue, where one side sees the link as up but the other sees it as down, is called a unidrectional failure. To solve the matter at hand, we first of all shut down the faulty link at the end that still had the link up. As soon as this was done everything sprung into life and everyone was able to connect to the data centre hosts. While the link was down we quickly swapped out the GBic cards and brought the connection backup. The link joined back into the EtherChannel and everything was back as it should be.</p>
<p>This highlighted an issue with the Etherchannel configuration on these particular switches however. Here is a look at the configuration of one of the Etherchannel interfaces as it stood at that time.</p>
<p>interface GigabitEthernet1/1<br />
description ** link to xxxxxx **<br />
switchport trunk encapsulation dot1q<br />
switchport trunk allowed vlan x,xx,xx,xx-xx,xx-xx,xx<br />
switchport mode trunk<br />
qos trust dscp<br />
<span style="color: #ff0000;">channel-group 1 mode on</span></p>
<p>I have always advised network engineers to use a mode of desirable on either side of an  Etherchannel connection, rather than forcing the Etherchannel up.  The on mode forces a port to join an Etherchannel without any sort of Etherchannel protocol negotiation taking place. Using the desirable keyword instead of the on keyword means that the switch uses the Port Aggregation Protocol (PAgP). When using PAgP the switch learns of partner interfaces on other switches that support PAgP and dynamically groups its interfaces into an Etherchannel. Lets look at an example. I&#8217;ve set up two Cisco Catalyst 3550s back to back connecting ports 13 and 14 off each switch together.</p>
<p>Here is the configuration of the ports on either end of the connection.</p>
<p>interface FastEthernet0/13<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
<span style="color: #ff0000;">channel-group 1 mode desirable<br />
</span>!<br />
interface FastEthernet0/14<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
<span style="color: #ff0000;">channel-group 1 mode desirable</span></p>
<p>Once the port channel group on the first configured interface the IOS automatically creates the port channel interafce.</p>
<p>interface Port-channel1<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk</p>
<p>If the same configuration is applied at both ends then the PAgP protocol will dynamically place each relevant interface into the Etherchannel.</p>
<p>Here is the output of the show etherchannel summary command from SW1</p>
<p>SW1#show etherchannel summary<br />
Flags:  D &#8211; down        P &#8211; in port-channel<br />
I &#8211; stand-alone s &#8211; suspended<br />
H &#8211; Hot-standby (LACP only)<br />
R &#8211; Layer3      S &#8211; Layer2<br />
U &#8211; in use      f &#8211; failed to allocate aggregator<br />
u &#8211; unsuitable for bundling<br />
w &#8211; waiting to be aggregated<br />
d &#8211; default port<br />
Number of channel-groups in use: 1<br />
Number of aggregators:           1</p>
<p>Group  Port-channel  Protocol    Ports<br />
&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1      Po1(SU)         PAgP      Fa0/13(P)   Fa0/14(P)</p>
<p>Lets see what happens if I change port fas0/14 on SW2, removing it from the channel and thus stopping PAgP.</p>
<p>SW2(config-if)#no channel-group 1<br />
SW2(config-if)#do show etherchannel summ<br />
Flags:  D &#8211; down        P &#8211; in port-channel<br />
I &#8211; stand-alone s &#8211; suspended<br />
H &#8211; Hot-standby (LACP only)<br />
R &#8211; Layer3      S &#8211; Layer2<br />
U &#8211; in use      f &#8211; failed to allocate aggregator<br />
u &#8211; unsuitable for bundling<br />
w &#8211; waiting to be aggregated<br />
d &#8211; default port<br />
Number of channel-groups in use: 1<br />
Number of aggregators:           1</p>
<p>Group  Port-channel  Protocol    Ports<br />
&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1      Po1(SU)         PAgP      Fa0/13(P)</p>
<p>On SW1 both fas0/13 and 14 are still configured as part of port channel 1. But as PAgP is used, SW1 drops port14 from the group when it stops seeing PAgP.</p>
<p>SW1#sh etherchannel summ<br />
Flags:  D &#8211; down        P &#8211; in port-channel<br />
I &#8211; stand-alone s &#8211; suspended<br />
H &#8211; Hot-standby (LACP only)<br />
R &#8211; Layer3      S &#8211; Layer2<br />
U &#8211; in use      f &#8211; failed to allocate aggregator<br />
u &#8211; unsuitable for bundling<br />
w &#8211; waiting to be aggregated<br />
d &#8211; default port<br />
Number of channel-groups in use: 1<br />
Number of aggregators:           1</p>
<p>Group  Port-channel  Protocol    Ports<br />
&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1      Po1(SU)         PAgP      Fa0/13(P)   Fa0/14(I)</p>
<p>Port fas0/14 is now operating as a stand-alone port and is now a seperate trunk between the switches.</p>
<p>SW1#sh int trunk</p>
<p>Port        Mode         Encapsulation  Status        Native vlan<br />
Fa0/14      on           802.1q         trunking      1<br />
Po1         on           802.1q         trunking      1</p>
<p>SW2#sh int trunk</p>
<p>Port        Mode         Encapsulation  Status        Native vlan<br />
Fa0/14      on           802.1q         trunking      1<br />
Po1         on           802.1q         trunking      1</p>
<p>In the data centre situation I described above this would have dropped the offending interfaces from the etherchannel as one side would have stopped seeing PAgP. However, it may have been possible for one switch to move the interface into stand-alone mode and pass traffic across a broken link, as it was still seeing this link as up. In order to help in situations like these Cisco developed the Unidirectional Link Dection protocol.</p>
<p>UDLD can now be configured in aggressive mode from IOS Release 12.1(3a)E.  Cisco describe aggressive mode as follows:</p>
<p>&#8221; Configure UDLD aggressive mode only on point-to-point links between network devices that support UDLD aggressive mode. With UDLD aggressive mode enabled, when a port on a bidirectional link that has a UDLD neighbor relationship established stops receiving UDLD packets, UDLD tries to reestablish the connection with the neighbor. After eight failed retries, the port is disabled. <a name="wp1027554"></a></p>
<p class="pB1_Body1">To prevent spanning tree loops, nonaggressive UDLD with the default interval of 15 seconds is fast enough to shut down a unidirectional link before a blocking port transitions to the forwarding state (with default spanning tree parameters).</p>
<p><a name="wp1027556"></a></p>
<p class="pB1_Body1">When you enable UDLD aggressive mode, you receive additional benefits in the following situations:</p>
<p><a name="wp1027558"></a></p>
<p class="pBu1_Bullet1">•One side of a link has a port stuck (both Tx and Rx)</p>
<p><a name="wp1027560"></a></p>
<p class="pBu1_Bullet1">•One side of a link remains up while the other side of the link has gone down</p>
<p><a name="wp1027516"></a></p>
<p class="pB1_Body1">In these cases, UDLD aggressive mode disables one of the ports on the link, which prevents traffic from being discarding. &#8220;</p>
<p class="pB1_Body1">I use aggressive mode when available. Configuration is simple. To configure non-aggressive udld you would enter the following command.</p>
<p class="pB1_Body1">
<p class="pB1_Body1">SW2(config)#int fas0/13<br />
SW2(config-if)#udld port</p>
<p class="pB1_Body1">
<p class="pB1_Body1">To configure aggressive mode only one more keyword is required</p>
<p class="pB1_Body1">
<p class="pB1_Body1">SW2(config-if)#int fas0/14<br />
SW2(config-if)#udld port aggressive</p>
<p class="pB1_Body1">
<p class="pB1_Body1">Using the show udld command you can check to make sure that udld is running as desired.</p>
<p class="pB1_Body1">
<p class="pB1_Body1">SW2#sh udld</p>
<p class="pB1_Body1">Interface Fa0/13<br />
&#8212;<br />
Port enable administrative configuration setting: Enabled / in aggressive mode<br />
Port enable operational state: Enabled / in aggressive mode<br />
Current bidirectional state: Bidirectional<br />
Current operational state: Advertisement &#8211; Single neighbor detected<br />
Message interval: 7<br />
Time out interval: 5</p>
<p class="pB1_Body1">Entry 1<br />
&#8212;<br />
Expiration time: 44<br />
Cache Device index: 1<br />
Current neighbor state: Bidirectional<br />
Device ID: CAT0640X09Y<br />
Port ID: Fa0/13<br />
Neighbor echo 1 device: CAT0825X28N<br />
Neighbor echo 1 port: Fa0/13</p>
<p class="pB1_Body1">Message interval: 15<br />
Time out interval: 5<br />
CDP Device name: SW1</p>
<p class="pB1_Body1">Interface Fa0/14<br />
&#8212;<br />
Port enable administrative configuration setting: Enabled / in aggressive mode<br />
Port enable operational state: Enabled / in aggressive mode<br />
Current bidirectional state: Bidirectional<br />
Current operational state: Advertisement &#8211; Single neighbor detected<br />
Message interval: 15<br />
Time out interval: 5</p>
<p class="pB1_Body1">Entry 1<br />
&#8212;<br />
Expiration time: 33<br />
Cache Device index: 1<br />
Current neighbor state: Bidirectional<br />
Device ID: CAT0640X09Y<br />
Port ID: Fa0/14<br />
Neighbor echo 1 device: CAT0825X28N<br />
Neighbor echo 1 port: Fa0/14</p>
<p class="pB1_Body1">Message interval: 15<br />
No timeout interval<br />
No CDP device name</p>
<p class="pB1_Body1">
<p class="pB1_Body1">The final configuration of the ports on either end looks like this:</p>
<p class="pB1_Body1">
<p class="pB1_Body1">interface FastEthernet0/13<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
udld port aggressive<br />
channel-group 1 mode desirable<br />
!<br />
interface FastEthernet0/14<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
udld port aggressive<br />
channel-group 1 mode desirable</p>
<p class="pB1_Body1">
<p class="pB1_Body1">Etherchannels are wonderful things and in the most part run without any hitches. However, I think that running some sort of protocol to help dynamically manage the participating interfaces and using UDLD to monitor for unidirectional failures is a good safeguard from situations such as the one described above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccieuk.com/2009/06/25/udld-and-etherchannel-configuration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TechRepublic File System Video</title>
		<link>http://www.ccieuk.com/2009/04/19/techrepublic-file-system-video/</link>
		<comments>http://www.ccieuk.com/2009/04/19/techrepublic-file-system-video/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 10:39:08 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[CCNA]]></category>
		<category><![CDATA[Technical Articles]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[Learning]]></category>

		<guid isPermaLink="false">http://www.ccieuk.com/?p=71</guid>
		<description><![CDATA[The TechRepublic site is one of the very best on the web for IT resources and an excellent source of learning materials.  I came across a nice video presented by Bill Detwiler the other day called 10 Cisco IOS Router file management commands every Cisco admin should know. Most CCNA students I&#8217;ve taught in the last [...]]]></description>
			<content:encoded><![CDATA[<p>The TechRepublic site is one of the very best on the web for IT resources and an excellent source of learning materials.  I came across a nice video presented by Bill Detwiler the other day called <a title="File Management Video" href="http://blogs.techrepublic.com.com/itdojo/?p=420&amp;tag=nl.e099.dl090401&amp;tag=nl.e099" target="_blank">10 Cisco IOS Router file management commands every Cisco admin should know</a>. Most CCNA students I&#8217;ve taught in the last few years have experience of managing files and file systems through GUIs. Very few have used DOS or a Unix/Linux command line to do file management tasks and so they can struggle at first with managing files using IOS.  The video includes commands such as:</p>
<ul>
<li>dir</li>
<li>cd</li>
<li>copy</li>
<li>verify</li>
<li>fsck</li>
</ul>
<p>The video post also contains a link to a <a title="File Management Article" href="http://blogs.techrepublic.com.com/networking/?p=759" target="_blank">corresponding article </a>by David Davis that covers each of the commands in a little more detail.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccieuk.com/2009/04/19/techrepublic-file-system-video/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
