<?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; LAN Switching</title>
	<atom:link href="http://www.ccieuk.com/category/swithing/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>OSPF Passive Interface Command</title>
		<link>http://www.ccieuk.com/2009/04/18/ospf-passive-interface-command/</link>
		<comments>http://www.ccieuk.com/2009/04/18/ospf-passive-interface-command/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 10:47:41 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[CCIE Study]]></category>
		<category><![CDATA[CCNA]]></category>
		<category><![CDATA[CCNP]]></category>
		<category><![CDATA[LAN Switching]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[Technical Articles]]></category>
		<category><![CDATA[OSPF]]></category>

		<guid isPermaLink="false">http://www.ccieuk.com/?p=35</guid>
		<description><![CDATA[
I was recently asked by a client to help troubleshoot an issue they were having after upgrading the IOS on two of their core Cisco Catalyst 6509s. The two switches are connected together by three 1Gb fibre links that run about 500m between two buildings (Building A and B). Two of the links are bundled [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align: left;">
<p>I was recently asked by a client to help troubleshoot an issue they were having after upgrading the IOS on two of their core Cisco Catalyst 6509s. The two switches are connected together by three 1Gb fibre links that run about 500m between two buildings (Building A and B). Two of the links are bundled together in an 802.1q Etherchannel. Only one vlan, 100, is allowed to cross the link and this vlan is used purely for traffic to and from a cluster of Call Manager 4 servers. The other link is a 1Gb layer 3 fibre link that is used for any other user traffic across the core switches.</p></div>
<div class="mceTemp mceIEcenter" style="text-align: left;">
<p>Here is a high-level layout of the switches and their connections. All IP addresses and vlans have been changed from their original values.
</p></div>
<div class="mceTemp mceIEcenter">
<div id="attachment_37" class="wp-caption aligncenter" style="width: 421px"><img class="size-full wp-image-37" title="Network Layout" src="http://www.ccieuk.com/wp-content/uploads/2009/04/ospfpassive1.gif" alt="Network Layout" width="411" height="203" /><p class="wp-caption-text">Network Layout</p></div>
</div>
<p>The 6509s also have links to other core switches within the network, so if the layer 3 link goes down traffic should be routed through these other switches. <span id="more-35"></span></p>
<p>After the IOS upgrades took place users at Building B had reported that access to a server at Building A was slow or dropping out. The Layer 3 link was up with no errros reported and to the client everything looked fine.</p>
<p>After looking at the routing between both locations I discovered that the traffic was crossing the layer 2 etherchannel passing through the vlan 100 interfaces of both switches. The way the switches were configured, this route <em>was</em> the optimal path for traffic to flow through, although my client was adamant that this had not been the case before. To OSPF, the interior gateway protocol that was used, this path had the lowest cost (due to the higher available bandwidth), and so this path was chosen.</p>
<p><strong>Building A Switch</strong></p>
<p><strong></strong>interface Vlan100<br />
description ** IPTVoice_Server_Vlan **<br />
ip address 10.100.10.3 255.255.255.192<br />
no ip redirects<br />
ip route-cache flow<br />
standby 99 ip 10.100.10.1<br />
standby 99 preempt</p>
<p>router ospf 1<br />
!<br />
network 10.100.10.0 0.0.0.63 area 17</p>
<p><strong>Building B Switch</strong></p>
<p>interface Vlan100<br />
description ** IPT/IPCC Voice_Server_Vlan1 **<br />
ip address 10.100.10.2 255.255.255.192<br />
no ip redirects<br />
standby 99 ip 10.100.10.1<br />
standby 99 priority 105<br />
standby 99 preempt</p>
<p>router ospf 1<br />
!<br />
network 10.100.10.0 0.0.0.63 area 17</p>
<p>Another closer look showed that one of the interfaces of the Etherchannel on the Building A switch was showing a high amount of errors.  Replacing the fibre patch cable soon sorted the issue and users started reporting that all was well again with their connection to the server.</p>
<p>This, however, did not solve the mystery of user traffic suddenly passing over the Voice Server Vlan. A quick download of some archived configurations from Ciscoworks soon revealed what had happend. Before the IOS upgarde interface vlan 100 on Building A 6509 was <em>shutdown</em>. After some confused looks and some discussion, the only reason we could come up with for this being done was that when the voice server solution was deployed by an outside vendor, the vendor encountered the same problem of user traffic flowing over the etherchannel. The design documents stated that the link should only be used for voice server traffic and that HSRP should be up and running. The deployment engineers may have brought the link up and noticed user traffic flowing over it. Instead of working round the problem they may have found the easiest solution was to shut down one of the interface vlan 100 interfaces. I have left the matter of why the deployment was like this with my not so happy client to dicuss with the vendor.</p>
<p>Adjusting the ospf costs would not have made a difference in this case. The users and the users&#8217; servers were in ospf area 17, while the layer 3 link was a backbone link in area 0. Intra-area links will always be preferred over Inter-area ones. We could have, of  course, put the servers network in a different area but, the fastest and simplest solution I could come up with for this problem involved the ospf passive command. OSPF should only generally be run on transit links and I&#8217;ve used the passive command in many environments where layer 3 switches have lots of vlan intefaces that have formed braodaast network type adjancies. This also helps to cut down on CPU and memory usage.</p>
<p>The command is implement under the router ospf configuration mode and it&#8217;s an easy one to understand. To stop the two vlan 100 interfaces forming an adjaceny I only had to add it to one side of the link.</p>
<p><strong>Building A Switch</strong></p>
<p>router ospf 1<br />
!<br />
passive-interface Vlan100</p>
<p>That one command was enough to take down the ospf adjacency between the two Vlan 100 interfaces and stop the user traffic flowing across the link. The 10.100.100/24 subnet is still advertised out to the rest of the network and now HSRP is running as the designer planned, as both interfaces as are up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ccieuk.com/2009/04/18/ospf-passive-interface-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
