<?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>Luka Manojlovic</title>
	<atom:link href="http://luka.manojlovic.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://luka.manojlovic.net</link>
	<description>Luka&#039;s technical blog</description>
	<lastBuildDate>Wed, 13 Feb 2013 10:52:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>NVGRE network virtualization on Hyper-V 3.0</title>
		<link>http://luka.manojlovic.net/2013/02/13/nvgre-network-virtualization-on-hyper-v-3-0/</link>
		<comments>http://luka.manojlovic.net/2013/02/13/nvgre-network-virtualization-on-hyper-v-3-0/#comments</comments>
		<pubDate>Wed, 13 Feb 2013 10:50:58 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Hyper-V]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=483</guid>
		<description><![CDATA[For all those who are interested in NVGRE network virtualization that come with Hyper-V 3.0 I suggest to take a look at articles: http://blog.ioshints.info/2012/12/hyper-v-network-virtualization-wnvnvgre.html http://blog.ioshints.info/2011/09/nvgre-because-one-standard-just-wouldnt.html And there are alot of questions about NVGRE gateway here is one vendor that is working on it: http://www.nappliance.com/ http://www.nappliance.com/windowsserver2012]]></description>
				<content:encoded><![CDATA[<p>For all those who are interested in NVGRE network virtualization that come with Hyper-V 3.0 I suggest to take a look at articles:</p>
<p><a href="http://blog.ioshints.info/2012/12/hyper-v-network-virtualization-wnvnvgre.html">http://blog.ioshints.info/2012/12/hyper-v-network-virtualization-wnvnvgre.html</a></p>
<p><a href="http://blog.ioshints.info/2011/09/nvgre-because-one-standard-just-wouldnt.html">http://blog.ioshints.info/2011/09/nvgre-because-one-standard-just-wouldnt.html</a></p>
<p>And there are alot of questions about NVGRE gateway here is one vendor that is working on it:</p>
<p><a href="http://www.nappliance.com/">http://www.nappliance.com/</a></p>
<p><a href="http://www.nappliance.com/windowsserver2012">http://www.nappliance.com/windowsserver2012</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2013/02/13/nvgre-network-virtualization-on-hyper-v-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“Demystifying” &#8211; Windows server 2012 Hyper-V 3.0 network virtualization – part III – (two hosts / two subnets)</title>
		<link>http://luka.manojlovic.net/2012/10/26/demystifying-windows-server-2012-hyper-v-3-0-network-virtualization-part-iii-video-tutorial/</link>
		<comments>http://luka.manojlovic.net/2012/10/26/demystifying-windows-server-2012-hyper-v-3-0-network-virtualization-part-iii-video-tutorial/#comments</comments>
		<pubDate>Fri, 26 Oct 2012 16:39:26 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Video tutorials]]></category>
		<category><![CDATA[Windows server 2012]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=457</guid>
		<description><![CDATA[In this part III I would like to show you how network virtualization works between two Hyper-V hosts in different subnet (in my example connected HV01 &#8211; Router (IPSec VPN) &#8211; WAN &#8211; WAN &#8211; Router (IPsec VPN) &#8211; HV02). You can see how to do that by clicking on a link to video tutorial: [...]]]></description>
				<content:encoded><![CDATA[<p>In this part III I would like to show you how network virtualization works between two Hyper-V hosts in different subnet (in my example connected HV01 &#8211; Router (IPSec VPN) &#8211; WAN &#8211; WAN &#8211; Router (IPsec VPN) &#8211; HV02).</p>
<p>You can see how to do that by clicking on a link to <strong>video tutorial</strong>:<br />
<strong><a href="http://www.screencast.com/t/pRDC7Z4UKrg">http://www.screencast.com/t/pRDC7Z4UKrg</a>  – Hyper-V 3.0 – Network virtualization Part 4</strong></p>
<p>* at 1:48 &#8211; I have already copy pasted that before &#8211; you should do it on both hosts<br />
* at 2:04 &#8211; there is mistake as those parameters were already there so I removed them and resumed with video recording<br />
* at 2:43 &#8211; I did not paste the second part to HV02 (I already did that in previous demo)<br />
* at 3:59 &#8211; You will not see GRE traffic until you add Ethernet card to monitoring</p>
<p>In my environment I have two hyper-v hosts called HV01 (10.17.217.177 with gw 10.17.217.1 (router &#8211; that makes IPSec VPN)) and HV02 (10.17.218.177 with gw 10.17.218.1 (router &#8211; that makes IPSec VPN)).</p>
<p>So only Hyper-V hosts &#8220;see&#8221; each other over VPN (two different subnets).</p>
<p>I have used folowing powershell cmdlets:</p>
<p>First we need to enable ms_netwnv component on !PHYSICAL! nic &#8211; not on virtual switch NIC!<br />
Run it on <strong>HV01</strong> and <strong>HV02</strong>:</p>
<p><strong>Enable-NetAdapterBinding &#8220;Ethernet&#8221; -ComponentID ms_netwnv</strong></p>
<p>Now we create Lookup record and CustomerRoute (we use IP addresses of our virtual machines, their mac address and IP address of Hyper-V host) This is explained in my previous post.<br />
Run it on <strong>HV01</strong> and <strong>HV02:<br />
</strong><strong>New-NetVirtualizationLookupRecord -CustomerAddress &#8220;10.10.10.11&#8243; -ProviderAddress &#8220;10.17.217.177&#8243; -VirtualSubnetID &#8220;5001&#8243; -MACAddress &#8220;AAAAAAAAAA01&#8243; -Rule &#8220;TranslationMethodEncap&#8221;</strong><br />
<strong> New-NetVirtualizationLookupRecord -CustomerAddress &#8220;10.10.10.12&#8243; -ProviderAddress &#8220;10.17.218.177&#8243; -VirtualSubnetID &#8220;5001&#8243; -MACAddress &#8220;AAAAAAAAAA02&#8243; -Rule &#8220;TranslationMethodEncap&#8221;</strong><br />
<strong> New-NetVirtualizationCustomerRoute -RoutingDomainID &#8220;{11111111-2222-3333-4444-000000000000}&#8221; -VirtualSubnetID &#8220;5001&#8243; -DestinationPrefix &#8220;10.10.10.0/24&#8243; -NextHop &#8220;0.0.0.0&#8243; -Metric 255</strong></p>
<p>Now only on <strong>HV01</strong> you should configure provider address and provider route (this is how hosts will get connectivity to each other&#8230;):<strong><br />
New-NetVirtualizationProviderAddress -InterfaceIndex 12 -ProviderAddress &#8220;10.17.217.177&#8243; -PrefixLength 24</strong><br />
<strong> New-NetVirtualizationProviderRoute -InterfaceIndex 12 -DestinationPrefix &#8220;0.0.0.0/0&#8243; -NextHop &#8220;10.17.217.1&#8243;</strong></p>
<p>The same thing on <strong>HV02:</strong><br />
<strong>New-NetVirtualizationProviderAddress -InterfaceIndex 12 -ProviderAddress &#8220;10.17.218.177&#8243; -PrefixLength 24</strong><br />
<strong> New-NetVirtualizationProviderRoute -InterfaceIndex 12 -DestinationPrefix &#8220;0.0.0.0/0&#8243; -NextHop &#8220;10.17.218.1&#8243;</strong></p>
<p>At the end we need to add VirtualSubnetID parameter to our VM&#8217;s sitting on HV01 and on HV02</p>
<p><strong>HV01</strong> (Where Blue01 VM sits):<br />
<strong>Get-VMNetworkAdapter -VMName Blue01 | where {$_.MacAddress -eq &#8220;AAAAAAAAAA01&#8243;} | Set-VMNetworkAdapter -VirtualSubnetID 5001</strong></p>
<p><strong>HV02</strong> (Where Blue02 VN sits):<br />
<strong>Get-VMNetworkAdapter -VMName Blue02 | where {$_.MacAddress -eq &#8220;AAAAAAAAAA02&#8243;} | Set-VMNetworkAdapter -VirtualSubnetID 5001</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2012/10/26/demystifying-windows-server-2012-hyper-v-3-0-network-virtualization-part-iii-video-tutorial/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>“Demystifying” Windows server 2012 Hyper-V 3.0 network virtualization – part II (two hosts / same subnet)</title>
		<link>http://luka.manojlovic.net/2012/10/23/demystifying-windows-server-2012-hyper-v-3-0-network-virtualization-part-ii-video/</link>
		<comments>http://luka.manojlovic.net/2012/10/23/demystifying-windows-server-2012-hyper-v-3-0-network-virtualization-part-ii-video/#comments</comments>
		<pubDate>Tue, 23 Oct 2012 12:50:22 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Video tutorials]]></category>
		<category><![CDATA[Windows server 2012]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[hyper-v 3.0]]></category>
		<category><![CDATA[ip rewrite]]></category>
		<category><![CDATA[network virtualization]]></category>
		<category><![CDATA[nvgre]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=451</guid>
		<description><![CDATA[Today I was presenting @ bleedingedge.si conference&#8230; My session was about Windows server 2012 / Hyper-V 3.0 network virtualization. &#160; I have recorded this sequence of commands so you can see the configuration and how it works: http://www.screencast.com/t/wsDAKpKumlSm &#8211; Hyper-V 3.0 &#8211; Network virtualization Part 1 http://www.screencast.com/t/q3G9SViY6gId &#8211; Hyper-V 3.0 &#8211; Network virtualization Part 2 http://www.screencast.com/t/bxOznDklp [...]]]></description>
				<content:encoded><![CDATA[<p>Today I was presenting @ <a href="bleedingedge.si" target="_blank">bleedingedge.si</a> conference&#8230; My session was about Windows server 2012 / Hyper-V 3.0 network virtualization.</p>
<p>&nbsp;</p>
<p>I have recorded this sequence of commands so you can see the configuration and how it works:</p>
<p><a href="http://www.screencast.com/t/wsDAKpKumlSm">http://www.screencast.com/t/wsDAKpKumlSm</a> &#8211; Hyper-V 3.0 &#8211; Network virtualization Part 1</p>
<p><a href="http://www.screencast.com/t/q3G9SViY6gId">http://www.screencast.com/t/q3G9SViY6gId</a> &#8211; Hyper-V 3.0 &#8211; Network virtualization Part 2</p>
<p><a href="http://www.screencast.com/t/bxOznDklp">http://www.screencast.com/t/bxOznDklp</a> &#8211; Hyper-V 3.0 &#8211; Network virtualization Part 3</p>
<p>&nbsp;</p>
<p>In my demo environment I have:</p>
<p><strong>Two Windows server 2012 with Hyper-V 3.0 role installed</strong></p>
<p><strong>HV01 / Only one network card so it is used by VMs and host (management) with IP 172.31.200.11<br />
<strong>HV02 / Only one network card so it is used by VMs and host (management) with IP 172.31.200.12</strong><br />
</strong><br />
On each host there are TWO virtual machines:</p>
<p>On HV01 there are:</p>
<p>- Blue01 (<strong>10.10.10.11</strong> with STATIC MAC*address <strong>AAAAAAAAAA01</strong>)<br />
- Red01 (<strong>10.10.10.21 </strong>with STATIC MAC*ddress <strong>CCCCCCCCCC01</strong>)</p>
<p>On HV02 there are:</p>
<p>- Blue02 (<strong>10.10.10.12</strong> with STATIC MAC*address <strong>AAAAAAAAAA02</strong>)<br />
- Red02 (10.10.10.22 with STATIC MAC*address <strong>CCCCCCCCCC02</strong>)</p>
<p>*You should DEFINE STATIC MAC on Virtual Machine network configuration &#8211; you must not use dynamicaly assigned MAC address (System center Virtual machine manager 2012 SP1 will do that for you automaticaly)</p>
<p>By defalt all machines are able to ping themselfs&#8230; We want to isolate Blue network so only Blue01 and Blue02 can ping each other and Red network so only Red01 and Red02 can ping each other.</p>
<p>First thing we need to do is to enable ms_netvm component on PHYSICAL NIC! (not on virtual switch created NIC!)<br />
<strong>Enable-NetAdapterBinding &#8220;Ethernet&#8221; -ComponentID ms_netwnv</strong></p>
<p>Second thing is that we need to create Lookup records on both Hyper-V servers. You should copy/paste this script on both hosts:<br />
<strong>New-NetVirtualizationLookupRecord -CustomerAddress &#8220;10.10.10.11&#8243; -ProviderAddress &#8220;172.31.200.11&#8243; -VirtualSubnetID &#8220;5001&#8243; -MACAddress &#8220;AAAAAAAAAA01&#8243; -Rule &#8220;TranslationMethodEncap&#8221;</strong><br />
<strong>New-NetVirtualizationLookupRecord -CustomerAddress &#8220;10.10.10.12&#8243; -ProviderAddress &#8220;172.31.200.12&#8243; -VirtualSubnetID &#8220;5001&#8243; -MACAddress &#8220;AAAAAAAAAA02&#8243; -Rule &#8220;TranslationMethodEncap&#8221;</strong></p>
<p>Then you need to create Costumer Route &#8211; on both Hyper-V hosts:<br />
<strong>New-NetVirtualizationCustomerRoute -RoutingDomainID &#8220;{11111111-2222-3333-4444-000000005001}&#8221; -VirtualSubnetID &#8220;5001&#8243; -DestinationPrefix &#8220;10.10.10.0/24&#8243; -NextHop &#8220;0.0.0.0&#8243; -Metric 255</strong></p>
<p>Then you need to add provider address to PHYSICAL NIC &#8211; you need to find out interface index by using <strong>get-netadapter</strong>!</p>
<p>In my example on HV01:<br />
<strong>New-NetVirtualizationProviderAddress -InterfaceIndex 12 -ProviderAddress &#8220;172.31.200.11&#8243; -PrefixLength 24 </strong><br />
<strong>New-NetVirtualizationProviderRoute -InterfaceIndex 12 -DestinationPrefix &#8220;0.0.0.0/0&#8243; -NextHop &#8220;172.31.200.1&#8243;</strong></p>
<p>and on HV02:<br />
<strong>New-NetVirtualizationProviderAddress -InterfaceIndex 12 -ProviderAddress &#8220;172.31.200.12&#8243; -PrefixLength 24</strong><br />
<strong>New-NetVirtualizationProviderRoute -InterfaceIndex 12 -DestinationPrefix &#8220;0.0.0.0/0&#8243; -NextHop &#8220;172.31.200.1&#8243;</strong></p>
<p>When this is done we need to configure VirtualSubnetID on virtual machines:<br />
On HV01 (where Blue01 vm is running) we should do:<br />
<strong>Get-VMNetworkAdapter -VMName Blue01 | where {$_.MacAddress -eq &#8220;AAAAAAAAAA01&#8243;} | Set-VMNetworkAdapter -VirtualSubnetID 5001</strong></p>
<p>and on HV02 (where Blue02 vm is running) we should do:<br />
<strong>Get-VMNetworkAdapter -VMName Blue02 | where {$_.MacAddress -eq &#8220;AAAAAAAAAA02&#8243;} | Set-VMNetworkAdapter -VirtualSubnetID 5001</strong></p>
<p>Now network virtualization will take place and Blue01 will only be able to ping Blue02 and vice-versa. Red01 and Red02 are outside this VitualSubnet. In video you can see network monitoring where you can detect GRE network between hosts.<br />
In video I also do live migration so I move Blue02 machine from HV02 to HV01 so you can see that network virtualization is aware of live migration and moving machines between HV hosts in the same network or also cross premise&#8230; I will cover that in next part! <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Let&#8217;s virtualise!</p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2012/10/23/demystifying-windows-server-2012-hyper-v-3-0-network-virtualization-part-ii-video/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Share your knowledge / Deli svoje znanje @Simbioza</title>
		<link>http://luka.manojlovic.net/2012/10/16/share-your-knowledge-deli-svoje-znanje-simbioza/</link>
		<comments>http://luka.manojlovic.net/2012/10/16/share-your-knowledge-deli-svoje-znanje-simbioza/#comments</comments>
		<pubDate>Tue, 16 Oct 2012 13:48:24 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=445</guid>
		<description><![CDATA[Dva dni sem posvetil ljudem, ki se prvič srečujejo z računlnikom&#8230; Podpiram odličen projekt @ Simbioza For two days I have spent some time to teach people that is starting to use computers how to make basic tasks&#8230; Suporting great project @ Simbioza Učenci popoldanske izmene&#8230; Učenci jutranje izmene&#8230;]]></description>
				<content:encoded><![CDATA[<p>Dva dni sem posvetil ljudem, ki se prvič srečujejo z računlnikom&#8230; Podpiram odličen projekt @ <a href="http://www.simbioza.eu/" target="_blank">Simbioza</a><br />
For two days I have spent some time to teach people that is starting to use computers how to make basic tasks&#8230; Suporting great project @ <a href="http://www.simbioza.eu/" target="_blank">Simbioza</a></p>
<p><a href="http://luka.manojlovic.net/wp-content/uploads/2012/10/WP_000157.jpg"><img class="alignnone size-medium wp-image-448" title="WP_000157" src="http://luka.manojlovic.net/wp-content/uploads/2012/10/WP_000157-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Učenci popoldanske izmene&#8230;</p>
<p><a href="http://luka.manojlovic.net/wp-content/uploads/2012/10/WP_000155.jpg"><img class="alignnone size-medium wp-image-446" title="Učenci jutranje izmene @ Simbioza" src="http://luka.manojlovic.net/wp-content/uploads/2012/10/WP_000155-300x225.jpg" alt="" width="300" height="225" /></a><br />
Učenci jutranje izmene&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2012/10/16/share-your-knowledge-deli-svoje-znanje-simbioza/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hyper-V 3.0 resource metering&#8230;</title>
		<link>http://luka.manojlovic.net/2012/09/14/hyper-v-3-0-resource-metering/</link>
		<comments>http://luka.manojlovic.net/2012/09/14/hyper-v-3-0-resource-metering/#comments</comments>
		<pubDate>Fri, 14 Sep 2012 14:15:57 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows server 2012]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=437</guid>
		<description><![CDATA[If you are hosting or if you just want to get the idea how is your Windows server 2012 with hyper-v role or hyper-v 3.0 server utilised you can use the hyper-v 3.0 resource metering powershell cmdlets&#8230; First you need to enable metering on your host: Get-VM -ComputerName hv01 &#124; Enable-VMResourceMetering Then you can choose the VM [...]]]></description>
				<content:encoded><![CDATA[<p>If you are hosting or if you just want to get the idea how is your Windows server 2012 with hyper-v role or hyper-v 3.0 server utilised you can use the hyper-v 3.0 resource metering powershell cmdlets&#8230;</p>
<p>First you need to enable metering on your host:</p>
<p>Get-VM -ComputerName hv01 | Enable-VMResourceMetering</p>
<p>Then you can choose the VM that you want to get info for:</p>
<p>Get-VM -ComputerName hv01 -Name VMName | Measure-VM</p>
<p>or differently formated:</p>
<p>Get-VM -ComputerName hv01 | Measure-VM | Sort-Object -Property AverageProcessorUsage -Descending | Select-Object -First 5 -Property ComputerName,VMName,AverageProcessorUsage</p>
<p>More commands you can find on:</p>
<p><a href="http://csharpening.net/?p=967">http://csharpening.net/?p=967</a></p>
<p>But that&#8217;s &#8220;ugly&#8221; output <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  if you want to have nice graphical view of your stats you can use freeware:</p>
<p><a href="http://poshstats.net/">http://poshstats.net/</a> - great software!</p>
<p>Lets meter!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2012/09/14/hyper-v-3-0-resource-metering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Demystifying&#8221; &#8211; Windows server 2012 Hyper-V 3.0 network virtualization &#8211; part I (single host)</title>
		<link>http://luka.manojlovic.net/2012/09/03/demystifying-windows-server-2012-hyper-v-3-0-network-virtualization-part-i-no-gw/</link>
		<comments>http://luka.manojlovic.net/2012/09/03/demystifying-windows-server-2012-hyper-v-3-0-network-virtualization-part-i-no-gw/#comments</comments>
		<pubDate>Mon, 03 Sep 2012 20:16:59 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Windows server 2012]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=428</guid>
		<description><![CDATA[During my preparations for Windows server 2012 I was wondering if I can show to the attendees practical example of new multi-tenant feature that comes with Windows server 2012 &#8211; network virtualization that allows you to have multiple servers that use same ip subnet completely isolated. It is a common scenario in datacenters that we [...]]]></description>
				<content:encoded><![CDATA[<p>During my preparations for Windows server 2012 I was wondering if I can show to the attendees practical example of new multi-tenant feature that comes with Windows server 2012 &#8211; network virtualization that allows you to have multiple servers that use same ip subnet completely isolated. It is a common scenario in datacenters that we were solving by using VLANs that made configuration complex and sometimes chaotic <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Microsoft provides two technologies to solve network virtualization in multi tenant cloud &#8211; IP rewrite and NVGRE solution.</p>
<p>You can read in detail what are the differences between two mechanisms. <a href="http://blogs.technet.com/b/windowsserver/archive/2012/04/16/introducing-windows-server-8-hyper-v-network-virtualization-enabling-rapid-migration-and-workload-isolation-in-the-cloud.aspx" target="_blank">IP rewrite and NVGre</a></p>
<p>There are two cool examples on Technet that provide powershell scripts to do the job:<br />
<a href="http://gallery.technet.microsoft.com/scriptcenter/Simple-Hyper-V-Network-d3efb3b8" target="_blank">Simple Hyper-V Network Virtualization Demo</a><br />
<a href="http://gallery.technet.microsoft.com/scriptcenter/Simple-Hyper-V-Network-6928e91b" target="_blank">Simple Hyper-V Network Virtualization Script with Gateway</a></p>
<p>There are some &#8220;prerequisites&#8221; in your datacenter that should be meet.</p>
<p>Network virtualization is working only on &#8220;non vlaned virtual switches&#8221; so you need to have &#8220;untagged&#8221; connection between virtual switches on different hosts.</p>
<p>Virtual machine should be connected without vlan option in network card configuration.</p>
<p>I spent almost two hours to figure it out <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So what have I used:</p>
<p>Two Windows server 2012 with Hyper-V and both domain joined.</p>
<p>I have created only one virtual switch &#8211; external &#8211; binded to a single physical NIC on both servers.</p>
<p>I have created two virtual machines on both servers (so four in total) named:</p>
<p>On host 1:<br />
<strong>07 &#8211; Windows 2012 &#8211; network isolation blue01</strong><br />
<strong> 08 &#8211; Windows 2012 &#8211; network isolation red01</strong></p>
<p>On host 2:<br />
<strong>07 &#8211; Windows 2012 &#8211; network isolation blue02</strong><br />
<strong> 08 &#8211; Windows 2012 &#8211; network isolation red02</strong></p>
<p>Then I run this two commands on both servers:</p>
<p><strong>Disable-NetAdapterBinding &#8220;vEthernet (Microsoft Network Adapter Multiplexor Driver &#8211; Virtual Switch)&#8221; -ComponentID &#8220;ms_netwnv&#8221;</strong><br />
<strong>Enable-NetAdapterBinding &#8220;vEthernet (Microsoft Network Adapter Multiplexor Driver &#8211; Virtual Switch)&#8221; -ComponentID &#8220;ms_netwnv&#8221;</strong></p>
<p>Then on <strong>host 1</strong> I run this commands:</p>
<p>Configuration for <strong>Blue</strong> network:</p>
<p><strong>New-NetVirtualizationLookupRecord -VirtualSubnetID &#8220;5001&#8243; -CustomerAddress &#8220;x.x.x.x&#8221; -ProviderAddress &#8220;y.y.y.y&#8221; -MACAddress &#8220;00155DE3F606&#8243; -Rule TranslationMethodEncap</strong></p>
<p><strong>New-NetVirtualizationCustomerRoute -RoutingDomainID &#8220;{11111111-2222-3333-4444-000000005001}&#8221; -VirtualSubnetID &#8220;5001&#8243; -DestinationPrefix &#8220;10.0.0.0/24&#8243; -NextHop &#8220;0.0.0.0&#8243; -Metric 255</strong></p>
<p><strong>Set-VMNetworkAdapter -VirtualSubnetId 5001 -VMName &#8220;07 &#8211; Windows 2012 &#8211; network isolation blue01&#8243;</strong></p>
<p>x.x.x.x is internal IP in virtual machine<br />
y.y.y.y is external IP that will be used to transport packets to other host (Hyper-V IP on &#8220;shared&#8221; virtual swtich)</p>
<p>Configuration for <strong>Red</strong> network:</p>
<p><strong>New-NetVirtualizationLookupRecord -VirtualSubnetID &#8220;6001&#8243; -CustomerAddress &#8220;x.x.x.x&#8221; -ProviderAddress &#8220;y.y.y.y&#8221; -MACAddress &#8220;00155DE3F607&#8243; -Rule TranslationMethodEncap</strong></p>
<p><strong>New-NetVirtualizationCustomerRoute -RoutingDomainID &#8220;{11111111-2222-3333-4444-000000006001}&#8221; -VirtualSubnetID &#8220;6001&#8243; -DestinationPrefix &#8220;10.0.0.0/24&#8243; -NextHop &#8220;0.0.0.0&#8243; -Metric 255</strong></p>
<p><strong>Set-VMNetworkAdapter -VirtualSubnetId 6001 -VMName &#8220;08 &#8211; Windows 2012 &#8211; network isolation red01&#8243;</strong></p>
<p>x.x.x.x is internal IP in virtual machine (if you want to see network virtualization in action you can use same internal IP as blue machine &#8211; this is multi tenancy <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )<br />
y.y.y.y is external IP that will be used to transport packets to other host (Hyper-V IP on &#8220;shared&#8221; virtual swtich) (it is the same as in blue network)</p>
<p>On <strong>host 2</strong> I run these commands:</p>
<p>Configuration for <strong>Blue</strong> network:</p>
<p><strong>New-NetVirtualizationLookupRecord -VirtualSubnetID &#8220;5001&#8243; -CustomerAddress &#8220;x.x.x.x&#8221; -ProviderAddress &#8220;z.z.z.z&#8221; -MACAddress &#8220;00155DE3F703&#8243; -Rule &#8220;TranslationMethodEncap&#8221;</strong></p>
<p><strong>New-NetVirtualizationCustomerRoute -RoutingDomainID &#8220;{11111111-2222-3333-4444-000000005001}&#8221; -VirtualSubnetID &#8220;5001&#8243; -DestinationPrefix &#8220;10.0.0.0/24&#8243; -NextHop &#8220;0.0.0.0&#8243; -Metric 255</strong></p>
<p><strong>Set-VMNetworkAdapter -VirtualSubnetId 5001 -VMName &#8220;07 &#8211; Windows 2012 &#8211; network isolation blue02&#8243;</strong></p>
<p>x.x.x.x is internal IP in virtual machine (in the same subnet as IPs on virtual machines on host 1 (if you want to see network virtualization in action you can use same internal IP as blue machine &#8211; this is multi tenancy <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )<br />
z.z.z.z is external IP that will be used to transport packets to other host (Hyper-V IP on &#8220;shared&#8221; virtual swtich)</p>
<p>Configuration for <strong>Red</strong> network:</p>
<p><strong>New-NetVirtualizationLookupRecord -VirtualSubnetID &#8220;6001&#8243; -CustomerAddress &#8220;x.x.x.x&#8221; -ProviderAddress &#8220;z.z.z.z&#8221; -MACAddress &#8220;00155DE3F704&#8243; -Rule &#8220;TranslationMethodEncap&#8221;</strong></p>
<p><strong>New-NetVirtualizationCustomerRoute -RoutingDomainID &#8220;{11111111-2222-3333-4444-000000006001}&#8221; -VirtualSubnetID &#8220;6001&#8243; -DestinationPrefix &#8220;10.0.0.0/24&#8243; -NextHop &#8220;0.0.0.0&#8243; -Metric 255</strong></p>
<p><strong>Set-VMNetworkAdapter -VirtualSubnetId 6001 -VMName &#8220;08 &#8211; Windows 2012 &#8211; network isolation red02&#8243;</strong></p>
<p>x.x.x.x is internal IP in virtual machine (in the same subnet as IPs on virtual machines on host 1 (if you want to see network virtualization in action you can use same internal IP as blue machine &#8211; this is multi tenancy <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )<br />
z.z.z.z is external IP that will be used to transport packets to other host (Hyper-V IP on &#8220;shared&#8221; virtual swtich) (it is the same as in blue network)</p>
<p>It should start ping the machine on the other host&#8230; Remeber &#8211; this parameters &#8220;live migrate&#8221; with machine &#8211; so you can freely move the machine around your environment without thinking about what will happen to your network configuration! Great feature!</p>
<p>Example of configuration &#8211; blue01 (in background you see that machine is pinging other machine (blue02)</p>
<p><a href="http://luka.manojlovic.net/wp-content/uploads/2012/09/Blue01.jpg"><img class="alignnone size-medium wp-image-429" title="Blue01" src="http://luka.manojlovic.net/wp-content/uploads/2012/09/Blue01-300x177.jpg" alt="" width="300" height="177" /></a></p>
<p>Config example: Blue02</p>
<p><a href="http://luka.manojlovic.net/wp-content/uploads/2012/09/Blue02.jpg"><img class="alignnone size-medium wp-image-430" title="Blue02" src="http://luka.manojlovic.net/wp-content/uploads/2012/09/Blue02-300x181.jpg" alt="" width="300" height="181" /></a></p>
<p>In this screenshoot you can see machines migrated to a single host but still isolated the Powershell command will give you overview of VirtualSubnetID configuration:</p>
<p>Get-VM | Get-VMNetworkAdapter | fl VMName,VirtualSubnetID</p>
<p><a href="http://luka.manojlovic.net/wp-content/uploads/2012/09/Get-info.jpg"><img class="alignnone size-medium wp-image-431" title="Get info" src="http://luka.manojlovic.net/wp-content/uploads/2012/09/Get-info-300x215.jpg" alt="" width="300" height="215" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2012/09/03/demystifying-windows-server-2012-hyper-v-3-0-network-virtualization-part-i-no-gw/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Site-to-Site VPN between your infrastructure and Windows Azure &#8211; using Mikrotik</title>
		<link>http://luka.manojlovic.net/2012/09/02/site-to-site-vpn-between-your-infrastructure-and-windows-azure-using-mikrotik/</link>
		<comments>http://luka.manojlovic.net/2012/09/02/site-to-site-vpn-between-your-infrastructure-and-windows-azure-using-mikrotik/#comments</comments>
		<pubDate>Sun, 02 Sep 2012 19:15:55 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Windows server 2012]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=414</guid>
		<description><![CDATA[While doing my demos for Windows server 2012 readiness I wanted to show my attendees also virtual machines that you can run now on Windows Azure (www.windowsazure.com &#8211; here you can try virtual machines and other Azure features for 180 days!). Okey, that&#8217;s not a problem you go to the virtual machines tab and create machine&#8230; But [...]]]></description>
				<content:encoded><![CDATA[<p>While doing my demos for Windows server 2012 readiness I wanted to show my attendees also virtual machines that you can run now on <a href="www.windowsazure.com" target="_blank">Windows Azure</a> (<cite><a href="http://www.windowsazure.com">www.<strong>windowsazure</strong>.com</a> &#8211; here you can try virtual machines and other Azure features for 180 days!).</cite></p>
<p>Okey, that&#8217;s not a problem you go to the virtual machines tab and create machine&#8230; But I wanted to connect my infrastructure with Azure so I will be able to experience real hybrid-cloud solution with some services in my datacenter and some servcies in <a href="www.windowsazure.com" target="_blank">Microsoft cloud</a>&#8230;</p>
<p>If you want to do that you need to create new network configuration in network tab on Azure portal.</p>
<p>This procedure is well documented on: <a href="http://msdn.microsoft.com/en-us/library/windowsazure/jj156210#bkmk_ConfigVPN">http://msdn.microsoft.com/en-us/library/windowsazure/jj156210#bkmk_ConfigVPN</a></p>
<p>But at the end you can download configuration for Cisco or Juniper&#8230; From that configuration I &#8220;extracted&#8221; the important steps to configure it on Mikrotik 750.</p>
<p>On your <a href="http://routerboard.com/RB750" target="_blank">Mikrotik</a> you need to go to IP / IPsec menu and then:</p>
<p>- configure peers<br />
<a href="http://luka.manojlovic.net/wp-content/uploads/2012/09/01.jpg"><img class="alignnone size-medium wp-image-415" title="01-Add peers" src="http://luka.manojlovic.net/wp-content/uploads/2012/09/01-300x202.jpg" alt="" width="300" height="202" /></a></p>
<p>after that you need to configure IPSec tunnel parameters:</p>
<p>In the fist line you define your local subnet that you have in your datacenter, below you eneter subnet that you defined in Azure network configuration&#8230;</p>
<p><a href="http://luka.manojlovic.net/wp-content/uploads/2012/09/03.jpg"><img class="alignnone size-medium wp-image-418" title="03 - IPsec subnets" src="http://luka.manojlovic.net/wp-content/uploads/2012/09/03-300x196.jpg" alt="" width="300" height="196" /></a></p>
<p>And in Action tab of IPsec policy you define that you want to create tunnel and you need to define endpoint IP addresses again&#8230;</p>
<p><a href="http://luka.manojlovic.net/wp-content/uploads/2012/09/02.jpg"><img class="alignnone size-medium wp-image-419" title="02 - IPsec 2" src="http://luka.manojlovic.net/wp-content/uploads/2012/09/02-300x188.jpg" alt="" width="300" height="188" /></a></p>
<p>Connection established!!!</p>
<p>I started to ping from my Azure Virtual machine to AD server in my organization&#8230;</p>
<p><a href="http://luka.manojlovic.net/wp-content/uploads/2012/09/04.jpg"><img class="alignnone size-medium wp-image-420" title="04-VPNup" src="http://luka.manojlovic.net/wp-content/uploads/2012/09/04-300x103.jpg" alt="" width="300" height="103" /></a></p>
<p>and as seen from Azure portal perspective:</p>
<p><a href="http://luka.manojlovic.net/wp-content/uploads/2012/09/05.jpg"><img class="alignnone size-medium wp-image-423" title="05-Site-to-Site" src="http://luka.manojlovic.net/wp-content/uploads/2012/09/05-300x194.jpg" alt="" width="300" height="194" /></a></p>
<p>It is easy to configure virtual machines on Windows Azure platform and also very easy to establish site-to-site VPN connection &#8211; and it works also with &#8220;lower&#8221; budged routers and not only by using Cisco or Juniper.</p>
<p>I encourage you to try <a href="www.windowsazure.com" target="_blank">Microsoft Azure &#8211; you can try it for 3 months</a>&#8230;</p>
<p>See ya next time! <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2012/09/02/site-to-site-vpn-between-your-infrastructure-and-windows-azure-using-mikrotik/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun never ends with Orchestrator and Jure :)</title>
		<link>http://luka.manojlovic.net/2012/07/02/fun-never-ends-with-orchestrator-and-jure/</link>
		<comments>http://luka.manojlovic.net/2012/07/02/fun-never-ends-with-orchestrator-and-jure/#comments</comments>
		<pubDate>Mon, 02 Jul 2012 05:19:57 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=400</guid>
		<description><![CDATA[Some orchestrated boobs http://www.purgar.net/orchestrated-boobs-kind-of/]]></description>
				<content:encoded><![CDATA[<p>Some orchestrated boobs <img src='http://luka.manojlovic.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.purgar.net/orchestrated-boobs-kind-of/">http://www.purgar.net/orchestrated-boobs-kind-of/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2012/07/02/fun-never-ends-with-orchestrator-and-jure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows server 2012 Release Candidate is here!</title>
		<link>http://luka.manojlovic.net/2012/06/01/windows-server-2012-release-candidate-is-here/</link>
		<comments>http://luka.manojlovic.net/2012/06/01/windows-server-2012-release-candidate-is-here/#comments</comments>
		<pubDate>Fri, 01 Jun 2012 05:14:28 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=394</guid>
		<description><![CDATA[Great new product has reached Release Candidate&#8230; Go ahead and try it! http://technet.microsoft.com/en-us/evalcenter/hh670538.aspx]]></description>
				<content:encoded><![CDATA[<p>Great new product has reached Release Candidate&#8230;</p>
<p>Go ahead and try it!</p>
<p><a href="http://technet.microsoft.com/en-us/evalcenter/hh670538.aspx">http://technet.microsoft.com/en-us/evalcenter/hh670538.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2012/06/01/windows-server-2012-release-candidate-is-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You like Windows server 8 beta? Try MS labs!</title>
		<link>http://luka.manojlovic.net/2012/05/24/you-like-windows-server-8-beta-try-ms-labs/</link>
		<comments>http://luka.manojlovic.net/2012/05/24/you-like-windows-server-8-beta-try-ms-labs/#comments</comments>
		<pubDate>Thu, 24 May 2012 08:54:08 +0000</pubDate>
		<dc:creator>manojlovicl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://luka.manojlovic.net/?p=390</guid>
		<description><![CDATA[If you want to try all amazing features that are coming with Windows server 2012 try this labs: http://technet.microsoft.com/fr-fr/windowsserver/hh968267.aspx]]></description>
				<content:encoded><![CDATA[<p>If you want to try all amazing features that are coming with Windows server 2012 try this labs:</p>
<p><a href="http://technet.microsoft.com/fr-fr/windowsserver/hh968267.aspx">http://technet.microsoft.com/fr-fr/windowsserver/hh968267.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://luka.manojlovic.net/2012/05/24/you-like-windows-server-8-beta-try-ms-labs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
