How to Create VIP Templates for Network Load Balancing (NLB) in VMM
Updated: May 13, 2016
Applies To: System Center 2012 SP1 - Virtual Machine Manager, System Center 2012 R2 Virtual Machine Manager, System Center 2012 - Virtual Machine Manager
You can use the following procedure to create a virtual IP (VIP) template for Microsoft Network Load Balancing (NLB) in Virtual Machine Manager (VMM). A virtual IP template contains load balancer-related configuration settings for a specific type of network traffic. For example, you could create a template that specifies the load balancing behavior for HTTPS traffic on port 443.
When a user creates a service, they can select a virtual IP template to use when they want to load balance a service tier. For more information, see Configuring Load Balancing in VMM Overview.
In service tiers running Linux, or with VM networks configured with network virtualization, you cannot use NLB. If load balancing is needed for such networks, use hardware load balancing. For more information about hardware load balancing, see Configuring Load Balancing in VMM Overview.
To create a virtual IP template for NLB
Open the Fabric workspace.
In the Fabric pane, expand Networking, and then click VIP Templates.
On the Home tab, in the Show group, click Fabric Resources.
On the Home tab, in the Create group, click Create VIP Template.
The Load Balancer VIP Template Wizard starts.
On the Name page, enter the following information, and then click Next.
The template name and description.
The virtual IP port to use. The virtual IP port is the port that is used for the type of network traffic that you want to load balance.
For example, enter the name Web tier (HTTPS traffic-NLB), and a description of Uses NLB to load balance HTTPS traffic to production Web servers. Enter the virtual IP port
On the Type page, do the following, and then click Next:
In the Manufacturer list, click Microsoft.
By default, in the Model list, Network Load Balancing (NLB) is listed.
On the Protocol page, click the protocol that you want to create the virtual IP template for, and then click Next. You can select TCP, UDP or Both TCP and UDP.
On the Persistence page, you can select the Enable persistence check box to enable session persistence (also known as affinity). If you enable persistence, the load balancer will always try to direct the same client to the same virtual machine that is behind the load balancer. This is based on the source IP address and the subnet mask.
If you select the Enable persistence check box, accept the default value of Source IP in the Persistence type list. In the Subnet mask to apply list, click either of the following options:
Single. If you select this option, NLB directs multiple requests from the same client IP address to the same host in the NLB cluster.
Network. If you select this option, NLB directs multiple requests from the same TCP/IP Class C address range to the same host in the NLB cluster. This setting ensures that clients that use multiple proxy servers to access the NLB cluster have their TCP or UDP connections directed to the same host in the NLB cluster.
When you deploy a service where a tier is configured to use NLB, VMM automatically creates the NLB host cluster. For more information about how to configure a service tier to use NLB, including the guest operating system requirements, see How to Configure NLB for a Service Tier.
When you are finished, click Next.
On the Summary page, review the settings, and then click Finish.
The Jobs dialog box appears. Make sure that the job has a status of Completed, and then close the dialog box.
Verify that the virtual IP template that you added appears in the VIP Templates pane.