<?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>thinking sysadmin &#187; cisco</title>
	<atom:link href="http://andyleonard.com/tag/cisco/feed/" rel="self" type="application/rss+xml" />
	<link>http://andyleonard.com</link>
	<description>qstat -u aleonard -s z</description>
	<lastBuildDate>Sun, 22 Jan 2012 03:46:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Put Down the Saw and Get the Glue: Working Around VMware KB1022751</title>
		<link>http://andyleonard.com/2010/09/23/put-down-the-saw-and-get-the-glue-working-around-vmware-kb1022751/</link>
		<comments>http://andyleonard.com/2010/09/23/put-down-the-saw-and-get-the-glue-working-around-vmware-kb1022751/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 22:18:53 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[virtualization]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[etherchannel]]></category>
		<category><![CDATA[link aggregation]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=519</guid>
		<description><![CDATA[VMware KB article 1022751 lays out the details of an interesting bug in ESXi 4.0 and 4.1 pretty plainly: When trying to team NICs using EtherChannel, the network connectivity is disrupted on an ESXi host. This issue occurs because NIC teaming properties do not propagate to the Management Network portgroup in ESXi. When you configure [...]]]></description>
			<content:encoded><![CDATA[<p>VMware KB article <a href="http://kb.vmware.com/kb/1022751">1022751</a> lays out the details of an interesting bug in ESXi 4.0 and 4.1 pretty plainly:</p>
<blockquote><p>When trying to team NICs using EtherChannel, the network connectivity is disrupted on an ESXi host. This issue occurs because NIC teaming properties do not propagate to the Management Network portgroup in ESXi.  When you configure the ESXi host for NIC teaming by setting the Load Balancing to Route based on ip hash, this configuration is not propagated to Management Network portgroup.</p></blockquote>
<p>(Note that load balancing by IP hash is the <a href="http://kb.vmware.com/kb/1004048">only supported option</a> for EtherChannel link aggregation.)</p>
<p>Unfortunately, the KB article&#8217;s workaround &#8211; there is no patch that I&#8217;m aware of &#8211; requires network connectivity to the host via the vSphere Client.  But what do you do if you&#8217;ve just sawed off the branch you&#8217;re sitting on network-wise, and can no longer connect with the vSphere client?<br />
<span id="more-519"></span><br />
Enable Local Tech Support Mode on the ESXi host, log in as root and run the following command:</p>
<pre class="brush: plain; title: ; notranslate">
vim-cmd hostsvc/net/portgroup_set --nicteaming-policy=loadbalance_ip vSwitch0 &quot;Management Network&quot;
</pre>
<p>(Replace &#8220;vSwitch0&#8243; and &#8220;Management Network&#8221; with the appropriate vSwitch and portgroup as necessary.)</p>
<p>You may also find that while both NICs are active for the vSwitch, one will be in &#8220;standby&#8221; for the portgroup &#8211; a configuration not supported for IP hash load balancing.  It would be reasonable to think that you could fix this with the following, but you can&#8217;t (see error on lines 2-8):</p>
<pre class="brush: plain; title: ; notranslate">
~ # vim-cmd hostsvc/net/portgroup_set --nicorderpolicy-active=vmnic0,vmnic1 vSwitch0 &quot;Management Network&quot;
(vmodl.fault.InvalidArgument) {
   dynamicType = &lt;unset&gt;,
   faultCause = (vmodl.MethodFault) null,
   invalidProperty = &lt;unset&gt;,
   msg = &quot;A specified parameter was not correct.
&quot;,
}
</pre>
<p>VMware appears to have known about this bug for a while now &#8211; try searching the VMware Communities for some workarounds dating back to the 3.x days, including some from VMware employees &#8211; so resolving it is presumably either extremely difficult or not currently a high priority.  However, you will likely be able reach the ESXi host using the vSphere Client after fixing the portgroup NIC teaming policy, so you can fix this issue in the GUI.</p>
<p>If you find yourself attempting to automate an ESXi install with Kickstart and don&#8217;t want to make fixing the portgroup through the vSphere Client part of your install process, consider not using EtherChannel at all for the Management Network &#8211; just use active and standby NICs, perhaps in a configuration similar to Kendrick Coleman&#8217;s <a href="http://kendrickcoleman.com/index.php?/Tech-Blog/esxi-41-kickstart-install-wip.html">ESXi 4.1 Kickstart Install</a> blog post.</p>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2010/09/23/put-down-the-saw-and-get-the-glue-working-around-vmware-kb1022751/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thought you fixed that DNS spoofing bug?  You might need to think again.</title>
		<link>http://andyleonard.com/2008/07/27/thought-you-fixed-that-dns-spoofing-bug-you-might-need-to-think-again/</link>
		<comments>http://andyleonard.com/2008/07/27/thought-you-fixed-that-dns-spoofing-bug-you-might-need-to-think-again/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 15:14:21 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[spoofing]]></category>

		<guid isPermaLink="false">http://andyleonard.com/?p=55</guid>
		<description><![CDATA[So you thought you fixed the DNS spoofing vulnerability that was all over the news this month? You applied the patches and moved on to the other fifty-seven things crowded on your to-do list, thinking that you were safe? If your resolvers are behind a NAT, you might want to think again, smart guy. In [...]]]></description>
			<content:encoded><![CDATA[<p>So you thought you fixed the <a href="http://www.doxpara.com/?p=1185">DNS spoofing vulnerability</a> that was all over the news this month?  You applied the patches and moved on to the other fifty-seven things crowded on your to-do list, thinking that you were safe?  If your resolvers are behind a NAT, you might want to <a href="http://blogs.iss.net/archive/dnsnat.html">think again</a>, smart guy.<br />
<span id="more-55"></span><br />
In a nutshell, your handy-dandy NAT box is quite possibly making your resolver&#8217;s now-random UDP source ports sequential, making you vulnerable again.  The only &#8220;vendors&#8221; I&#8217;m aware of that don&#8217;t have this issue are Linux&#8217;s IPTables and OpenBSD&#8217;s PF (also available on FreeBSD, of course) &#8211; funny that, since those guys aren&#8217;t really vendors at all.  I could be just ignorant or looking in the wrong place, but this doesn&#8217;t even seem to be on <a href="http://www.cisco.com/web/about/security/intelligence/dns-bcp.html">Cisco&#8217;s radar</a> right now, for example.</p>
<p>The tester in the sidebar at <a href="http://www.doxpara.com/">DoxPara Research</a> seems to do a good job of testing your configuration end-to-end for this vulnerability.</p>
<p>(File this under &#8220;Just another reason why NAT is evil.&#8221;)</p>
]]></content:encoded>
			<wfw:commentRss>http://andyleonard.com/2008/07/27/thought-you-fixed-that-dns-spoofing-bug-you-might-need-to-think-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

