<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Schumann Ge’s Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/excellentsge/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/excellentsge/feed.xml</link>
    <description>Windows Server, SDN and etc.</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:50:13 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Deploying SDN on One single physical host using VMM – RAS Gateway</title>
      <link>https://docs.microsoft.com/archive/blogs/excellentsge/deploying-sdn-on-one-single-physical-host-using-vmm-ras-gateway</link>
      <pubDate>Fri, 07 Oct 2016 14:05:24 GMT</pubDate>
      <dc:creator><![CDATA[S Ge]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/excellentsge/?p=465</guid>
      <description><![CDATA[Create GRE VIP logical network required for gateway deploymend

Need an IP address pool for...]]></description>
      <content:encoded><![CDATA[<strong>Create GRE VIP logical network required for gateway deploymend</strong>

Need an IP address pool for private VIPs and to assign virtual IP address to GRE endpoints.You will create a GRE VIP Logical network to configure an IP address pool for GRE endpoints.

The GRE VIP network is a subnet that exists solely for defining VIPs that are assigned to gateway virtual machines running on your SDN fabric for a S2S GRE connection type. This network does not need to be pre-configured in yNour physical switches or router and need not have a VLAN assigned.

<strong>Create the GRE VIP logical network</strong>
<ol>
 	<li>From the VMM console, start the <strong>Create Logical Network Wizard</strong>.</li>
 	<li>Input “<strong>GREVIP</strong>” as the name and optional description for this network and click <strong>Next</strong>.</li>
 	<li>On the <strong>Settings</strong> page, ensure you select <strong>One Connected Network</strong>. Optionally, you can also check <strong>Create a VM network with the same name</strong> box to allow virtual machines to access this logical network directly and the <strong>Managed by the Network Controller</strong> box then click <strong>Next</strong>.</li>
 	<li>On the <strong>Network Site</strong> panel, add the network site information for your VIP subnet. This should include the Host Group and subnet information for your VIP network.</li>
 	<li>Review the <strong>Summary</strong> information and complete the Logical Network wizard</li>
</ol>
<strong>Create an IP pool for GRE VIP addresses</strong>
<ol>
 	<li>Right-click the GRE VIP logical network in VMM and select <strong>Create IP Pool</strong> from the drop-down menu.</li>
 	<li>Input “<strong>IPPool-GRE</strong>” as the name and optional description for the IP Pool and ensure that the VIP network is selected for the logical network. Click <strong>Next</strong>.</li>
 	<li>Accept the default network site and click <strong>Next</strong>.</li>
 	<li>Choose a starting and ending IP address for your range.
Important
Use <strong>31.30.30.2/24 </strong>as the range on the second addresses of your available subnet. For example, if your available subnet is from .1 to .254, start your range at .2
<img width="763" height="573" class="alignnone size-full wp-image-475" alt="1" src="https://msdnshared.blob.core.windows.net/media/2016/10/126.png" /></li>
 	<li>In the <strong>IP addresses reserved for load balancer VIPs</strong> box, type the IP addresses range in the subnet. This should match the range you used for starting and ending IP addresses.</li>
 	<li>You do not need to provide gateway, DNS or WINS information as this pool is used to allocate IP addresses for VIPs only via the network controller, so click <strong>Next</strong> to skip these screens.</li>
 	<li>Review the summary information and complete the wizard</li>
</ol>
&nbsp;

<strong>Import the Gateway service template</strong>

In the top of the left pane, in the <strong>Templates</strong> section, select <strong>Service Templates</strong>.
<ol>
 	<li>In the ribbon at the top, click <strong>Import Template</strong>.</li>
 	<li>Browse to your service template folder, select <strong>EdgeServiceTemplate Generation2.xml</strong> and click <strong>Next</strong>.</li>
 	<li>This service template uses the following virtual machine configuration parameters. Update the parameters to reflect the your environment configuration.
Configuration parameters:<img width="697" height="227" class="alignnone size-full wp-image-485" alt="2" src="https://msdnshared.blob.core.windows.net/media/2016/10/227.png" /></li>
 	<li>Click Next.</li>
 	<li>On the Summary page, click Import.</li>
</ol>
<strong>Configure the Gateway deployment</strong>

Use the following procedure to deploy a Gateway service instance.
<ol>
 	<li>Select the <strong>EdgeServiceTemplate Generation2.xml</strong> service template and click <strong>Configure Deployment</strong> to begin. Type a name and choose a destination for the service instance. The destination must map to a Host Group that contains the hosts configured previously for gateway deployment purposes.</li>
 	<li>In the Network Settings section, you must map the networks as <strong>MGMT</strong></li>
 	<li>Click <strong>OK</strong>.</li>
 	<li>After you are done mapping the destination and network settings, Click <strong>OK</strong>.</li>
 	<li>The <strong>Deploy Service</strong> dialog appears. It is normal for the virtual machine instances to be initially red. Click <strong>Refresh Preview</strong> to automatically find suitable hosts for the virtual machine.</li>
 	<li>On the left side of the <strong>Configure Deployment</strong> window, there are several settings that you must configure. The table below summarizes each field:<img width="700" height="123" class="alignnone size-full wp-image-495" alt="3" src="https://msdnshared.blob.core.windows.net/media/2016/10/315.png" /></li>
</ol>
<strong>Deploy the Gateway service</strong>

After you configure these settings, you can click <strong>Deploy Service</strong> to begin the service deployment job. Deployment times will vary depending on your hardware but are typically between 30 and 60 minutes.

If the gateway deployment fails, ensure you delete the failed instance of the service using the following steps before you retry the gateway deployment.
Remove a failed gateway instance
<ol>
 	<li>Open the VMM console.</li>
 	<li>Select <strong>VMs and Services</strong>.</li>
 	<li>Click <strong>All Hosts</strong> and select the <strong>Services</strong></li>
 	<li>Delete the failed Gateway Service instance.</li>
</ol>
<strong>Configure the Gateway Manager Role</strong>

Now that the gateway service is deployed, you can configure its properties and associate this with the network controller service.
<ol>
 	<li><strong> </strong>Open the <strong>Fabric</strong></li>
 	<li><strong> </strong>Click <strong>Network Service</strong> to display the list of network services installed.</li>
 	<li><strong> </strong>Right-click your network controller service and select <strong>Properties</strong>.</li>
 	<li><strong> </strong>Click the <strong>Services</strong> tab and select the <strong>Gateway Manager Role</strong> in the services panel.</li>
 	<li><strong> </strong>Find the <strong>Associated Service</strong> field under <strong>Service information</strong> and click <strong>Browse</strong>.</li>
 	<li><strong> </strong>Select the gateway service instance you created earlier and click <strong>OK</strong>.</li>
 	<li><strong> </strong>Select the <strong>Run As account</strong> that will be used by network controller to access the gateway virtual machines. This account should have admin privileges on the gateway VMs.</li>
 	<li><strong> </strong>In <strong>GRE VIP subnet</strong>, select the VIP subnet that you created previously.</li>
 	<li><strong> </strong>In <strong>Public IPv4 pool</strong>, select the Public IP Pool you configured during the SLB deployment.</li>
 	<li><strong> </strong><strong>Public IPv4 address</strong>, provide an IP address from the previous pool.</li>
 	<li><strong> </strong>Configure the Gateway Capacity in <strong>Gateway Capacity</strong> <strong>1000</strong></li>
 	<li><strong> </strong>Configure the number of reserved nodes for back-up in <strong>Nodes for reserved for failures field
</strong>
<img width="568" height="473" class="alignnone size-full wp-image-505" alt="4" src="https://msdnshared.blob.core.windows.net/media/2016/10/415.png" /></li>
 	<li>You need to configure individual gateway virtual machines now. Click each gateway virtual machine and:
<ol>
 	<li>Select the IPv4 Frontend Subnet. <strong>Transit</strong></li>
 	<li>Specify the local ASN. anything</li>
 	<li style="text-align: left">Optionally add the peering device info for the BGP peer<img width="764" height="574" class="alignnone size-full wp-image-506" alt="5" src="https://msdnshared.blob.core.windows.net/media/2016/10/513.png" /></li>
</ol>
</li>
 	<li>Click <strong>OK</strong></li>
</ol>
The Service instance that you deployed is now associated with the Gateway Manager role, and you should see the gateway virtual machine instance listed under the Gateway Manager role.

&nbsp;

<strong>Validation by finishing exercise 3 and 4</strong>

<strong>Exercise 3 Description: Create IPSEC S2S VPN to a Remote site</strong>

In this exercise, you will be creating a Site-to-site VPN connection between the SDN and a remote site. The image below gives a high-level view of the topology we will be creating in this exercise.

<img width="949" height="545" class="alignnone wp-image-526" alt="6" src="https://msdnshared.blob.core.windows.net/media/2016/10/68.png" />
<ol>
 	<li><strong></strong> <strong>Open System Center Virtual Machine Manager (SCVMM) Console
</strong>Double-click the Virtual Machine Manager Console icon on the Desktop.
Click “Connect”</li>
 	<li><strong></strong> <strong>Open Tenant VM Network property
</strong>Select “Client VMs and Services” in the bottom-left hand side of the VMM console
Click on “VM Networks”
Right Click the VM Network you created in Exercise 1, step 4 (E.g. “CONTOSO”)
Select “Properties” from the popup menu after your right click.</li>
 	<li><strong></strong> <strong>Setup the VPN connectivity
</strong>Select “Connectivity” from the left navigation tabs.
Check “Connect to another network through a VPN tunnel”
Leave “Enable Border Gateway Protocol (BGP)” <strong>unchecked
</strong>Check “Connect directly to an additional logical network”
Select the “Direct routing” radio button.
Make sure the Gateway Service is selected as “SingleNodeNCService”
<em>Don’t</em> click “OK” for now.</li>
 	<li><strong></strong> <strong>Setup VPN Connections
</strong>Select “VPN Connections” from the left navigation tabs
In the subnet text field; enter <strong>10.254.254.0/29</strong> (this is a rarely used range)
Click on “Add” and choose “Add IPsec tunnel”
In the “Name” text input, Give the IPSEC tunnel a name (eg. “IPSEC-VMM”)
In the “Remote endpoint” field,  input “50.50.50.1”—this is the IP of the remote site that was pre-created for this exercise
<strong>Do not</strong> check “Limit bandwidth available for this VPN connection”
Click on “Authentication”
Select the first radio button option, “Authenticate using the following credentials”
For “Run As account:”, click on “Browse”
Select “<strong>IPSECACCOUNT</strong>” as the “Run As” account, then click “OK”
Create an “IPSECACCOUNT” as the “Run As” account; please do not make your own account. chose any username, but you have to use "User@123" as the password
Click on “Routes”
Click on the “Add” button to add a subnet
In the Subnet text field, input “60.60.60.0/24” which is configured in the remote site
Click “OK”. This may take a few seconds to complete.</li>
 	<li><strong></strong> <strong>Make sure the VMM job is finished
</strong>Click on “Jobs” in the bottom-left hand side of the VMM console
Make sure the running jobs have finished successfully (all running jobs should have a “Completed” status)</li>
</ol>
&nbsp;

<strong>Setup Gateway on the remote site on Remote VM</strong>
<ol>
 	<li><strong> </strong>Go to Remote VM</li>
 	<li><strong> </strong>Right click Windows Start Menu , select Run and type “rrasmgmt.msc” to open the “Routing and Remote Access” menu.<img width="354" height="151" class="alignnone size-full wp-image-527" style="padding: 1px;background: grey;border: none" alt="7" src="https://msdnshared.blob.core.windows.net/media/2016/10/75.png" /></li>
 	<li><strong> </strong>Right click Network Interface and select “New Demand-dial interface…”</li>
 	<li><strong> </strong>Type “IPSEC-S2S” as the name and click “Next”</li>
 	<li><strong> </strong>Select “Connect using virtual private network (VPN)”. Then click “Next”
<img width="513" height="401" class="alignnone size-full wp-image-535" alt="8" src="https://msdnshared.blob.core.windows.net/media/2016/10/81.jpg" /></li>
 	<li><strong> </strong>In the VPN type, select “IKEV2” , and click “Next”
<img width="513" height="401" class="alignnone size-full wp-image-545" alt="9" src="https://msdnshared.blob.core.windows.net/media/2016/10/91.jpg" /></li>
 	<li><strong> </strong>Input “40.40.40.20” as the VIP of the gateway service</li>
 	<li><strong> </strong>Check “Route IP packets on this interface”, Click “Next”
<img width="513" height="401" class="alignnone size-full wp-image-555" alt="10" src="https://msdnshared.blob.core.windows.net/media/2016/10/101.jpg" /></li>
 	<li><strong> </strong>Input “192.168.1.0/24” as the Subnet of the Tenant VM Network you will connect to. Click “Next”.</li>
 	<li><strong> </strong>Click Next on the Dial-out Credentials</li>
 	<li><strong> </strong>Click Finish</li>
 	<li><strong> </strong>Right click on the created remote router to Open its “<strong>Properties”</strong></li>
 	<li><strong> </strong>In the options tab page, select “Persistent connection” as the connection type and click “OK”.
<img width="366" height="454" class="alignnone size-full wp-image-565" alt="11" src="https://msdnshared.blob.core.windows.net/media/2016/10/1112.png" /></li>
 	<li><strong></strong> <strong>Establish the S2S VPN connection
</strong>After you have logged in to the remote site gateway, double click the shortcut “RRAS Management Console” on the desktop to open it.
In the left menu of the RRAS Management Console, click on “Network interfaces”
Right click on “Remote Router”
Click “Property” -&gt; “Security”
In the “Key” input text field, remove all the existing stars “*****” there.
Input “User@123”
And click OK.
<img width="366" height="456" class="alignnone size-full wp-image-575" style="padding: 1px;background: grey;border: none" alt="12" src="https://msdnshared.blob.core.windows.net/media/2016/10/127.png" />
Right click on “Remote Router”
Click “Connect”
<img width="797" height="379" class="alignnone size-full wp-image-586" style="padding: 1px;background: grey;border: none" alt="15" src="https://msdnshared.blob.core.windows.net/media/2016/10/156.png" />
After a short delay around 5-6 seconds, you will see the Remote Router Connection State change from “Disconnected” to “Connected”.

<img width="798" height="192" class="alignnone size-full wp-image-576" style="padding: 1px;background: grey;border: none" alt="14" src="https://msdnshared.blob.core.windows.net/media/2016/10/147.png" />
Now the S2SVPN is connected.</li>
 	<li><strong>Validate the S2S VPN connection
</strong>Select the VMM console (it should be minimized in the taskbar)
Click on “VM and Services” in the bottom-left hand side of the VMM console
Click on “All hosts”
In the right VMs window, locate your first created VM - “VM1”
Right click on the VM and select “Connect or View”
Choose “Connect via Console”
The Virtual Machine viewer window will now appear
Click on the “Ctrl-Alt-Del” (button in upper left-hand corner) then use “.\Administrator” as the username and “<strong>!!123abc” </strong>as the password to login
Press the Windows key and type “Internet Explorer” then press Enter to open the browser
In the launched Internet Explorer window, input <a href="https://60.60.60.1/">https://60.60.60.1</a> in the address bar and press Enter
You should see a “Congratulations!” web page.</li>
 	<li><strong>You have now finished the IPSEC S2S VPN successfully!</strong></li>
</ol>
&nbsp;

<b>Exercise 4 Description: Create GRE Connection to a Remote site</b>

In this exercise, you will be creating a GRE connection between the SDN and a remote site.
Use the following steps to configure a S2S GRE connection:
<ol>
 	<li>Right Click <strong>CONTOSO</strong> VM Network and click <strong>Connectivity</strong>.</li>
 	<li>Select <strong>Connect to another network through a VPN tunnel</strong>.</li>
 	<li>Select your Network Controller Service for the Gateway Device.</li>
 	<li>Select the <strong>VPN Connections</strong></li>
 	<li>Click <strong>Add</strong> and then select <strong>GRE</strong> type connection.</li>
 	<li>Type a subnet as shown in the following diagram. This subnet is used to route packets out of the VM Network. This subnet does not need to be preconfigured in your datacenter.</li>
 	<li>Type a connection name. The name used in the example screenshot is <strong>GREVPN</strong>.</li>
 	<li>Type the IP address of the Remote endpoint: <strong>50.50.50.1</strong></li>
 	<li>Type the GRE key - <strong>1234

<img width="761" height="573" class="alignnone size-full wp-image-595" alt="16" src="https://msdnshared.blob.core.windows.net/media/2016/10/166.png" />
</strong></li>
 	<li>Select the <strong>Routes</strong></li>
 	<li>Add "<strong>60.60.60.1</strong>" to the Subnet and click OK

<img width="760" height="574" class="alignnone size-full wp-image-605" alt="17" src="https://msdnshared.blob.core.windows.net/media/2016/10/176.png" /></li>
 	<li>Click on “Fabric" on the left navigation</li>
 	<li>Click on "Network Service", and double click on the "<strong>Gateway Service</strong>" under "Network Controller Service"</li>
 	<li>Configure the Gateway Service Information as the following -

<img width="761" height="573" class="alignnone size-full wp-image-615" alt="18" src="https://msdnshared.blob.core.windows.net/media/2016/10/186.png" /></li>
 	<li>Then configure each of the Gateway node as the following with Local ASN : 65000, PEER IP Address: 10.10.10.1 and ASN 64623

<img width="762" height="575" class="alignnone size-full wp-image-625" alt="19" src="https://msdnshared.blob.core.windows.net/media/2016/10/196.png" /></li>
 	<li>Go to VMs and Services , click on All Hosts</li>
 	<li>Check each of the Gateway VM's Transit IP Address, you will need these IP addresses in the next steps.

<img width="1150" height="277" class="alignnone size-full wp-image-637" alt="21" src="https://msdnshared.blob.core.windows.net/media/2016/10/2112.png" /></li>
 	<li>Go to RRAS VM , open the PowerShell console</li>
 	<li>Run the following PowerShell to add BGPPeer for each of the gateway , the "PeerIPAddress" should be the IP address of the Gateway Node Transit IP you just found out in the previous step. When finished, run Get-BGPPeer to check if they are connected.

<img width="842" height="205" class="alignnone size-full wp-image-635" alt="20" src="https://msdnshared.blob.core.windows.net/media/2016/10/206.png" /></li>
 	<li>Go to Remote VM , open the PowerShell console</li>
 	<li>Run the following Powershell to add a new VPNInterface for GRE connection , when finished , use "Get-VPNS2SInterface" cmdlet to check the status and connectivity

<img width="847" height="386" class="alignnone size-full wp-image-647" alt="22" src="https://msdnshared.blob.core.windows.net/media/2016/10/228.png" /></li>
 	<li><strong>Validate the GRE Connection</strong>
Select the VMM console (it should be minimized in the taskbar)
Click on “VM and Services” in the bottom-left hand side of the VMM console
Click on “All hosts”
In the right VMs window, locate your first created VM - “VM1”
Right click on the VM and select “Connect or View”
Choose “Connect via Console”
The Virtual Machine viewer window will now appear
Click on the “Ctrl-Alt-Del” (button in upper left-hand corner) then use “.\Administrator” as the username and “<strong>!!123abc” </strong>as the password to login
Press the Windows key and type “Internet Explorer” then press Enter to open the browser
In the launched Internet Explorer window, input <a href="https://60.60.60.1/">https://60.60.60.1</a> in the address bar and press Enter
You should see a “Congratulations!” web page.</li>
 	<li><b>You have now finished the GRE connection exercise successfully!</b></li>
</ol>
&nbsp;]]></content:encoded>
    </item>
    <item>
      <title>Deploying SDN on One single physical host using VMM – Software Load Balancer</title>
      <link>https://docs.microsoft.com/archive/blogs/excellentsge/deploying-sdn-on-one-single-physical-host-using-vmm-software-load-balancer</link>
      <pubDate>Fri, 07 Oct 2016 10:36:19 GMT</pubDate>
      <dc:creator><![CDATA[S Ge]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/excellentsge/?p=306</guid>
      <description><![CDATA[Create “Transit” logical network

 	From the VMM console, start the Create logical network...]]></description>
      <content:encoded><![CDATA[<strong>Create “Transit” logical network</strong>
<ol>
 	<li>From the VMM console, start the <strong>Create logical network Wizard</strong>.</li>
 	<li>Input “<strong>Transit</strong>” as the name and optional description for this network and click <strong>Next</strong>.</li>
 	<li>On the <strong>Settings</strong> page, ensure you select <strong>One Connected Network</strong>. Check <strong>Create a VM network with the same name</strong> box to allow virtual machines to access this logical network directly and the <strong>Managed by the network controller</strong> box then click <strong>Next</strong>.</li>
 	<li>On the <strong>Network Site</strong> panel, add the network site information for your subnet.</li>
 	<li>Review the <strong>Summary</strong> information and complete the logical network wizard</li>
</ol>
<strong>Create an IP address pool for Transit logical network</strong>

The IP Pool should be – 10.10.10.0/24 , Vlan ID is 10, Gateway is 10.10.10.1

Don't include the first IP addresses of your subnet in the IP pool you are about to create. For example, if your available subnet is from .1 to .254, start your range at .2.

After you create the Transit logical network, ensure you associate this logical network with the Management switch uplink port profile you created during the network controller deployment.

<img width="762" height="574" class="alignnone size-full wp-image-316" alt="2-1" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-1.png" />

<strong>Private VIP logical network</strong>
<ol>
 	<li>Start the <strong>Create logical network Wizard</strong>.</li>
 	<li>Input “<strong>PrivateVIP</strong>” as the name and optional description for this network. Click <strong>Next</strong>.</li>
 	<li>On the <strong>Settings</strong> page, ensure you select <strong>One Connected Network</strong>. check <strong>Create a VM network with the same name</strong> box to allow virtual machines to access this logical network directly and the <strong>Managed by the network controller</strong> box then click <strong>Next</strong>.</li>
 	<li>On the <strong>Network Site</strong> panel, add the network site information for your Private VIP logical network.</li>
 	<li>Review the Summary information and complete the wizard.</li>
</ol>
You can now proceed to create IP pools for the Private VIP and Public VIP logical networks you created earlier.

<strong>Create VIP address pool in the Private VIP logical network</strong>
<ol>
 	<li>Right-click the Private VIP logical network in VMM and select <strong>Create IP Pool</strong> from the drop down menu.</li>
 	<li>Input “<strong>IPPOOL-PRIVATEVIP</strong>” as the name and optional description for the IP Pool and ensure that the Private VIP logical network is selected for the logical network. Click <strong>Next</strong>.</li>
 	<li>Accept the default network site and click <strong>Next</strong>.</li>
 	<li>Input <strong>20.20.0/27</strong> as the IP range</li>
</ol>
Important

Start your range on the second addresses of your available subnet. For example, if your available subnet is from .1 to .254, start your range at .2.
<ol start="5">
 	<li>In the <strong>IP addresses reserved for load balancer VIPs</strong> box, type the IP addresses range in the subnet. This should match the range you used for starting and ending IP addresses.</li>
 	<li>You do not need to provide gateway, DNS or WINS information as this pool is used to allocate IP addresses for VIPs only via the network controller, so click <strong>Next</strong> to skip these screens.</li>
 	<li>Review the summary information and complete the wizard.</li>
</ol>
<strong>Public VIP logical network</strong>
<ol>
 	<li>Start the <strong>Create logical network Wizard</strong>.</li>
 	<li>Input “<strong>PublicVIP</strong>” as the name and optional description for this network and click <strong>Next</strong>.</li>
 	<li>On the <strong>Settings</strong> page, ensure you select <strong>One Connected Network</strong>. Check the <strong>Create a VM network with the same name</strong> box to allow virtual machines to access this logical network directly and the <strong>Managed by the network controller</strong> Also, select <strong>Public IP Address Network</strong> and then click <strong>Next</strong>.</li>
 	<li>On the <strong>Network Site</strong> panel, add the network site information for your Public VIP network. This should include the Host Group and subnet information for your Public VIP network.</li>
 	<li>Review the <strong>Summary</strong> information and complete the logical network wizard</li>
</ol>
<strong>To create an IP pool for Public VIP logical network</strong>
<ol>
 	<li>Right-click the Public VIP logical network in VMM and select <strong>Create IP Pool</strong> from the drop down menu.</li>
 	<li>Input name “<strong>IPPool-PUBLICVIP”</strong> and optional description for the IP Pool and ensure that the VIP network is selected for the logical network. Click <strong>Next</strong>.</li>
 	<li>Accept the default network site and click <strong>Next</strong>.</li>
 	<li>Choose a starting and ending IP address for your range.</li>
 	<li>In the <strong>IP addresses reserved for load balancer VIPs</strong> box, type the IP addresses range in the subnet. This should match the range you used for starting and ending IP addresses.</li>
 	<li>You do not need to provide gateway, DNS or WINS information as this pool is used to allocate IP addresses for VIPs only via the network controller, so click <strong>Next</strong> to skip these screens.</li>
 	<li>Review the summary information and complete the wizard</li>
</ol>
<strong>Import the SLB/MUX service template into the VMM library.</strong>
<ol>
 	<li>In the VMM console, navigate to <strong>Library</strong>.</li>
 	<li>In the top of the left pane, in the <strong>Templates</strong> section, select <strong>Service Templates</strong>.</li>
 	<li>In the ribbon at the top, click <strong>Import Template</strong>.</li>
 	<li>Browse to your service template directory, select the <strong>SLB Production Generation 2 VM.xml</strong> file and follow the prompts to import it.</li>
 	<li>This service template uses the following virtual machine configuration parameters. Update the parameters to reflect your environment configuration.</li>
</ol>
Configuration parameters:

<img width="579" height="206" class="alignnone wp-image-325" alt="2-2" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-2.png" />

<strong>Configure the deployment</strong>

Use the following procedure to deploy an SLB/MUX service instance.

To configure the deployment
<ol>
 	<li>Select the <strong>SLB Production Generation 1 VM.xml</strong> service template and click <strong>Configure Deployment</strong> to begin. Type a name and optional destination for the service instance. The destination must map to a Host Group that contains the hosts configured previously.</li>
 	<li>In the <strong>Network Settings</strong> section, you must map the networks as follows.</li>
</ol>
<table width="429">
<thead>
<tr>
<td><strong>Network setting</strong></td>
<td><strong>   Value</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>TransitNetwork</td>
<td>   <strong>TRANSIT</strong></td>
</tr>
<tr>
<td>ManagementNetwork</td>
<td>   <strong>MGMT</strong></td>
</tr>
</tbody>
</table>
After you are done with mapping the destination and network settings, the <strong>Deploy Service</strong> dialog appears. It is normal for the virtual machine instances to be initially red. Click <strong>Refresh Preview</strong> to automatically find suitable hosts for the virtual machine.

On the left side of the <strong>Configure Deployment</strong> window, there are a number of settings that you must configure. The table below summarizes each field:

<img width="589" height="165" class="alignnone size-full wp-image-335" alt="2-3" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-3.png" />

<strong>Deploy the SLB/MUX service</strong>

After you configure these settings, click <strong>Deploy Service</strong> to begin the service deployment job. Deployment times will vary depending on your hardware but are typically between 30 and 60 minutes.

If the SLB/MUX deployment fails, ensure you delete the failed instance of the Service using the following steps before you retry the SLB/MUX deployment.

To remove a failed SLB/MUX instance
<ol>
 	<li>Open the VMM console.</li>
 	<li>Select <strong>VMs and Services</strong>.</li>
 	<li>Click <strong>All Hosts</strong> and select the <strong>Services</strong></li>
 	<li>Delete the failed SLB/MUX Service instance.</li>
</ol>
When the service deployment job has completed, verify that your service appears in the VMM console:

Open the <strong>VMs and Services</strong> workspace.
<ol>
 	<li>Click <strong>Services</strong> in the ribbon.</li>
 	<li>Verify that your SLB MUX service instance appears in the <strong>VM Network Information for Services</strong></li>
 	<li>Right-click the SLB MUX service and select <strong>Properties</strong> from the menu.</li>
 	<li>Verify that the state is <strong>Deployed</strong>.</li>
</ol>
If you want to scale-in or scale-out a deployed Software Load Balancer Service instance, see <a href="https://blogs.technet.microsoft.com/scvmm/2011/05/18/scvmm-2012-an-explanation-of-scale-in-and-scale-out-for-a-service/">System Center: Virtual Machine Manager Engineering Blog</a>.

<strong>Configure the SLB role and SLB/MUX Instance Properties</strong>

Now that the service is deployed, you can configure its properties. This involves associating the SLB service instance that you deployed with network controller, and then configuring BGP peering between the SLB/MUX instance and a ToR switch or a BGP router peer.

Associate the SLB/MUX Instance with SLB Manager service
<ol>
 	<li>Open the <strong>Fabric</strong></li>
 	<li>Click <strong>Network Service</strong> to display the list of network services installed.</li>
 	<li>Right-click the <strong>network controller</strong> service and select <strong>Properties</strong>.</li>
 	<li>In the Wizard, Select the <strong>Services</strong> tab, and then click <strong>Load Balancer Role</strong>.</li>
 	<li>Find the <strong>Associated Service</strong> field under <strong>Service information</strong> and click <strong>Browse</strong>.</li>
 	<li>Select the SLB/MUX service instance you created earlier and click <strong>OK
<img width="608" height="644" class="alignnone size-full wp-image-345" alt="2-4" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-4.png" />
</strong></li>
 	<li>Choose the appropriate Run as Account</li>
 	<li>For the <strong>Management IP address</strong>, use the desired IP address from the Private VIP pool you created earlier.<img width="760" height="573" class="alignnone size-full wp-image-346" alt="2-5" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-5.png" /></li>
 	<li>Optionally specify the IP address ranges to be excluded from the outbound NAT.</li>
 	<li>Click the SLB/MUX instance listed under Load Balancer Role in the wizard.</li>
 	<li>Type the local ASN for your datacenter and details for the devices or BGP peers the SLB/MUX can peer with. You should use the Transit network for BGP peering. Do this for all three MUX.
<img width="760" height="571" class="alignnone size-full wp-image-355" alt="2-6" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-6.png" /></li>
 	<li>When finished, press OK. Then Make sure associate service instance with fabric role.</li>
 	<li>Click on VMs and Services tab</li>
 	<li>Click on All Hosts, locate to the MUX</li>
 	<li>Check the Transit IP of each MUX , these IPs will be used in the next steps
<img width="752" height="483" class="alignnone wp-image-365" alt="2-7" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-7.png" /></li>
</ol>
&nbsp;

<strong>Create and configure BGP Router on RRAS VM</strong>
<ol>
 	<li><strong> </strong>Open RRAS VM</li>
 	<li><strong> </strong>Open the PowerShell CMDLet and using the following scripts to create and configure the BGP router.

<img width="697" height="209" class="alignnone size-full wp-image-655" alt="2-8" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-81.png" /></li>
 	<li>Run Get-bgppeer to verify the connection

<img width="634" height="116" class="alignnone size-full wp-image-385" alt="2-9" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-9.png" /></li>
</ol>
&nbsp;

<strong>Validation by finishing exercise 2</strong>

<strong>Exercise Description: Create a SLB VIP</strong>

In this exercise, you will be creating a public VIP on the Software Load Balancer (SLB) using SCVMM and PowerShell through which you can access a website on your virtual network.

The image below gives a high-level view of the topology we will be creating in this exercise.

<img width="806" height="448" class="alignnone wp-image-395" alt="2-10" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-10.png" />

<strong>Tasks</strong>
<ol>
 	<li><strong></strong> <strong>Open System Center Virtual Machine Manager (SCVMM) Console
</strong>If it’s already opened, just go back to the console.  If it’s not, double-click the Virtual Machine Manager Console icon on the Desktop.
Click “Connect”</li>
 	<li><strong></strong> <strong>Open Create a VIP Template Wizard
</strong>Click on “Fabric” in the bottom-left hand side of the VMM console
Click on “VIP Templates” in the menu on the left-hand side
Click “Create VIP Template” in the Ribbon menu</li>
 	<li><strong></strong> <strong>Specify VIP Template Name and Port
</strong>Input “VIPTemplate” as the name and optionally a description for the VIP Template
Specify the “Virtual IP port” (public facing) value of <strong>80</strong> and “Backend port” (on tenant VMs) value of <strong>80
</strong>Click “Next”</li>
 	<li><strong>Specify a Template Type
</strong>Select “Specific template” and navigate to:</li>
 	<li>Manufacturer: “<strong>Microsoft”</strong></li>
 	<li>Model: “<strong>Microsoft Network Controller”
</strong>Click “Next”</li>
 	<li><strong></strong> <strong>Specify Protocol Options
</strong>Select “Custom” protocol and type in value of <strong>TCP
</strong>Click “Next”</li>
 	<li><strong></strong> <strong>Skip Specify Persistence
</strong>Leave the “Enable Persistence” checkbox <strong>un-checked
</strong>Click “Next”</li>
 	<li><strong></strong> <strong>Select a Load Balancing Method
</strong>Click the drop-down to choose a load balancing method and select “Round Robin”.
Click “Next”</li>
 	<li><strong>Skip specify a health monitor
</strong>Click “Next”</li>
 	<li><strong> </strong><strong>Confirm Settings and Create VIP Template
</strong>Click “Finish” to Create the VIP Template
Check in “jobs” to see if the task creation is finished.</li>
 	<li><strong>Run the CreateTenantVIP PowerShell function
</strong>Open the “Start menu” and right click on “Windows Powershell ISE”
Choose “More” &gt; “Run As Administrator”
In the “Powershell ISE” window, select menu “File” &gt; “New”
Copy and Paste all the following script to the file
<img width="700" height="809" class="alignnone size-full wp-image-405" alt="2-11" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-11.png" /></li>
 	<li><strong>Save the file as Name “CreateVIP”</strong>
Click the green arrow to “Run Script”
The script may take a moment to run (the cursor in the PowerShell execution window will be inactive until the script is complete).
Create a Tenant VIP
Run the following command in the PowerShell execution window.
<img width="625" height="36" class="alignnone size-full wp-image-425" alt="2-12" src="https://msdnshared.blob.core.windows.net/media/2016/10/2-12.png" /></li>
 	<li><b>Validate Load Balanced VIP
</b>Open “Internet Explorer"
Enter the IP address, “41.40.40.8” into the address bar
You should now see the default Windows Server Welcome page</li>
 	<li><strong>Congratulations!</strong> You just created an externally facing VIP that load balances across multiple VMs.</li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Deploying SDN on One single physical host using VMM - Initial Setup and Network Controller</title>
      <link>https://docs.microsoft.com/archive/blogs/excellentsge/deploying-sdn-on-one-single-physical-host-using-vmm</link>
      <pubDate>Thu, 06 Oct 2016 00:18:21 GMT</pubDate>
      <dc:creator><![CDATA[S Ge]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/excellentsge/?p=25</guid>
      <description><![CDATA[Introduction

This topic helps you evaluate the Software Defined Networking (SDN) features...]]></description>
      <content:encoded><![CDATA[<strong>Introduction</strong>

This topic helps you evaluate the Software Defined Networking (SDN) features available with Windows Server 2016. In particular, it focuses on using Virtual Machine Manager (VMM) 2016 to deploy Software Defined Networking on a single physical host; It includes several SDN capabilities in Windows Server 2016 such as Network Controller, Software Load-balancer and etc.

Review the following information to help understand what is SDN, plan your SDN infrastructure and deployment.
<ul>
 	<li><a href="https://technet.microsoft.com/library/mt403307.aspx">Software Defined Networking (SDN)</a></li>
 	<li><a href="https://technet.microsoft.com/library/mt605207.aspx">Plan a Software Defined Network Infrastructure</a>.</li>
 	<li><a href="https://technet.microsoft.com/en-us/library/mt695701(v=sc.16).aspx">Deploy a Software Defined Network infrastructure using VMM</a></li>
</ul>
<strong>Prerequisites</strong>

To deploy SDN on a single physical host, you will need followings –
<ul>
 	<li>A Physical machine with Dual-Socket: 8 - 16 Physical Cores, 128G RAM, 175GB local disk, 300GB HD for VM storage (can be on File Server)</li>
 	<li><a href="https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-technical-preview">Windows Server 2016 Data Center with 9D Update</a></li>
 	<li><a href="https://www.microsoft.com/en-us/evalcenter/evaluate-sql-server-2014-sp2/">SQL Server 2014</a></li>
 	<li><a href="https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit">Windows Assessment and Deployment Kit</a></li>
 	<li><a href="https://www.microsoft.com/en-us/cloud-platform/system-center">SCVMM 2016</a></li>
 	<li><a href="https://github.com/Microsoft/SDN/tree/master/VMM/Templates">SCVMM Templates for SDN Deployment</a></li>
</ul>
Before you begin deployment, you must plan and configure your hosts and physical network infrastructure. You can get more information from <a href="https://technet.microsoft.com/library/mt605207.aspx">Plan a Software Defined Network Infrastructure</a>

&nbsp;

<strong>Prepare the Physical Host</strong>

The physical host will be used as the Hyper-V Host. All you need do is to <strong>install Windows 2016</strong> and <strong>enable Hyper-V</strong>. After Hyper-V role is enabled, <strong>create three virtual switches</strong> on the host from Hyper-V Manager UI or following PowerShell –

<img width="480" height="67" class="alignnone wp-image-45 " alt="1" src="https://msdnshared.blob.core.windows.net/media/2016/10/120.png" />

<strong>Make VHD of Windows Server 2016 DC with 9D Update</strong> for SDN infrastructure VMs.

<strong>Create 7 VMs</strong> with the following names – SCVMM, RRAS, Remote, HOST01, HOST02, HOST03 and HOST04 based on the Windows Server 2016 DC with 9D VHD.

<img width="609" height="189" class="alignnone wp-image-55" alt="2" src="https://msdnshared.blob.core.windows.net/media/2016/10/220.png" />

<strong>Topology view from the physical Host - </strong>

<img width="787" height="316" class="alignnone wp-image-65" alt="3" src="https://msdnshared.blob.core.windows.net/media/2016/10/314.png" />

<strong>Connect these 7 VMs to the Virtual Switches</strong> as the following –
<ul>
 	<li><strong>Remote</strong>: Public, Private</li>
 	<li><strong>RRAS</strong>: 3 VNIC connect to SDN, one NIC connects to Public</li>
 	<li><strong>SCVMM, HOST01, HOST02, HOST03 and HOST04</strong>: SDN</li>
</ul>
<strong>Name VNICs of SCVMM </strong>with following names – MGMT, HNV, Transit, Public

<strong>Give VLAN ID of SCVMM VNICs</strong> – 7 for MGMT, 10 for Transit and 11 for HNV

<strong>Enable trunk mode</strong> <strong>on NIC of Host01 to Host04</strong> to allow Vlan 7, 10 and 11, you can find more information - <a href="https://technet.microsoft.com/en-us/library/hh848475.aspx">https://technet.microsoft.com/en-us/library/hh848475.aspx</a>

<strong>Manually Setup Static IPs to these 7 VMs</strong> on their VNICs –

<img width="882" height="892" class=" wp-image-75 alignleft" alt="4" src="https://msdnshared.blob.core.windows.net/media/2016/10/414.png" />

&nbsp;

<strong>Enable Nested Virtualization on HOST01 to HOST04 </strong>by PowerShell. You can find more information for running nested virtualization in Hyper-V from - <a href="https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/user_guide/nesting">https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/user_guide/nesting</a>

<img width="681" height="49" class="alignnone wp-image-85" alt="5" src="https://msdnshared.blob.core.windows.net/media/2016/10/512.png" />

&nbsp;

<strong>Prepare the VMs</strong>

<strong>Start all the VMs</strong>

<img width="831" height="216" class="alignnone size-full wp-image-105" alt="6" src="https://msdnshared.blob.core.windows.net/media/2016/10/67.png" />

<strong>RRAS VM</strong>
<ul>
 	<li>Rename computer name as “RRAS”</li>
 	<li>Install “Active Directory Domain Services” Role and configure the RRAS server as the DC. Create a root domain – “SDN.LAB”</li>
 	<li>Install “DNS Server” role, and configure the DNS</li>
 	<li>Install “Remote Access” Role</li>
 	<li>Create an Active Directory security group for network controller management - <strong>SDNMGMT
</strong>You need to create an Active Directory security group for network controller management. The group should be a Domain Local group. Members of this group will be able to create, delete, and update the deployed network controller configuration. You need to create at least one user account that is a member of this group and have access to its credentials.</li>
 	<li>Create an Active Directory security group for network controller clients - <strong>SDNCLIENT
</strong>You need to create an Active Directory security group for network controller clients. The group should be a Domain Local group. Once the network controller is deployed, any members of this group will have permissions to communicate with the network controller via REST based interface. You need to create at least one user account that is a member of this group. After the network controller is deployed, VMM can be configured to use this user's account credentials to establish communication with the network controller.</li>
</ul>
<strong>HOST01 – HOST04 VMs</strong>
<ul>
 	<li>Rename computer Name as “HOST01 – HOST04”</li>
 	<li>Join VMs to the SDN.LAB domain.</li>
 	<li>Enable Hyper-V role on the VM, do not use Hyper-V to create VSwitch based on the VNIC.</li>
</ul>
<strong>SCVMM VM</strong>
<ul>
 	<li>Rename computer Name as “SCVMM”</li>
 	<li>Join VM to the SDN.LAB domain.</li>
 	<li>Install .Net Framework V3.5 feature from Server Manager</li>
 	<li>Install Windows Assessment and deployment kit (ADK)j</li>
 	<li>Install SQL Server 2014</li>
 	<li>Install SCVMM</li>
</ul>
<strong>Remote VM</strong>
<ul>
 	<li>Rename VM Name as “Remote”</li>
 	<li>Install Remote Access role</li>
 	<li>Install IIS, change the default page of the default website to something meaningful, such as the HTML page with the content can show the page is on the remote host.</li>
</ul>
&nbsp;

&nbsp;

<strong>Deploy the SDN</strong>

<strong>Plan SDN</strong>

This experiment environment is intentionally to align with the SDN topology as <a href="https:/technet.microsoft.com/en-us/windows-server-docs/networking/sdn/plan/plan-a-software-defined-network-infrastructure">Plan a Software Defined Network Infrastructure</a>, except we are using the single node Network Controller and without NICs teaming due to the performance of the nested virtualization environment.

The topology of the SDN is as the following -

<img width="1210" height="665" class="alignnone size-full wp-image-106" alt="7" src="https://msdnshared.blob.core.windows.net/media/2016/10/74.png" />
<ul>
 	<li>MGMT – Management network routes off-cloud to other management subnets</li>
 	<li>Transit Network routes off-cloud to external client subnets</li>
 	<li>HVN Provider network only routes to other HNV Provider subnets in the cloud.</li>
</ul>
<strong>Network topology – </strong>

<img width="690" height="358" class="alignnone wp-image-116" alt="8" src="https://msdnshared.blob.core.windows.net/media/2016/10/83.png" />

<span style="color: #000000;font-family: Calibri">MUX ASN – 64628, Gateway ASN: 65000, LOCAL ASN on Remote VM: 64623</span>

&nbsp;

<strong>Deploy Network Controller </strong>

<strong>Prepare an SSL self-signed Certificate</strong>

You need an SSL certificate that will be used to establish secure communication (https) between VMM and the network controller. We will generate a self-signed certificate for the deployment.

Run the following PowerShell on the SCVMM VM:

<img width="757" height="41" class="alignnone wp-image-135" alt="9" src="https://msdnshared.blob.core.windows.net/media/2016/10/94.png" />

<strong>Export the certificate</strong>

After requesting the certificate, use the <strong>Certificates</strong> snap-in (certlm.msc) to export it (located in Personal/Certificates) and its private key into a .pfx file. When exporting, choose <strong>Personal Information Exchange - PKCS #12 (.PFX)</strong> and accept the default to <strong>Include all certificates in the certification path if possible</strong>. The export wizard requires that you protect the private key by either a security or a password. Be sure to assign a password, as you will need it later during network controller deployment.

Later, this “<strong>SingleNodeNC</strong><strong>.PFX”</strong> certificate should be placed directly in the ServerCertificate.cr folder for use during deployment. Details of ServerCertificate.cr folder are included in following sections in this guide.

<strong>Import the service template include template VHD</strong>

Copy all the templates you download from GitHub - <a href="https://github.com/Microsoft/SDN/tree/master/VMM/Templates/NC">Microsoft SDN GitHub repository</a> to the folder –

C:\Programdata\Virtual Machine Manager Library Files\

<img width="629" height="425" class="all-framed alignnone wp-image-145 size-full" style="padding: 1px;background: grey;border: none" alt="10" src="https://msdnshared.blob.core.windows.net/media/2016/10/105.png" />

<span style="font-size: 10.5pt;line-height: 107%;font-family: 'Helvetica',sans-serif;color: #333333">Copy Windows Server 2016 + 8D sysprep VHD to the C:\Programdata\Virtual Machine Manager Library Files\VHDS</span>

<img width="642" height="123" class="imgbox alignnone wp-image-155 size-full" style="padding: 1px;background: grey;border: none" alt="11" src="https://msdnshared.blob.core.windows.net/media/2016/10/1110.png" />

<strong>Setup Network Settings in SCVMM</strong>

Open SCVMM Console, and go to Settings -&gt; Network Settings, Uncheck “Create logical networks automatically” and Press “Finish"

<img width="1076" height="684" class="alignnone size-full wp-image-165" style="padding: 1px;background: grey;border: none" alt="12" src="https://msdnshared.blob.core.windows.net/media/2016/10/124.png" />

&nbsp;
<h2>Add HOST01 – HOST04 to SCVMM</h2>
<ol>
 	<li>Open VMM Console, click “Fabric” and click on the “Servers &gt; All Hosts”.</li>
 	<li>Right click the “All Hosts” and select “Add Hyper-V Hosts and Clusters”</li>
</ol>
<img width="427" height="446" class="alignnone size-full wp-image-205" style="padding: 1px;background: grey;border: none" alt="13" src="https://msdnshared.blob.core.windows.net/media/2016/10/135.png" />

3. Select “Windows Server computer in a trusted Active Directory domain”.

<img width="758" height="301" class="alignnone size-full wp-image-175" style="padding: 1px;background: grey;border: none" alt="14" src="https://msdnshared.blob.core.windows.net/media/2016/10/146.png" />

4. In the Credentials page, select user an existing Run As Account, click on Browse and click on “Create Run As Account” to create a “Run_As” account – <strong>SDN\Administrator</strong>

<img width="581" height="534" class="alignnone size-full wp-image-185" style="padding: 1px;background: grey;border: none" alt="15" src="https://msdnshared.blob.core.windows.net/media/2016/10/155.png" />

5. Type “HOST” in the “Computer names” text field then press next to search the hosts

6. You will see host01 to host04 displayed on the “Target Resources” page, Click the button “Select All”, then click “Next”.

7. Click Next

8. On Summary page confirm the settings and click “Finish”.

9. All 4 hosts will be added to the “All Host” group when the jobs are completed as the following.

<img width="644" height="347" class="alignnone size-full wp-image-195" style="padding: 1px;background: grey;border: none" alt="16" src="https://msdnshared.blob.core.windows.net/media/2016/10/165.png" /><img width="1103" height="156" class="alignnone size-full wp-image-196" style="padding: 1px;background: grey;border: none" alt="17" src="https://msdnshared.blob.core.windows.net/media/2016/10/175.png" />

&nbsp;

<strong>Create the Management logical network</strong>

Now you can create the Management logical network and the Management logical switch.

The Management logical network models the Management network connectivity for the VMM host, network controller hosts, and tenant virtual machine hosts. It's recommended that you create this Management network specifically to provide connectivity to network controller managed infrastructure virtual machines.
<ol>
 	<li>Open the <strong>Fabric</strong> workspace in the VMM Console, expand <strong>Networking</strong> and select the <strong>Logical Networks</strong></li>
 	<li>Right-click the <strong>Logical Network</strong> node and select <strong>Create Logical Network</strong>.</li>
 	<li>Specify “<strong>MGMT</strong>” as the name and optional <strong>Description</strong> for this network. Click <strong>Next</strong>.</li>
 	<li>On the <strong>Settings</strong> page, be sure to select <strong>One Connected Network</strong>, since all Management networks need to have routing and connectivity between all hosts in that network. Check the <strong>Create a VM Network with the same name</strong> to automatically create a VM Network for your Management network. Click <strong>Next</strong>.</li>
 	<li>In the <strong>Network Site</strong> panel, click <strong>Add</strong> to add a new network site. Select the host group for the hosts that will be managed by the network controller. Insert your management network IP subnet information. This network should already exist and be configured in your physical switch. Click <strong>Next</strong> when you are ready to proceed.</li>
 	<li>Review the <strong>Summary</strong> information and click <strong>Finish</strong> to complete.</li>
</ol>
For a highly available network controller deployment, you need a REST IP address that can be assigned to the network controller service. This REST IP address will be reserved from the Management logical network IP address space. So now create an IP address pool for the Management logical network and reserve an IP address for the network controller service.

<strong>
Create the IP Address pool in the Management logical network:</strong>
<ol>
 	<li>Right-click the Management logical network in VMM and select <strong>Create IP Pool</strong> from the drop down menu.</li>
 	<li>Provide a name and optional description for the IP Pool and ensure that the Management network is selected for the logical network. Click <strong>Next</strong>.</li>
 	<li>On the <strong>Network Site</strong> panel, select the subnet that this IP address pool will service. Click <strong>Next</strong>.</li>
 	<li>On the <strong>IP Address range</strong> panel, type the starting and ending IP addresses.
Important
Don't use the first three IP addresses of your available subnet. For example, if your available subnet is from .1 to .254, start your range at .4 or greater.
In <strong>IP addresses to be reserved for other uses</strong>, type one of the IP addresses from the specified range. This is the IP address that you will later use as the REST IP of the network controller Service. Click <strong>Next</strong>.</li>
 	<li>Next, configure the default gateway address.</li>
 	<li>Optionally configure DNS information.</li>
 	<li>Optionally configure WINS server information, but this is generally not required. Click <strong>Next</strong>.</li>
 	<li>Review the summary information and click <strong>Finish</strong> to complete the wizard.</li>
</ol>
&nbsp;

<strong>Create a Management logical switch</strong>

The Management logical switch needs to be deployed on the network controller host(s) and provides the Management network connectivity to the network controller virtual machines.
<ol>
 	<li>Click <strong>Create Logical Switch</strong> on the ribbon in the VMM Console.</li>
 	<li>Review the Getting Started information and click <strong>Next</strong>.</li>
 	<li>Provide a “<strong>MGMT-LSWITCH”</strong> as the name and optional Description. For the Uplink mode, be sure to select <strong>No Uplink Team</strong>. Click <strong>Next</strong>.</li>
 	<li>For Minimum Bandwidth mode, choose the default option. Click <strong>Next</strong>.</li>
 	<li>Uncheck all the switch extensions in the <strong>Extensions</strong> This is a crucial step as selecting any of the switch extensions at this stage may block network controller on-boarding later.</li>
</ol>
<img width="625" height="472" class="alignnone size-full wp-image-215" style="padding: 1px;background: grey;border: none" alt="18" src="https://msdnshared.blob.core.windows.net/media/2016/10/185.png" />

6. You can add a Virtual Port Profile and choose a Port Classification for Host Management on this page if you want but it is not required. Click <strong>Next</strong> when you're finished.

7. Create a new Uplink Port Profile directly from the Logical Switch wizard. Click <strong>Add</strong> and select <strong>New Uplink Port Profile</strong> from the drop down menu.

8. Provide a name and optional description for your uplink port profile.
<ol>
 	<li>Use the defaults for Load Balancing algorithm and Teaming Mode.</li>
 	<li>Make sure you select all the network sites that are part of the Management logical network you created. Leave the Load Balancing Algorithm as Host Default, and Teaming Mode as Switch Independent.</li>
 	<li>Select the Uplink Port Profile you created and click <strong>New virtual network adapter</strong>. This adds a host virtual network adapter (vNIC) to your logical switch and uplink port profile, so when you add the logical switch to your hosts, the vNICs get added automatically.</li>
 	<li>Provide a name for the vNIC. Verify that the Management VM network is listed under the <strong>Connectivity</strong></li>
 	<li>Select <strong>This network adapter will be used for host management</strong> and then select <strong>Inherit connection settings from the host adapter</strong>. This allows you to take the vNIC adapter settings from the adapter that already exists on the host.</li>
 	<li>If you created a port classification and virtual port profile earlier, you can select it now.</li>
 	<li>Click <strong>Next</strong>.</li>
 	<li>Review the Summary information and click <strong>Finish</strong> to complete the wizard.</li>
</ol>
<strong> </strong>

<strong>Applying a logical switch</strong> <strong>on<strong> HOST01-HOST04 by </strong></strong>
<ol>
 	<li>Click VMs and Services</li>
 	<li>Right click on HOST machine under “All Hosts” group</li>
 	<li>Click on “Virtual Switches” on the left and click on “New Virtual Switch” then Choose the Logical Switch you just created</li>
 	<li>Click on New Virtual Network Adapter to also create a VNIC</li>
</ol>
<img width="759" height="596" class="alignnone size-full wp-image-225" style="padding: 1px;background: grey;border: none" alt="19" src="https://msdnshared.blob.core.windows.net/media/2016/10/195.png" />

&nbsp;

<strong>Import the service template into the VMM library</strong>
<ol>
 	<li>In VMM, navigate to <strong>Library</strong>.</li>
 	<li>In the top of the left pane, in the <strong>Templates</strong> section, select <strong>Service Templates</strong>.</li>
 	<li>In the ribbon at the top, click <strong>Import Template</strong>.</li>
 	<li>Browse to your service template folder, select the <strong>Network Controller Standalone Generation 2 VM.xml</strong> file and follow the prompts to import it.</li>
 	<li>The service template uses the following virtual machine configuration parameters. Update the parameters for your environment as you import the service template.</li>
</ol>
<img width="636" height="420" class="alignnone wp-image-235" style="padding: 1px;background: grey;border: none" alt="20" src="https://msdnshared.blob.core.windows.net/media/2016/10/205.png" />

<strong>Configure and deploy the service</strong>

Use the following procedure to deploy a network controller service instance:
<ol>
 	<li>Select the network controller service template and click <strong>Configure Deployment</strong> to begin. You must type a Service name <strong>“NCService”</strong> and select a destination for the service instance. The destination must map to a Host Group that contains Windows Server RTM hosts and that is going to be managed by network controller.</li>
 	<li>On the left side of the Configure Deployment window, there are several settings that you must configure. The table below summarizes each field's values.</li>
</ol>
<img width="612" height="555" class="alignnone wp-image-245" style="padding: 1px;background: grey;border: none" alt="21" src="https://msdnshared.blob.core.windows.net/media/2016/10/2111.png" />

It is normal for the virtual machine instances to be initially red. Click <strong>Refresh Preview</strong> to have the deployment service automatically find suitable hosts for the virtual machines to be created.

Input Network controller Name as <strong>“SingleNodeNC”</strong>

After you configure these settings, click <strong>Deploy Service</strong> to begin the service deployment job. Deployment times will vary depending on your hardware but are typically between 30 and 60 minutes.

&nbsp;

<strong>Add Network Service wizard</strong>
<ol>
 	<li>Navigate to the <strong>Fabric Node</strong> in the VMM console.</li>
 	<li>Right-click the <strong>Network Service</strong> icon under <strong>Networking</strong> and click <strong>Add Network Service.</strong></li>
 	<li>The <strong>Add Network Service Wizard</strong> Click <strong>Next</strong>.</li>
 	<li>Input “<strong>NCService</strong>” as your network controller Network Service name. Then Click <strong>Next</strong>.</li>
 	<li>Select <strong>Microsoft</strong> for the manufacturer and for model select <strong>Microsoft network controller</strong>. Click <strong>Next</strong>.</li>
 	<li>On the <strong>Credentials</strong> tab, provide the RunAs account you want to use to configure the Network Service. This should be the same account that you included in the network controller Clients group. Click <strong>Next
</strong><strong>SERVERURL=https://SingleNodeNC.SDN.LAB;servicename=NCService</strong></li>
 	<li>On the <strong>Review Certificates</strong> page, a connection is made to the network controller virtual machine to retrieve the certificate. Verify that the certificate shown is the one you expect. Ensure you select the <strong>These certificates have been reviewed and can be imported to the trusted certificate storebox</strong> check box. Click <strong>Next</strong>.</li>
 	<li>On the next screen, click <strong>Scan Provider</strong> to connect to your service and list the properties and their status. This is also a good test of whether or not the service was created correctly, and that you"re using the right connect string to connect to it. Examine the results, and ensure that the property isNetworkController = true is set. When it completes successfully click <strong>Next</strong>.</li>
 	<li>Configure the Host Group in VMM that your network controller will manage. Click <strong>Next</strong>.</li>
 	<li>Click <strong>Finish</strong> to complete the <strong>Add Network Service Wizard</strong>. When the service has been added to VMM, you should see it appear in the Network Services list in the VMM Console, and it should look similar to the following:</li>
</ol>
<img width="1119" height="529" class="alignnone size-full wp-image-255" style="padding: 1px;background: grey;border: none" alt="22" src="https://msdnshared.blob.core.windows.net/media/2016/10/226.png" />

&nbsp;

In case the add Network Service operation fails, please check the job logs in VMM UI for diagnostics and take recommended remedial steps before retrying.

&nbsp;

<strong>Create the HNV Provider network for tenant VM connectivity</strong>

The network controller is connected to the Management network, which is the network used to deploy and manage the network controller through VMM. Next, you need to create the HNV Provider network that is managed by the network controller in your SDN fabric. This network is used to validate that the network controller has been deployed successfully and that tenant virtual machines within same virtual network can ping each other.

<strong>To create HNV Provider logical network</strong>
<ol>
 	<li>Start the <strong>Create Logical Network Wizard</strong>.</li>
 	<li>Type a “<strong>HNV</strong>” as the name and optional description for this network. Click <strong>Next</strong>.</li>
 	<li>On the <strong>Settings</strong> page, verify that <strong>One Connected Network</strong> is selected, since all HNV Provider networks need to have routing and connectivity between all hosts in that network. Ensure you check <strong>Allow new VM networks created on this logical network to use network virtualization</strong>. You will also see a new setting: <strong>Managed by the network controller</strong>. Ensure you check this box, and then click <strong>Next</strong>.</li>
</ol>
<img width="523" height="390" class="alignnone size-full wp-image-265" style="padding: 1px;background: grey;border: none" alt="23" src="https://msdnshared.blob.core.windows.net/media/2016/10/234.png" />

4. On the <strong>Network Site</strong> panel, add the network site information for your HNV Provider network. This should include the Host Group, Subnet and VLAN information for your HNV Provider network. Remember, this network should already exist in your physical network devices and all your SDN fabric hosts should have physical connectivity to it

5. Review the Summary information and complete the wizard.

&nbsp;

<strong>Create the HNV Provider logical network IP address pool</strong>

VMM requires that the HNV Provider logical network has an IP address pool, even if DHCP is available on this network. So, you need to create a static IP address pool that is associated with this logical network.

To create an IP address pool in HNV Provider logical network
<ol>
 	<li>Right-click the HNV Provider logical network in VMM and select <strong>Create IP Pool</strong> from the drop down menu.</li>
 	<li>Provide a name and optional description for the IP Pool and ensure that the HNV Provider logical network is selected for the logical network. Click <strong>Next</strong>.</li>
 	<li>On the <strong>Network Site</strong> panel, you need to select the subnet that this IP address pool will service. If you have more than one subnet as part of your HNV Provider network, you need to create a static IP address pool for each subnet. If you have only one site (for example, like the sample topology) then you can just click <strong>Next</strong>.</li>
 	<li>On the <strong>IP Address range</strong> panel, configure the starting and ending IP address. Click <strong>Next</strong>
Important
Don't use the first three IP addresses of your available subnet. For example, if your available subnet is from .1 to .254, start your range at .4 or greater.</li>
 	<li>Next, configure the default gateway address. Click <strong>Insert</strong> next to the <strong>Default gateways</strong> box, type the address and use the default metric. Click <strong>Next</strong>.</li>
 	<li>Optionally configure DNS information, but this is generally not required.</li>
 	<li>Optionally configure WINS server information, but this is generally not required. Click <strong>Next</strong>.</li>
 	<li>Review the summary information and click <strong>Finish</strong> to complete the wizard.</li>
 	<li>As part of network controller on-boarding, the switch that you deployed on the hosts for the Management logical network connectivity was converted to an SDN switch. This switch can now be used to deploy a network controller managed network including the HNV Provider logical network. Ensure you select the network site corresponding to the HNV Provider logical network in the uplink port profile settings for the Management logical switch.</li>
</ol>
<img width="758" height="572" class="alignnone size-full wp-image-275" style="padding: 1px;background: grey;border: none" alt="24" src="https://msdnshared.blob.core.windows.net/media/2016/10/245.png" />

10. Make sure <strong>HNV_0</strong> and <strong>MGMT_0</strong> are both checked.

&nbsp;

<strong>Validation by finishing following exercise </strong>

<a></a><strong>Exercise Description: </strong><strong>Create a Tenant Virtual Network and VMs</strong>

In this exercise, you will be creating your own tenant virtual network and connecting two VMs to it using System Center Virtual Machine Manager (SCVMM).

The image below gives a high-level view of the topology we will be creating in this exercise.

<img width="837" height="403" class="alignnone wp-image-285" style="padding: 1px;background: grey;border: none" alt="25" src="https://msdnshared.blob.core.windows.net/media/2016/10/253.png" />

<strong>Tasks</strong>
<ol>
 	<li><strong>Open System Center Virtual Machine Manager (SCVMM) Console
</strong>Double-click the Virtual Machine Manager Console icon on the Desktop
Leave default login settings as-is with Server name: <em>localhost:8100|
</em>Click “Connect”</li>
 	<li><strong></strong> <strong>Open the VM Networks and IP Pools Pane
</strong>Click on “VMs and Services” in the bottom-left hand side of the console
Click on “VM Networks” in the “VMs and Services” Pane
Click “VM Networks” in the Ribbon menu</li>
 	<li><strong></strong> <strong>Open Create VM Network Wizard
</strong>Click “Create VM Network” in Ribbon menu</li>
 	<li><strong></strong> <strong>Configure VM Network Name and Description
</strong>Input “CONTOSO” as the name for the virtual network you are creating
Optionally, provide a description for the virtual network
Make sure Logical network is set to <strong><em>HNV
</em></strong>Click “Next”</li>
 	<li><strong></strong> <strong>Select Isolation
</strong>Leave the default radio button selection; “Isolate using Hyper-V network virtualization”
Leave the default IP address protocol for both the VM and logical network as <strong><em>IPv4
</em></strong>Click “Next”</li>
 	<li><strong></strong> <strong>Create VM Subnets
</strong>Click “Add” button
Enter a “Subnet1” as the name for the first VM Subnet
Enter the <em>subnet</em> (IP Prefix) – <strong>192.168.1.0/24</strong> – for the first VM subnet.
You need to make sure to use 192.168.1.0/24 as your first subnet.
Click “Add” button again
Enter a <em>name </em>for the second VM Subnet (E.g. “Subnet2”)
Enter a <em>subnet </em>for the second VM subnet (E.g. 192.168.2.0/24)
Click “Next”</li>
 	<li><strong></strong> <strong>Skip Connectivity Section
</strong>We will not be providing external connectivity for this virtual network through a VPN tunnel, direct routing, or NAT in this exercise.
Click “Next”</li>
 	<li><strong></strong> <strong>Create VM Network
</strong>Click the <em>View Script</em> button to see the SCVMM PowerShell script used to create this network
Click “Finish”</li>
 	<li><strong></strong> <strong>Create an IP Pool
</strong>Right-click the Virtual Network you just created and select “Create IP Pool"</li>
 	<li><strong>10.Specify the IP Address Pool Name and VM Subnet
</strong><em>Note:</em> You will be creating a separate IP Pool for each VM Subnet
Input “Pool1” in the Pool name and optionally provide a description
Ensure the VM Network listed is the VM Network you just created
Select the first “Subnet1” you created
Click “Next”</li>
 	<li><strong>Specify an IP Address Range
</strong>No action is necessary on this page. Click Next.
Leave the Starting and Ending IP addresses as the default
There is no need to reserve an IP addresses for VIPs or other use</li>
 	<li><strong>Specify a Gateway
</strong>No action is necessary on this page. Click Next.
The lowest IP address in the subnet is the default gateway – this will be chosen automatically if field is left blank.</li>
 	<li><strong>Skip Specify a DNS server
</strong>Click “Next”</li>
 	<li><strong>Skip Specify a WINS server
</strong>Click “Next”</li>
 	<li><strong>Create First VM Subnet’s IP Pool
</strong>Click “Finish” to confirm settings and create the IP Pool</li>
 	<li><strong>Create Second VM Subnet’s IP Pool
</strong>Input “Pool2” as the second pool name
Repeat steps 9 – 15, for your second VM Subnet - Subnet2</li>
 	<li><strong>Create a Virtual Machine
</strong>Click “All Hosts” in the “VMs and Services” pane on the left-hand side of the screen
Click “VMs” icon in the Ribbon menu
Click, “Create Virtual Machine” and select “Create Virtual Machine” from the Ribbon menu</li>
 	<li><strong>Select the source for the new Virtual Machine
</strong>Use the default option “Use an existing virtual machine, …” and click “Browse”
Navigate down to the sys-prep Windows Server 2016 VHD you copied to the SCVMM template library in “VHDX TYPE” section and click it, then select “OK”
Click “Next”</li>
 	<li><strong>Specify Virtual Machine Identity
</strong>Input “VM1” as the name for the virtual machine and optionally enter a description.
Make sure “Generation 2” is selected.
Please leave “Turn on shielding support in the virtual machine after deploying it” <strong>unchecked.
</strong>Click “Next”</li>
 	<li><strong>Configure Hardware
</strong>Under “Compatibility,” click the “Hyper-V” profile
Under “General” in the left menu pane, select “Processor” and ensure “number of processors” is set to 2.
Maintain default settings of 2 processors and 2048 MB of memory
Under “Network Adapters,” select “Network Adapter 1”
On the right-hand side of the window under “Connectivity,” select “Connected to a VM network”.
Browse to the “CONTOSO” VM Network you previously created –
Select a VM Subnet attached to the “Subnet1” subnet you previously created
Click “Next”</li>
 	<li><strong>Place the virtual machine on a host
</strong>Click “Next” to skip “Select Destination” step.
Choose the first recommended host on which to deploy this virtual machine
Particularly if you are completing this step for the second time (after reaching step 26 of this exercise), feel free to select a different Hyper-V host – assuming it is recommended with three or more stars - to spread out the VM deployments.
Click “Next”</li>
 	<li><strong>Skip Configure Settings
</strong>Click “Next”</li>
 	<li><strong>Skip Add Properties Section
</strong>Select the “Start the virtual machine after deploying it” checkbox.
Click “Next”</li>
 	<li><strong>Confirm Settings and Deploy VM
</strong>Select the “Start the virtual machine after deploying it” checkbox
Click “Create”
It will take a few minutes to create the virtual machine. Check the Jobs pane to see when deployment is complete.</li>
 	<li><strong>Create another Virtual Machine
</strong>Repeat Steps 17 – 25 above with a different VM Name “VM2” and different Subnet “Subnet2”
For this exercise, please do not create more than two VMs as physical memory and CPU is limited</li>
 	<li><strong>Open a console session to the VMs
</strong>Check the Virtual Machine State for your VMs. If the status says “Stopped”, then right click on the VM, and click “Power On”.
Check the Status of your VMs. After the status of each of your Virtual Machines has changed to “Running” (as opposed to “Creating…”), select “VMs and Services” in the bottom-left hand side of the VMM console
Click on “All Hosts” in the “VMs and Services” pane
Click on “VMs” in the Ribbon menu
Right-click any one of the VMs you just deployed and select “Connect or View” =&gt; “Connect via Console”
Login with password, you setup for the VMs</li>
 	<li><strong>Validate Virtual Network Connectivity in each of your created VMs
</strong>Upon logging in, you may see a Networks pane on the right side. Click on “No”, although it does not matter what you pick.
Right-click the Windows Icon in the Start Menu and click on a “Command prompt (Admin)”.
Type “<em>ipconfig” and press “Enter”
</em>Record the IP Address of the VM.
Open a Console Session in<em> another</em> VM (open console using instructions in Step 26) and open its command prompt.
Ping the first VM from the second VM (or vice-versa). You should receive several replies.</li>
 	<li><strong>Config Firewall policy on both VM1 and VM2 to allow them to Ping each other.
</strong>Run- New-NetFirewallRule -DisplayName “Allow ICMPv4-In” -Protocal ICMPv4</li>
 	<li><strong><strong>Login VM1 one, open CMD to ping VM2 IP to see if it works.</strong></strong></li>
 	<li><strong>Congratulations! You just attached two of your VMs on different subnets to a virtual network. And they can route between each other. In a larger organization, you can create separate virtual networks for different apps and tenants, and they will be completely isolated from each other.</strong></li>
</ol>
<strong> </strong>

&nbsp;]]></content:encoded>
    </item>
  </channel>
</rss>