<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Layer3</title>
	<atom:link href="http://layer3.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://layer3.wordpress.com</link>
	<description>Adventures in Networking, Routing, Switching, Virtualization, Storage, etc.</description>
	<lastBuildDate>Mon, 16 Nov 2009 02:56:28 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='layer3.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/34d423a8f4303dbe478e492b65682b3b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Layer3</title>
		<link>http://layer3.wordpress.com</link>
	</image>
			<item>
		<title>Problems With Context Menu Handlers</title>
		<link>http://layer3.wordpress.com/2009/11/15/problems-with-context-menu-handlers/</link>
		<comments>http://layer3.wordpress.com/2009/11/15/problems-with-context-menu-handlers/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 22:57:05 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=783</guid>
		<description><![CDATA[Symptom
When right-clicking on a file in Windows XP, the context menu takes over four minutes to be displayed.  Right-clicking on a folder exhibited normal behavior and was not affected.
Background
Context Menu Handlers can load from several areas in the registry.  One set of keys that control the menu creation when right-clicking on a file is located [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=783&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="text-decoration:underline;"><strong>Symptom</strong></span><br />
When right-clicking on a file in Windows XP, the context menu takes over four minutes to be displayed.  Right-clicking on a folder exhibited normal behavior and was not affected.</p>
<p><span style="text-decoration:underline;"><strong>Background</strong></span><br />
Context Menu Handlers can load from several areas in the registry.  One set of keys that control the menu creation when right-clicking on a file is located in:<br />
<em><strong>HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers</strong></em></p>
<p><img class="alignnone size-full wp-image-784" title="regedit" src="http://layer3.files.wordpress.com/2009/11/regedit.jpg?w=700&#038;h=463" alt="regedit" width="700" height="463" /></p>
<p><span style="text-decoration:underline;"><strong>Troubleshooting</strong></span><br />
In this particular case, the end user had been putting up with this for a couple of weeks and was at wits end by the time he finally pulled me aside and asked me to take a look.  I was to happy oblige  as I  was tired of troubleshooting Citrix issues and was ready to look at something different for a few minutes.  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Start by making a backup copy of the entire <em><strong>ContextMenuHandlers</strong></em> subkey by right-clicking on the key and selecting <strong>Export</strong>.<br />
Remove each key subkey under <strong><em>ContextMenuHandlers</em></strong> until you locate the offending entry.<br />
It&#8217;s probably a good idea to export a copy of each subkey before you delete it.  That makes it easier to re-add the non-offending subkey after you&#8217;ve isolated the issue.</p>
<p>In my case, it was the <strong><em>&#8220;Open With&#8221;</em></strong> subkey that was causing the problem.  As soon as it was removed, the menu displayed immediately when right-clicking a file.</p>
<p>After rebooting the PC, I tried importing the &#8220;Open With&#8221; key back into it&#8217;s proper location.  Much to my surprise everything still worked correctly.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/783/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=783&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/11/15/problems-with-context-menu-handlers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/11/regedit.jpg" medium="image">
			<media:title type="html">regedit</media:title>
		</media:content>
	</item>
		<item>
		<title>Reassign a vswif to a new vmnic</title>
		<link>http://layer3.wordpress.com/2009/11/03/reassign-a-vswif-to-a-new-vmnic/</link>
		<comments>http://layer3.wordpress.com/2009/11/03/reassign-a-vswif-to-a-new-vmnic/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 05:16:01 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=766</guid>
		<description><![CDATA[The VMware host in my lab is a Dell GX620 running ESX3.51 U2.  It has three NIC&#8217;s:
The embedded Broadcom BCM5751 Gigabit Adapter  (vmnic0)
3Com 3C905C-TX 10/100 Adapter  (vmnic1)
Intel 8254N Dual Port Gigabit Adapter  (vmnic2 and vmnic3)
The 3C905 isn&#8217;t entirely VMware compatible.  It can be used as a service console connection but will not function as a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=766&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The VMware host in my lab is a Dell GX620 running ESX3.51 U2.  It has three NIC&#8217;s:<br />
The embedded Broadcom BCM5751 Gigabit Adapter  <strong>(vmnic0)</strong><br />
3Com 3C905C-TX 10/100 Adapter  <strong>(vmnic1)</strong><br />
Intel 8254N Dual Port Gigabit Adapter  <strong>(vmnic2 </strong>and<strong> vmnic3)</strong></p>
<p>The 3C905 isn&#8217;t entirely VMware compatible.  It can be used as a service console connection but will not function as a virtual machine uplink on a vSwitch.  It will always show disconnected.</p>
<p>I want to reassign the service console vswif to the 3Com adapter, keep the same IP address and move the service console port group to a new vSwitch.<br />
<img class="alignnone size-full wp-image-768" title="before" src="http://layer3.files.wordpress.com/2009/11/before.jpg?w=495&#038;h=343" alt="before" width="495" height="343" /></p>
<p>VMware doesn&#8217;t like having two service console connections with different IP addresses in the same subnet, so I have two options.</p>
<p>1.  Create a service console connection in a different subnet and access the host from that subnet using the VIclient.<br />
2.  Enter the commands directly on the host console.</p>
<p>I recommend option two.  Keep in mind that this process temporarily disrupts network communications to the host via the service console IP.</p>
<p>After obtaining physical access to the host&#8217;s console (or network access via a DRAC or ILO), log in and <strong>su -</strong> to establish root.</p>
<p>Remove vswif0 from vSwitch0<br />
<strong><em>esxcfg-vswif -d vswif0  &#8211;ip=192.168.68.35  &#8211;netmask=255.255.255.0  &#8211;portgroup=SCX</em></strong></p>
<p>Remove the SCX port group from vSwitch0<br />
<strong><em>esxcfg-vswitch &#8211;del-pg=SCX vSwitch0</em></strong></p>
<p>Create a new vSwitch for the service console;<br />
<strong><em>esxcfg-vswitch -a vSwitch3</em></strong></p>
<p>Assign the 3Com adapter to the newly created vSwitch<br />
<strong><em>esxcfg-vswitch -L vmnic1 vSwitch3</em></strong></p>
<p>Add the SCX port group to vSwitch3<br />
<strong><em>esxcfg-vswitch -A SCX vSwitch3</em></strong></p>
<p>Add vswif0 to the SCX port group and assign the IP address and subnet mask<br />
<em><strong>esxcfg-vswif &#8211;add &#8211;ip=192.168.68.35 &#8211;netmask=255.255.255.0 &#8211;Portgroup=SC2 vswif0</strong></em></p>
<p>Restart the VMware management service<br />
<em><strong>service mgmt-vmware restart</strong></em></p>
<p>Here&#8217;s vSwitch0, still connected to vmnic0 but minus the service console<br />
<img class="alignnone size-full wp-image-769" title="after1" src="http://layer3.files.wordpress.com/2009/11/after1.jpg?w=464&#038;h=288" alt="after1" width="464" height="288" /></p>
<p>And here&#8217;s the new vSwitch3 with the service console reassigned to vmnic1<br />
<img class="alignnone size-full wp-image-770" title="after2" src="http://layer3.files.wordpress.com/2009/11/after2.jpg?w=455&#038;h=112" alt="after2" width="455" height="112" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/766/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/766/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/766/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=766&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/11/03/reassign-a-vswif-to-a-new-vmnic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/11/before.jpg" medium="image">
			<media:title type="html">before</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/11/after1.jpg" medium="image">
			<media:title type="html">after1</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/11/after2.jpg" medium="image">
			<media:title type="html">after2</media:title>
		</media:content>
	</item>
		<item>
		<title>Experimenting with STP and PortFast</title>
		<link>http://layer3.wordpress.com/2009/10/29/experimenting-with-stp-and-portfast/</link>
		<comments>http://layer3.wordpress.com/2009/10/29/experimenting-with-stp-and-portfast/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 03:28:03 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[BCMSN]]></category>
		<category><![CDATA[CCNP]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[PortFast]]></category>
		<category><![CDATA[Spanning-Tree]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=715</guid>
		<description><![CDATA[Some STP Basics
On most Cisco Catalyst switches, STP is enabled on all ports by default.   Port initialization requires upwards of 30 seconds to complete, and can take as long as 50 seconds.
This thirty second &#8220;delay&#8221; can be attributed to the time required for the port to transition from Listening to Learning and finally to Forwarding.
The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=715&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="text-decoration:underline;"><strong>Some STP Basics</strong></span><br />
On most Cisco Catalyst switches, STP is enabled on all ports by default.   Port initialization requires upwards of 30 seconds to complete, and can take as long as 50 seconds.<br />
This thirty second &#8220;delay&#8221; can be attributed to the time required for the port to transition from<strong> Listening</strong> to <strong>Learning</strong> and finally to <strong>Forwarding</strong>.<br />
The<strong> Listening</strong> and <strong>Learning</strong> transitions each require about 15 seconds.<br />
This transition period can be painful for end users waiting to gain access to the network.  To the untrained IT person it can be misdiagnosed as &#8220;some sort of network issue&#8221;.</p>
<p><span style="text-decoration:underline;"><strong>PortFast to the Rescue</strong></span><br />
<strong>Portfast</strong> shortens the <strong>Listening</strong> and<strong> Learning</strong> states allowing the link to transition to the <strong>Forwarding</strong> state in as little as three seconds.<br />
This translates to quicker access to the network for the end user when they power on their PC, connect a laptop to a wired port, etc.<br />
Enabling <strong>PortFast</strong> does not disable STP on the port, it simply allows us to get to the <strong>Forwarding</strong> state much faster.</p>
<p>Let&#8217;s enable <strong>PortFast</strong> on switch ports 1 &#8211; 4 using the <strong><em>spanning-tree portfast</em></strong> command.  IOS provides a reminder of the possible consequences.</p>
<p><img class="alignnone size-full wp-image-721" title="portfast" src="http://layer3.files.wordpress.com/2009/10/portfast1.jpg?w=607&#038;h=161" alt="portfast" width="607" height="161" /></p>
<p>Looping ports Fa0/2 and Fa0/3 reveals that we still have adequate loop protection as Fa0/3 transitions to a <strong>Blocking</strong> state within ~2 seconds.  Other hosts on the switch are not affected.<br />
In this scenario, PortFast protects against mistakes made in the wiring closet or on the off chance that two access ports would become looped under a desk.  (don&#8217;t laugh, I&#8217;ve seen it happen)<br />
Here&#8217;s a partial output from the <strong><em>show spanning-tree </em></strong>command.</p>
<p><img class="alignnone size-full wp-image-723" title="showspantree1" src="http://layer3.files.wordpress.com/2009/10/showspantree1.jpg?w=650&#038;h=131" alt="showspantree1" width="650" height="131" /></p>
<p>Note that Fa0/3&#8217;s <strong>Role</strong> has changed to <strong>Back</strong>.  This is helpful information as it indicates that two or more ports on the same bridge are connect together.<br />
Fa0/3&#8217;s <strong>Status</strong> has changed to <strong>BLK</strong>, effectively blocking the loop condition .</p>
<p><span style="text-decoration:underline;"><strong>The Tech Savvy End-User</strong></span><br />
Let&#8217;s say an end user wants to add a couple of extra network ports to their cubicle.  Instead of calling the help desk and being questioned as to what unauthorized device they are trying to connect to your LAN, they pick up an unmanaged switch from local retailer and connect it to their access port, Fa0/2.  (for the sake of this post let&#8217;s assume we&#8217;re not MAC locking ports on the switch)</p>
<p>What happens when two ports on the parasite switch connected to access port Fa0/2 become looped?  This partial output from <em><strong>show spanning-tree</strong></em> provides some info.</p>
<p><img class="alignnone size-full wp-image-731" title="selflooped" src="http://layer3.files.wordpress.com/2009/10/selflooped.jpg?w=650&#038;h=113" alt="selflooped" width="650" height="113" /></p>
<p>This should generate a call to the help desk as Fa0/2 immediately transitions to a <strong>Blocking</strong> state, preventing traffic from the looped parasite switch from entering the network.<br />
<strong>Role</strong> is indicating <strong>Designated (DESG)</strong> which means that Fa0/2 is not looped with another port on this switch.  The <strong>Type</strong> field provides additional information.  <strong>Self-looped </strong>is a good indicator that something interesting is happening on Fa0/2.  No other hosts on the access switch were impacted.</p>
<p><span style="text-decoration:underline;"><strong>Conclusions</strong></span><br />
PortFast is a great feature and can be enabled without compromising loop protection.  You should think twice about ever disabling spanning-tree.  I&#8217;ve seen a looped parasite switch bring down a 400 node network where spanning-tree had been disabled or wasn&#8217;t available on the particular switches the client has deployed.  Yet another argument for purchasing quality switches for your infrastructure.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/715/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/715/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/715/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=715&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/10/29/experimenting-with-stp-and-portfast/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/portfast1.jpg" medium="image">
			<media:title type="html">portfast</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/showspantree1.jpg" medium="image">
			<media:title type="html">showspantree1</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/selflooped.jpg" medium="image">
			<media:title type="html">selflooped</media:title>
		</media:content>
	</item>
		<item>
		<title>CDP, DTP, LOOP Reply and BPDU</title>
		<link>http://layer3.wordpress.com/2009/10/24/cdp-dtp-loop-reply-and-bpdu/</link>
		<comments>http://layer3.wordpress.com/2009/10/24/cdp-dtp-loop-reply-and-bpdu/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 02:23:08 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[BCMSN]]></category>
		<category><![CDATA[CCNP]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=669</guid>
		<description><![CDATA[A Cisco switch generates a small amount of network traffic as part of it&#8217;s normal housekeeping functions.
It&#8217;s important to be able to recognize normal &#8220;background noise&#8221; when looking at a packet capture.
Below is a packet capture from a Catalyst 3560.  The only device connected to the switch is  an Xp virtual machine running Wireshark.
Note the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=669&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A Cisco switch generates a small amount of network traffic as part of it&#8217;s normal housekeeping functions.<br />
It&#8217;s important to be able to recognize normal &#8220;background noise&#8221; when looking at a packet capture.</p>
<p>Below is a packet capture from a Catalyst 3560.  The only device connected to the switch is  an Xp virtual machine running Wireshark.<br />
Note the four types of packets that appear at regular intervals, STP, LOOP, DTP and CDP.  (click on the image for a larger view)</p>
<p><a href="http://layer3.files.wordpress.com/2009/10/catcap.jpg" target="_blank"><img class="alignnone size-full wp-image-674" title="catcap" src="http://layer3.files.wordpress.com/2009/10/catcap.jpg?w=502&#038;h=354" alt="catcap" width="502" height="354" /></a></p>
<p><span style="text-decoration:underline;"><strong>STP</strong></span><br />
A <strong>Spanning Tree Bridge Protocol Data Unit (BPDU)</strong> is sent every two seconds as part of the loop detection process.<br />
This particular packet tells us that the root bridge is 00:22:be:21:3e:80, which also happens to be the switch we are connected to.</p>
<p>It is possible to prevent BPDU&#8217;s from being sent out an interface by enabling <strong>BPDU Filtering</strong> .</p>
<p><img class="alignnone size-full wp-image-676" title="bpdufilter" src="http://layer3.files.wordpress.com/2009/10/bpdufilter.jpg?w=654&#038;h=221" alt="bpdufilter" width="654" height="221" /></p>
<p><strong>BPDU Filtering</strong> can be enabled globally for every port that has <strong>PortFast</strong> enabled by using the <em><strong>spanning-tree portfast bpdufilter default</strong></em> command.</p>
<p><img class="alignnone size-full wp-image-677" title="gcbpdufilter" src="http://layer3.files.wordpress.com/2009/10/gcbpdufilter.jpg?w=556&#038;h=256" alt="gcbpdufilter" width="556" height="256" /></p>
<p>Note this also disables loop detection on all access ports,  probably not a good idea under most circumstances.</p>
<p><strong><span style="text-decoration:underline;">LOOP</span><br />
LOOP Reply</strong> is a Layer 2 keepalive packet that is sent every ten seconds by default.<br />
The LOOP Reply verifies to IOS that the link is up.  The switch does not actually listen for a reply, it simply verifies that was able to send the packet out the interface.<br />
Loss of three consecutive Layer 2 keepalives will cause the interface to transition to a down state.<br />
It is possible to configure the interval between packets by using the <em><strong>keepalive</strong></em> interface configuration command.</p>
<p><img class="alignnone size-full wp-image-695" title="keepalive" src="http://layer3.files.wordpress.com/2009/10/keepalive.jpg?w=425&#038;h=100" alt="keepalive" width="425" height="100" /></p>
<p><strong><span style="text-decoration:underline;">DTP</span><br />
Dynamic Trunking Protocol (DTP)</strong> is a Cisco proprietary protocol used to negotiate a common trunking mode between two switches.<br />
A trunk link differs from an access port in that a trunk can transport more than one VLAN.<br />
DTP packets are sent every thirty seconds by default.<br />
If the switch port is configured as an access port using the <strong><em>switchport mode access</em></strong> command, DTP packets will not be sent from that interface.</p>
<p><img class="alignnone size-full wp-image-682" title="swportmodeaccess" src="http://layer3.files.wordpress.com/2009/10/swportmodeaccess.jpg?w=656&#038;h=145" alt="swportmodeaccess" width="656" height="145" /><br />
When an access port is reconfigured as a trunk port, transmission of DTP packets will resume 30 seconds after the port is reconfigured.</p>
<p><span style="text-decoration:underline;"><strong>CDP</strong></span><br />
<strong>Cisco Discovery Protocol</strong> (<strong>CDP</strong>) packets are sent every sixty seconds by default.<br />
CDP provides information about the capabilities of a device to it&#8217;s connected neighbor.<br />
CDP can be disabled and it&#8217;s not a bad idea to do so under certain circumstances especially if security is a concern.</p>
<p><strong>CDP</strong> can be disabled globally with the <strong><em>no cdp run</em></strong> command.</p>
<p><img class="alignnone size-full wp-image-683" title="cdpglobal" src="http://layer3.files.wordpress.com/2009/10/cdpglobal.jpg?w=572&#038;h=120" alt="cdpglobal" width="572" height="120" /></p>
<p><strong>CDP</strong> can also be disabled on a particular interface with the <em><strong>no cdp enable</strong></em> command.</p>
<p><strong><br />
</strong></p>
<p><strong><br />
</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/669/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=669&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/10/24/cdp-dtp-loop-reply-and-bpdu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/catcap.jpg" medium="image">
			<media:title type="html">catcap</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/bpdufilter.jpg" medium="image">
			<media:title type="html">bpdufilter</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/gcbpdufilter.jpg" medium="image">
			<media:title type="html">gcbpdufilter</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/keepalive.jpg" medium="image">
			<media:title type="html">keepalive</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/swportmodeaccess.jpg" medium="image">
			<media:title type="html">swportmodeaccess</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/cdpglobal.jpg" medium="image">
			<media:title type="html">cdpglobal</media:title>
		</media:content>
	</item>
		<item>
		<title>Enable CDP on a VMware vSwitch</title>
		<link>http://layer3.wordpress.com/2009/10/21/enable-cdp-on-a-vmware-vswitch/</link>
		<comments>http://layer3.wordpress.com/2009/10/21/enable-cdp-on-a-vmware-vswitch/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 02:29:50 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Switching]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=649</guid>
		<description><![CDATA[vSwitches are capable of advertising and listening for CDP information from an attached Cisco device.
CDP on a vSwitch is set to &#8220;Listen&#8221; by default.
To enable CDP you&#8217;ll need to access the Service Console.
After logging in type su- to establish root.
First let&#8217;s take a look at the command options by using esxcfg-vswitch -h

Use esxcfg-vswitch -l to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=649&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>vSwitches are capable of advertising and listening for CDP information from an attached Cisco device.<br />
CDP on a vSwitch is set to &#8220;Listen&#8221; by default.</p>
<p>To enable CDP you&#8217;ll need to access the Service Console.<br />
After logging in type <strong>su-</strong> to establish root.</p>
<p>First let&#8217;s take a look at the command options by using <strong>esxcfg-vswitch -h</strong></p>
<p><img class="alignnone size-full wp-image-650" title="esxcfg-vswitch-h" src="http://layer3.files.wordpress.com/2009/10/esxcfg-vswitch-h.jpg?w=725&#038;h=447" alt="esxcfg-vswitch-h" width="725" height="447" /></p>
<p>Use <strong>esxcfg-vswitch -l</strong> to show a list of configured vSwitches on the host.</p>
<p><img class="alignnone size-full wp-image-652" title="esxcfg-vswitch-l" src="http://layer3.files.wordpress.com/2009/10/esxcfg-vswitch-l1.jpg?w=641&#038;h=387" alt="esxcfg-vswitch-l" width="641" height="387" /></p>
<p>Now that we know the vSwitch names, let&#8217;s check the CDP status on vSwitch1 using <strong>esxcfg-vswitch -b vSwitch1</strong><br />
<img class="alignnone size-full wp-image-653" title="esxcfg-vswitch-b" src="http://layer3.files.wordpress.com/2009/10/esxcfg-vswitch-b.jpg?w=473&#038;h=97" alt="esxcfg-vswitch-b" width="473" height="97" /><br />
Set CDP to listen and advertise using the &#8220;<strong>both</strong>&#8221; option.  <strong>esxcfg-vswitch -B both vSwitch1</strong><br />
Verify the settings using <strong>esxcfg-vswitch -b vSwitch1</strong><br />
<img class="alignnone size-full wp-image-654" title="esxcfg-vswitch-B both" src="http://layer3.files.wordpress.com/2009/10/esxcfg-vswitch-b-both.jpg?w=496&#038;h=97" alt="esxcfg-vswitch-B both" width="496" height="97" /><br />
Executing <strong>show CDP neighbors</strong> from the Catalyst switch shows the ports that the ESX host resides on and the vmnic of the uplink.</p>
<p><img class="alignnone size-full wp-image-655" title="showcdpneighbors" src="http://layer3.files.wordpress.com/2009/10/showcdpneighbors.jpg?w=629&#038;h=103" alt="showcdpneighbors" width="629" height="103" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/649/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=649&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/10/21/enable-cdp-on-a-vmware-vswitch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/esxcfg-vswitch-h.jpg" medium="image">
			<media:title type="html">esxcfg-vswitch-h</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/esxcfg-vswitch-l1.jpg" medium="image">
			<media:title type="html">esxcfg-vswitch-l</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/esxcfg-vswitch-b.jpg" medium="image">
			<media:title type="html">esxcfg-vswitch-b</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/esxcfg-vswitch-b-both.jpg" medium="image">
			<media:title type="html">esxcfg-vswitch-B both</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/showcdpneighbors.jpg" medium="image">
			<media:title type="html">showcdpneighbors</media:title>
		</media:content>
	</item>
		<item>
		<title>vSphere Service Console Firewall Commands</title>
		<link>http://layer3.wordpress.com/2009/10/19/vsphere-service-console-firewall-commands/</link>
		<comments>http://layer3.wordpress.com/2009/10/19/vsphere-service-console-firewall-commands/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 01:59:02 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[VCP]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=637</guid>
		<description><![CDATA[In the VCP4 exam blueprint, Objective 1.3 states that you &#8220;Understand Service Console firewall operation&#8221;.
The command syntax is esxcfg-firewall -&#60;options&#62;
The service console has a small number of services predefined in the firewall.  Use the -e and -d options to enable/disable these services.
To open/close a custom port that is not predefined, use the -o or -c [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=637&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In the VCP4 exam blueprint, Objective 1.3 states that you &#8220;Understand Service Console firewall operation&#8221;.</p>
<p>The command syntax is <strong>esxcfg-firewall -&lt;options&gt;</strong></p>
<p>The service console has a small number of services predefined in the firewall.  Use the<strong> -e</strong> and <strong>-d</strong> options to enable/disable these services.<br />
To open/close a custom port that is not predefined, use the <strong>-o</strong> or <strong>-c</strong> options.</p>
<p>Start by opening an SSH session to the ESX server and entering <strong>su-</strong> to establish root.</p>
<p><strong>esxcfg-firewall -s</strong><br />
Lists the predefined services known to the VMware host.<br />
Remember &#8220;<strong>s</strong>&#8221; for services.</p>
<p>Here&#8217;s an example of the command output on an ESX3.51 U2 host showing the predefined services.<br />
<img class="alignnone size-full wp-image-638" title="esxcfg-firewall" src="http://layer3.files.wordpress.com/2009/10/esxcfg-firewall.jpg?w=646&#038;h=111" alt="esxcfg-firewall" width="646" height="111" /></p>
<p><strong>esxcfg-firewall -q</strong><br />
Queries the current firewall configuration.<br />
Shows Enabled services <em>and</em> Opened ports.<br />
Remember &#8220;<strong>q</strong>&#8221; for query.</p>
<p><strong>esxcfg-firewall -e  &lt;service name&gt;</strong><br />
Enables a predefined service.<br />
Remember &#8220;<strong>e</strong>&#8221; for enable service.</p>
<p><strong>esxcfg-firewall -d &lt;service name</strong><strong>&gt;</strong><br />
Disables a predefined service.<br />
Remember &#8220;<strong>d</strong>&#8221; for disable service.<br />
<strong><br />
esxcfg-firewall -o &lt;port, tcp|udp, in|out, name&gt;</strong><br />
Opens a port that is not already defined as a service.<br />
Remember &#8220;<strong>o</strong>&#8221; for open port.</p>
<p><strong>esxcfg-firewall -c &lt;port, tcp|udp, in|out, name&gt;</strong><br />
Closes a port that is not already defined as a service.<br />
Remember &#8220;<strong>c</strong>&#8221; for close port.</p>
<p><strong>esxcfg-firewall -r</strong><br />
Resets all firewall options to default settings.<br />
Remember &#8220;<strong>r</strong>&#8221; for reset.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/637/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=637&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/10/19/vsphere-service-console-firewall-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/esxcfg-firewall.jpg" medium="image">
			<media:title type="html">esxcfg-firewall</media:title>
		</media:content>
	</item>
		<item>
		<title>VMware VCP4 Passed</title>
		<link>http://layer3.wordpress.com/2009/10/18/vmware-vcp4-passed/</link>
		<comments>http://layer3.wordpress.com/2009/10/18/vmware-vcp4-passed/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 15:42:15 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[VCP]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=630</guid>
		<description><![CDATA[
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=630&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignnone size-full wp-image-631" title="vcp4pass" src="http://layer3.files.wordpress.com/2009/10/vcp4pass.jpg?w=820&#038;h=77" alt="vcp4pass" width="820" height="77" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/630/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=630&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/10/18/vmware-vcp4-passed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/vcp4pass.jpg" medium="image">
			<media:title type="html">vcp4pass</media:title>
		</media:content>
	</item>
		<item>
		<title>Detecting DHCP DOS Attacks</title>
		<link>http://layer3.wordpress.com/2009/10/17/lan-switch-security-%e2%80%93-detecting-dhcp-dos-attacks/</link>
		<comments>http://layer3.wordpress.com/2009/10/17/lan-switch-security-%e2%80%93-detecting-dhcp-dos-attacks/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 18:55:30 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=574</guid>
		<description><![CDATA[Exploiting DHCP vulnerabilities is likely to be within the skills of the novice troublemaker on your LAN.  A scope exhaustion attack is surprisingly simple to execute and potentially difficult to detect and isolate.  Fortunately, preventing one is fairly straightforward if you have switches in your network with the right features.  This post primarily covers symptoms [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=574&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Exploiting DHCP vulnerabilities is likely to be within the skills of the novice troublemaker on your LAN.  A scope exhaustion attack is surprisingly simple to execute and potentially difficult to detect and isolate.  Fortunately, preventing one is fairly straightforward if you have switches in your network with the right features.  This post primarily covers symptoms and detection, a later post will discuss prevention.</p>
<p>Let me preface the rest of this post by saying that I’m conducting these experiments in an isolated lab environment.<br />
<strong>Do not test exploits on a production network.</strong></p>
<p><span style="text-decoration:underline;"><strong>Lab Setup</strong></span><br />
My test environment consists of three virtual machines, Ubuntu (the attacker), a Windows 2003 server running DHCP (the target) and an Xp VM running Wireshark (the observer).</p>
<p>I’ve set up two vSwitches, each with it’s own uplink port (vmnic2 &amp; vmnic3).  Both uplinks are connected to a Cisco Catalyst 3560.  VSwitch2 has two port groups, the Lab Target-Promiscuous port group is set to promiscuous mode to allow packets on vSwitch2 to be captured by Wireshark running on the Xp VM.</p>
<p><img class="alignnone size-full wp-image-549" title="labsetup1" src="http://layer3.files.wordpress.com/2009/10/labsetup12.jpg?w=483&#038;h=320" alt="labsetup1" width="483" height="320" /></p>
<p><span style="text-decoration:underline;"><strong>Running the Exploit</strong></span><br />
I’m using Yersinia on the Ubuntu VM to launch the DHCP attack against the Windows 2003 server.</p>
<p>Yersinia is capable of generating DHCPDISCOVER requests at a rapid rate and can quickly exhaust a DHCP scope.</p>
<p><a href="http://layer3.files.wordpress.com/2009/10/yersinia.jpg" target="_blank"><img class="alignnone size-full wp-image-567" title="yersinia" src="http://layer3.files.wordpress.com/2009/10/yersinia.jpg?w=704&#038;h=444" alt="yersinia" width="704" height="444" /></a></p>
<p>Wireshark provides a better look into just how many DHCPDISCOVER messages are being generated Yersinia, each from a different spoofed MAC addresses.</p>
<p>The DHCP server returns a DHCPOFFER until all of the available addresses in the scope are exhausted.</p>
<p><a href="http://layer3.files.wordpress.com/2009/10/dhcpcap1.jpg" target="_blank"><img class="alignnone size-full wp-image-589" title="dhcpcap1" src="http://layer3.files.wordpress.com/2009/10/dhcpcap1.jpg?w=717&#038;h=391" alt="dhcpcap1" width="717" height="391" /></a></p>
<p><span style="text-decoration:underline;"><strong>Forensics</strong></span><br />
Windows DHCP allocates an address from the appropriate pool when a DHCPDISCOVER message is received.</p>
<p>In the DHCP console, note how none of the addresses are displayed in the Address Leases pane.  A check of the scope statistics reveals that something is a miss.  Take special note of these stats:<br />
<strong>Discovers</strong> – 69523<br />
<strong>Offers</strong> – 100 (offers will be made until the available addresses in the scope are exhausted)<br />
<strong>In Use</strong> – 100% (the DHCP scope is exhausted)</p>
<p><a href="http://layer3.files.wordpress.com/2009/10/dhcpmmc11.jpg" target="_blank"><img class="alignnone size-full wp-image-575" title="dhcpmmc1" src="http://layer3.files.wordpress.com/2009/10/dhcpmmc11.jpg?w=717&#038;h=410" alt="dhcpmmc1" width="717" height="410" /></a></p>
<p>Clicking Refresh will update the stats.  If the attack is still occurring, the Discovers counter will increment significantly with each refresh.</p>
<p>When the scope is exhausted, two entries will be made in the System Event Log, <strong>Event ID 1063</strong> and <strong>1020</strong>, both stating that the scope is full and no addresses are available.</p>
<p>Restarting the DHCP server service releases the addresses and returns them to the pool.  Otherwise, DHCP will return the addresses to the pool after ten minutes.  If the attack is no longer running, everything will appear normal.</p>
<p><span style="text-decoration:underline;"><strong>Detection</strong></span><br />
One possible detection method would be to use Perf Mon to monitor DHCP Discovers/sec.  An alert could be automatically generated if the counter was over a certain threshold.  Yersinia generated over 6000 DHCP Discovers/sec on a 100Mbps link in this test.   On most networks, a high rate of DHCPDISCOVER requests would be considered abnormal.  Below is the Perfmon trace from the DHCP server while the attack was running.</p>
<p><a href="http://layer3.files.wordpress.com/2009/10/perfmon.jpg" target="_blank"><img class="alignnone size-full wp-image-554" title="perfmon" src="http://layer3.files.wordpress.com/2009/10/perfmon.jpg?w=638&#038;h=449" alt="perfmon" width="638" height="449" /></a></p>
<p>Since Yersinia is capable of spoofing the MAC of each DHCPDISCOVER request, locating the attacker on your network can be a challenge.  If you have managed switches the process is a little easier.  If not, then the threat of this type of attack is a good justification to consider adding managed switches with decent security features to your infrastructure.</p>
<p>Viewing the MAC Address table on the 3560 reveals that the switch has essentially been turned into a hub.  It took Yersinia about ten seconds to fill the MAC table with bogus entries.</p>
<p><img class="alignnone size-full wp-image-616" title="3650sho1" src="http://layer3.files.wordpress.com/2009/10/3650sho12.jpg?w=353&#038;h=197" alt="3650sho1" width="353" height="197" /></p>
<p>We&#8217;ll need to look at the interface statistics to isolate the port that the attacker is using.  Granted, only two ports on the switch are active, but even on a busier network Fa0/7 would be suspect based on RXBS.  Note these stats are based on a 5 minute average.</p>
<p><img class="alignnone size-full wp-image-612" title="3650sho2" src="http://layer3.files.wordpress.com/2009/10/3650sho2.jpg?w=621&#038;h=392" alt="3650sho2" width="621" height="392" /></p>
<p>If only it were that easy.  Any good hacker would be unlikely to keep the exploit running for long.  Considering that it took Yersinia about three seconds to deplete a scope of 100 IP addresses, it&#8217;s unlikely that amount of traffic would stand out from the background noise on the LAN.  We need a way to monitor a sudden increase in MAC address entries on a port.  I&#8217;ll cover that along with port security and DHCP-Snooping in a later post.</p>
<p>If you find this topic interesting, consider picking up the book<em> LAN Switch Security: What Hackers Know About Your Switches</em>. (Cisco Press<strong> &#8211; </strong>ISBN 1587052563)</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/574/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/574/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/574/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/574/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/574/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/574/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=574&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/10/17/lan-switch-security-%e2%80%93-detecting-dhcp-dos-attacks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/labsetup12.jpg" medium="image">
			<media:title type="html">labsetup1</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/yersinia.jpg" medium="image">
			<media:title type="html">yersinia</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/dhcpcap1.jpg" medium="image">
			<media:title type="html">dhcpcap1</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/dhcpmmc11.jpg" medium="image">
			<media:title type="html">dhcpmmc1</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/perfmon.jpg" medium="image">
			<media:title type="html">perfmon</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/3650sho12.jpg" medium="image">
			<media:title type="html">3650sho1</media:title>
		</media:content>

		<media:content url="http://layer3.files.wordpress.com/2009/10/3650sho2.jpg" medium="image">
			<media:title type="html">3650sho2</media:title>
		</media:content>
	</item>
		<item>
		<title>VCP4 Exam Update</title>
		<link>http://layer3.wordpress.com/2009/10/07/vcp4-exam-update/</link>
		<comments>http://layer3.wordpress.com/2009/10/07/vcp4-exam-update/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 04:55:53 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[VCP]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=534</guid>
		<description><![CDATA[I&#8217;ve received a couple of emails from folks wanting to know how I did on the VCP exam.  Regretfully, I have to report that I failed my first attempt, missing a passing score by 32 points.
In hindsight I&#8217;m not really surprised I didn&#8217;t do well as I really didn&#8217;t know what to expect and knew [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=534&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve received a couple of emails from folks wanting to know how I did on the VCP exam.  Regretfully, I have to report that I failed my first attempt, missing a passing score by 32 points.</p>
<p>In hindsight I&#8217;m not really surprised I didn&#8217;t do well as I really didn&#8217;t know what to expect and knew I was &#8220;pushing the envelope&#8221; in terms of preparation time.</p>
<p>Here are some things to consider if you are thinking about taking the exam and a couple of things  I&#8217;m doing to prepare for my second attempt.</p>
<p>1.  You can&#8217;t pass the exam by simply taking the class.  The class is good, but it does not cover the exam topics in enough depth to get you through the exam.<br />
2.  Everything you need to know is outlined in the <a href="http://mylearn.vmware.com/lcms/mL_faq/2726/VMware%20Certified%20Professional%20on%20vSphere%204%20Blueprint%208.13.09.pdf" target="_blank">exam blueprint</a>.<br />
3.  All of the info you need to study is in the <a href="http://www.vmware.com/support/pubs/vs_pages/vsp_pubs_esxi40_i_vc40.html" target="_blank">VMware documentation</a>.<br />
4.  I&#8217;m reviewing all of the free training material offered on <a href="https://www.vmware.com/accounts/partner_programs.html" target="_blank">VMware&#8217;s Partner website</a>.<br />
5.  Consider investing a couple of hours and completing the VMware Technical Sale Professional (VTSP) training.  There&#8217;s good material there that helped me fill in some of the gaps in my product knowledge.<br />
6.  Consider some supplementary study material.  I&#8217;m reading Scott Lowe&#8217;s new book &#8220;Mastering VMware vShpere 4&#8243;.  It&#8217;s not a study guide, but is full of good information on vSpheres features and configuration.<br />
7.  Know your configuration maximums but don&#8217;t spend all of your time studying them.</p>
<p>The exam is not difficult, the questions are fair and easy to understand.  I was lacking knowledge in two critical areas and it really showed in my score.</p>
<p>Even after deploying VMware solutions for the last couple years the certification process has taught me a great deal about the product.  I guess that&#8217;s the whole idea isn&#8217;t it?</p>
<p>In terms of ROI, I&#8217;ve already gone back to a few of the clients I work with and suggested some changes/enhancements to their configurations.  Having good instructors for the class and  combing through the documentation studying for the exam has opened my eyes to vSphere&#8217;s capabilities.</p>
<p>So far I&#8217;d have to say that going through the VCP certification process has had a very positive impact on my ability to consult, engineer, deploy and support vSphere.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/534/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=534&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/10/07/vcp4-exam-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>
	</item>
		<item>
		<title>VCP4 Exam Blueprint &#8211; Objective 3.2 – Configure iSCSI SAN Storage</title>
		<link>http://layer3.wordpress.com/2009/09/21/vcp4-exam-blueprint-objective-3-2-%e2%80%93-configure-iscsi-san-storage/</link>
		<comments>http://layer3.wordpress.com/2009/09/21/vcp4-exam-blueprint-objective-3-2-%e2%80%93-configure-iscsi-san-storage/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 02:50:11 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[VCP]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://layer3.wordpress.com/?p=509</guid>
		<description><![CDATA[VCP4 Exam Blueprint
Objective 3.2 – Configure iSCSI SAN Storage
Knowledge 
Page numbers refer to the VMware iSCSI SAN Configuration Guide pdf.
1.  Identify iSCSI SAN hardware components (pg. 9)
-Host Bus Adapters (HBA)
-Network Interface Cards (NIC)
-Switches
-Routers
-Cables
-Storage Processors (SP)
-Storage Disk Subsystems
2.  Determine use cases for hardware vs. software iSCSI initiators
-Hardware Initiator &#8211; specialized iSCSI HBA, responsible for all iSCSI [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=509&subd=layer3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://mylearn.vmware.com/lcms/mL_faq/2726/VMware%20Certified%20Professional%20on%20vSphere%204%20Blueprint%208.13.09.pdf" target="_blank"><strong>VCP4 Exam Blueprint</strong></a></p>
<p><strong>Objective 3.2 – Configure iSCSI SAN Storage</strong></p>
<p><strong>Knowledge </strong></p>
<p>Page numbers refer to the <a href="http://www.vmware.com/pdf/vsphere4/r40/vsp_40_iscsi_san_cfg.pdf" target="_blank"><em><strong>VMware iSCSI SAN Configuration Guide</strong></em></a> pdf.</p>
<p><strong>1.  Identify iSCSI SAN hardware components (pg. 9)</strong><br />
-Host Bus Adapters (HBA)<br />
-Network Interface Cards (NIC)<br />
-Switches<br />
-Routers<br />
-Cables<br />
-Storage Processors (SP)<br />
-Storage Disk Subsystems</p>
<p><strong>2.  Determine use cases for hardware vs. software iSCSI initiators</strong><br />
-Hardware Initiator &#8211; specialized iSCSI HBA, responsible for all iSCSI and network processing and management<br />
-Hardware initiators provide better performance and throughput by offloading iSCSI and TCP processing overhead.</p>
<p>-Software Initiator &#8211; Code built into the VMkernel that allows host to connect to the storage device through a std Ethernet adapter.<br />
-Software initiators provide adequate performance for most applications, are less complex and easier to implement.</p>
<p><strong>3.  Configure the iSCSI Software Initiator (pg. 30)</strong><br />
-Configure a VMkernel port for the physical network adapter.<br />
-Enable the software iSCSI initiator<br />
-Activate multi-pathing using the port binding technique on the ESX host if you use multiple network adapters<br />
-Enable jumbo frames if needed and supported.  Jumbo frames must be enabled for each vSwitch via the CLI.<br />
<span style="color:#ff0000;">vicfg-vswitch -m &lt;MTU&gt; &lt;vSwitch&gt;</span><br />
-For jumbo frames, you must create a VMkernel network interface enabled with jumbo frames.<br />
<span style="color:#ff0000;">esxcfg-vmknic -a -I &lt;ip address&gt; -n &lt;netmask&gt; -m &lt;MTU&gt; &lt;port group name&gt;</span></p>
<p><strong>4.  Configure Dynamic/Static Discovery (pg. 35)</strong><br />
-Dynamic Discovery (Send Targets) &#8211; the server sends a list of available targets in response to the Send Targets request.<br />
-Targets discovered via Dynamic Discovery are added to the Static Discovery tab<br />
-Static Discovery &#8211; the initiator uses a list of targets (IP addresses and target names)<br />
-Required privilege: <span style="color:#ff0000;">Host.Configuration.Storage Partition Configuration</span><br />
-<span style="color:#ff0000;">Configuration&gt;Storage Adapters&gt;Properties&gt;Dynamic Discovery&gt;Add</span><br />
-You cannot change the IP address, DNS name, or port number of an existing Send Targets server. delete the existing server and add a new one.</p>
<p><strong>5.  Configure CHAP Authentication (pg. 37)</strong><br />
-ESX/ESXi supports CHAP at the adapter level.<br />
-Software iSCSI supports per-target CHAP<br />
-For software iSCSI, the CHAP name should not exceed 511 and the CHAP secret 255 alphanumeric characters.<br />
-For hardware iSCSI, the CHAP name should not exceed 255 and the CHAP secret 100 alphanumeric characters.<br />
-Required privilege: <span style="color:#ff0000;">Host.Configuration.Storage Partition Configuration</span><br />
-<span style="color:#ff0000;">Configuration&gt;Storage Adapters&gt;Properties&gt;General Tab&gt;CHAP</span></p>
<p><strong>6.  Configure VMkernel port binding for iSCSI Software multi-pathing  (pg. 32)</strong><br />
-You must create one VMkernel port for each network adapter before you can set up multipathing<br />
-<span style="color:#ff0000;">esxcli swiscsi nic add -n &lt;port_name&gt; -d &lt;vmhba&gt;</span></p>
<p><strong>7.  Discover LUNs  (pg. 60)</strong><br />
-Perform a rescan each time you create a new LUN on the SAN<br />
-By default, the VMkernel scans for LUN 0 to LUN 255 for every target (a total of 256 LUNs).<br />
-You cannot discover LUNs with a LUN ID number that is greater than 255.<br />
-Modify the Disk.MaxLUN parameter to improve LUN discovery speed.<br />
-<span style="color:#ff0000;">Configuration&gt;Advanced Settings&gt;Disk&gt;Disk.MaxLUN</span></p>
<p><strong>8.  Identify iSCSI addressing in the context of the host (pg. 10)</strong><br />
-IP Address<br />
-iSCSI name (world wide unique name)<br />
-iSCSI alias (friendly name, not unique)</p>
<p>-IQN (iSCSI Qualified Name) format <span style="color:#ff0000;"> iqn.yyy-mm.naming-authority:unique name</span><br />
-the naming authority is listed in reverse syntax</p>
<p>-EUI (Enterprise Unique Identifiers) format  <span style="color:#ff0000;">eui.&lt;16 hex digits&gt;</span></p>
<p><strong>Tools </strong><br />
-<a href="http://www.vmware.com/pdf/vsphere4/r40/vsp_40_iscsi_san_cfg.pdf" target="_blank">iSCSI SAN Configuration Guide</a><br />
-<a href="http://www.vmware.com/support/pubs/vs_pages/vsp_pubs_esxi40_i_vc40.html" target="_blank">Product Documentation</a><br />
-VMware vSphere Client<br />
-esxcli</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/layer3.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/layer3.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/layer3.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/layer3.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/layer3.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/layer3.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/layer3.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/layer3.wordpress.com/509/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/layer3.wordpress.com/509/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/layer3.wordpress.com/509/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=layer3.wordpress.com&blog=5758376&post=509&subd=layer3&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://layer3.wordpress.com/2009/09/21/vcp4-exam-blueprint-objective-3-2-%e2%80%93-configure-iscsi-san-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb044fc1b69982eec1cc90d7067b7882?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chris</media:title>
		</media:content>
	</item>
	</channel>
</rss>