<?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>Confused Amused &#187; Windows Server 2008 R2</title>
	<atom:link href="http://www.confusedamused.com/categories/microsoft/windows-server-2008-r2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.confusedamused.com</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 02:58:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Source IP Address Preference with Multiple IPs on a NIC</title>
		<link>http://www.confusedamused.com/notebook/source-ip-address-preference-with-multiple-ips-on-a-nic/</link>
		<comments>http://www.confusedamused.com/notebook/source-ip-address-preference-with-multiple-ips-on-a-nic/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 01:47:31 +0000</pubDate>
		<dc:creator>Tom Pacyk</dc:creator>
				<category><![CDATA[Exchange Server 2010]]></category>
		<category><![CDATA[Lync Server 2010]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[hotfix]]></category>
		<category><![CDATA[netsh]]></category>
		<category><![CDATA[R2]]></category>
		<category><![CDATA[sp2]]></category>

		<guid isPermaLink="false">http://www.confusedamused.com/?p=1006</guid>
		<description><![CDATA[Something I&#8217;m finding myself doing more and more lately is using multiple IP addresses on a single NIC for a Windows server. The reasons vary, but it&#8217;s generally in order to support a single server running 2 different services on the same port. This can happen for Lync with your Edge servers (or for skirting [...]]]></description>
			<content:encoded><![CDATA[<p>Something I&#8217;m finding myself doing more and more lately is using multiple IP addresses on a single NIC for a Windows server. The reasons vary, but it&#8217;s generally in order to support a single server running 2 different services on the same port. This can happen for Lync with your Edge servers (or for <a href="http://ucken.blogspot.com/2011/01/lync-external-web-services-without.html">skirting the reverse proxy requirement on Front-Ends</a>), or with Exchange when creating multiple receive connectors on a server.</p>

<p>A behavior that changed with the introduction of Server 2008 is that the source IP address on a NIC will always be the lowest numerical IP. So that whole idea of your primary IP being the first one you put on the NIC &#8211; throw that idea out the window.</p>

<p>For example, let&#8217;s say we build a new Exchange server and configure the NIC with IP 10.0.0.100. This IP is registered in DNS and the server uses this IP as the source when communicating with other servers. Our fantastic network administrator has also created a NAT rule on the firewall to map this IP to a particular public IP for outbound SMTP so that our PTR lookups match up.</p>

<p>But now we want to add another IP for a custom receive connector and the network admin hands you a free IP which happens to be 10.0.0.50. You add this as an additional IP on the NIC and voila &#8211; you have a couple issues:</p>

<ul>
<li>You just registered two names for the same server in DNS if dynamic registration is enabled.</li>
<li>Your server is now sending all outbound traffic from 10.0.0.50! (because 50 is lower than 100)</li>
</ul>

<p>One of these is easily solved &#8211; just turn off dynamic registration and manually create the DNS records for the server. The other one is a little trickier because Server 2008 and 2008 R2 will still be sending traffic as the 10.0.0.50 IP. In the case of Exchange, this could create some ugliness for outgoing SMTP because now your firewall is not NATing to the correct public IP and you start bouncing mail due to PTR lookup failures.</p>

<p>Fortunately, we have a way to tell Windows not to use the lower numbered IP as a source address by adding the IP via the netsh.exe command. For Server 2008 SP2 and 2008 R2 RTM we need to apply a hotfix first. 2008 R2 SP1 included this fix by default so it is no longer required. Without the hotfix or SP1 you&#8217;ll find netsh.exe does not display or recognize the special flag.</p>

<p>Hotfix Downloads:</p>

<p><ul>
<li>2008 SP2: <a href="http://support.microsoft.com/kb/975808">http://support.microsoft.com/kb/975808</a>
<li>2008 R2 RTM: <a href="http://support.microsoft.com/kb/2386184/">http://support.microsoft.com/kb/2386184/</a></li>
</ul></p>

<p>The key to this is the IP address must be added via netsh.exe with a particular flag. So if you&#8217;ve already added the IP address via the GUI you&#8217;ll need to remove it first. After that, use this command to add the secondary IP:</p>

<p><pre><code>netsh int ipv4 add address "Local Area Connection" 1.2.3.4/24 SkipAsSource=true</code></pre></p>

<p>The SkipAsSource flag does two things &#8211; first, it instructs Windows not to use this IP as a source IP for outgoing traffic. And secondly, it prevents the registration of this IP in DNS if dynamic registration is enabled. Two birds with one stone!</p>

<p>You can always view the status of the IPs and their SkipAsSource status with the following command:</p>

<p><pre><code>netsh int ipv4 show ipaddresses level=verbose</code></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.confusedamused.com/notebook/source-ip-address-preference-with-multiple-ips-on-a-nic/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Broadcom NIC Teaming and Hyper-V on Server 2008 R2</title>
		<link>http://www.confusedamused.com/notebook/broadcom-nic-teaming-and-hyper-v-on-server-2008-r2/</link>
		<comments>http://www.confusedamused.com/notebook/broadcom-nic-teaming-and-hyper-v-on-server-2008-r2/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 21:54:32 +0000</pubDate>
		<dc:creator>Tom Pacyk</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[broadcom]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[nic]]></category>
		<category><![CDATA[teaming]]></category>
		<category><![CDATA[toe]]></category>

		<guid isPermaLink="false">http://www.confusedamused.com/?p=712</guid>
		<description><![CDATA[The short of this is if you’re trying to use NIC teaming for the virtual adapter on Server 2008 R2 save yourself the headache, pony up a few extra dollars and buy Intel NICs.&#160; The Broadcoms have a bug in the driver that prevents&#160; this from working correctly on Server 2008 R2 Hyper-V when using [...]]]></description>
			<content:encoded><![CDATA[<p><p>The short of this is if you’re trying to use NIC teaming for the virtual adapter on Server 2008 R2 save yourself the headache, pony up a few extra dollars and buy Intel NICs.&#160; The Broadcoms have a bug in the driver that prevents&#160; this from working correctly on Server 2008 R2 Hyper-V when using a team for the Hyper-V virtual switch. Per the Broadcom driver release notes this is supposed to be a supported configured now, but it does not work correctly. There are two scenarios so far where I’ve been able to reproduce the problem:</p>  <ul> <li>VM guest has a static MAC assigned and is running on a VM host. Shut down the VM, assign it a dynamic MAC and start it again on the same host. You’ll find it has no network connectivity.</p> <li>VM guest is running on VM Host A with a dynamic MAC. Live Migrate the VM guest to Host B. It has network connectivity at this point, but if you restart the VM on the opposite host you’ll find it receives a new MAC and no longer has network connectivity.</li> </ul>  <p>Take a look at this diagram (only showing NICs relevant to Hyper-V) and you’ll see what the setup is that causes the issue. We have 2 Broadcom NICs on Dell R710’s each connected to a different physical switch to protect against a port, NIC, or switch failure. They are teamed in an Active/Passive configuration. No load balancing or link aggregation going on here. The virtual adapter composed of the two team members is then passed through as a virtual switch to Hyper-V and it is not shared with the host operating system. The host itself has a team for its own management and for the Live Migration network, which I’ll point both work flawlessly &#8211; the issue here is purely related to Broadcom’s teaming through a Hyper-V virtual switch.</p>  <p><a href="http://www.confusedamused.com/wp-content/pictures/2010/02/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.confusedamused.com/wp-content/pictures/2010/02/image_thumb.png" width="350" height="362" /></a> </p>  <p>Say I have a VM running on Host A where the NIC team has a hypothetical MAC called MAC A. When it boots up, it receives a dynamic MAC address we&#8217;ll call MAC C from Host A’s pool. If you try to ping the VM guest’s IP 1.1.1.1 and then look at your ARP table you’ll see something like:</p> <table border="0" cellspacing="0" cellpadding="2" width="400"><tbody>     <tr>       <td valign="top" width="133">Internet Address </td>        <td valign="top" width="133">Physical Address</td>        <td valign="top" width="133">Type</td>     </tr>      <tr>       <td valign="top" width="133">1.1.1.1</td>        <td valign="top" width="133">MAC A</td>        <td valign="top" width="133">Dynamic</td>     </tr>   </tbody></table> <br />  <p>This is because the NIC team is responsible for answering requests on behalf of the VM. When the NIC team receives traffic for the VM’s IP it will accept it, and then pass it along to the Hyper-V virtual switch. If you were to take a packet trace off the NIC you’ll see the team has modified the Layer 2 destination address to be MAC C, the dynamic MAC the VM got when it booted. This is how the teaming is supposed to work.</p>  <p>Now say I migrate the VM to Host B (where the NIC team has a MAC called MAC B) via Live or Quick migration. The VM retains connectivity and if you take a look at your MAC table you’ll now see something like:</p> <table border="0" cellspacing="0" cellpadding="2" width="401"><tbody>     <tr>       <td valign="top" width="133">Internet Address </td>        <td valign="top" width="133">Physical Address</td>        <td valign="top" width="133">Type</td>     </tr>      <tr>       <td valign="top" width="133">1.1.1.1</td>        <td valign="top" width="133">MAC B</td>        <td valign="top" width="133">Dynamic</td>     </tr>   </tbody></table> <br />  <p>Yup, the MAC for Host B’s NIC team is now answering requests for the VM’s IP. Again, this is how the teaming is supposed to work. Everything is peachy and you might think your clustering is working out great, until you restart the VM.</p>  <p><a href="http://www.confusedamused.com/wp-content/pictures/2010/02/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.confusedamused.com/wp-content/pictures/2010/02/image_thumb1.png" width="500" height="157" /></a> </p>  <p>When the VM restarts, upon booting it receives a new dynamic MAC from Host B’s pool and you’ll find it has no network connectivity. Your ARP table hasn’t changed (it shouldn’t, the same team is still responsible for the VM), but the guest has been effectively dropped. When I pulled out a packet trace what I noticed was the team was still receiving traffic for the VM’s IP, which ruled out a switching problem, but it was still modifying the packets and sending them to MAC C. When in fact, now the VM has restarted it has MAC D. The problem is that it seems somebody (the driver) forgot to notice the VM has a new MAC and is sending packets to the wrong destination, so the VM never receives any traffic.</p>  <p><a href="http://www.confusedamused.com/wp-content/pictures/2010/02/image2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.confusedamused.com/wp-content/pictures/2010/02/image_thumb2.png" width="500" height="157" /></a> </p>  <p>I found that toggling the NIC team within the host actually fixes the problem. If you simply disable the virtual team adapter and then re-enable it the VM will instantly get its connectivity back so it seems that during the startup process the team reads the VM MACs it’s supposed to service. I would think this is something it should be doing constantly to prevent this exact issue, but for now it looks like it’s done only at initialization.</p>  <p>The most practical workaround I’ve found so far is to just set static MAC addresses on the VMs within the Hyper-V settings. If the VM’s MAC never changes, this problem simply doesn’t exist. So while that defeats the purpose of the dynamic MAC pool on a Hyper-V host it allows the teaming failover to operate properly while you restart VMs and move them between cluster nodes.</p>  <p>I’ve raised the issue with Dell/Broadcom and they agree it’s a driver problem. There is supposedly a driver update due mid-March, but no guarantees this will be addressed in that update. The next update isn’t slated until June which is a long time to wait, hence the recommendation to just use Intel NICs.</p>  <p>Other notes for the inquisitive:</p>  <ul>   <li>Disabling the team and using only a single adapter makes this work properly.</li>    <li>Happens with or without all TOE, checksum and RSS features.</li>    <li>No VLAN tagging in use. </li>    <li>Issue persists when team members are plugged into the same switch.</li>    <li>Latest drivers from Dell/Broadcom (12/15/2009) as of this writing.</li>    <li>Happens whether teaming is configured before or after Hyper-V role is installed.</li> </ul></p>
]]></content:encoded>
			<wfw:commentRss>http://www.confusedamused.com/notebook/broadcom-nic-teaming-and-hyper-v-on-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

