Q: How do I use a logical network in System Center Virtual Machine Manager 2012?
These 3 main steps help you create and use a logical network in System Center Virtual Machine Manager (SCVMM) 2012.
February 23, 2012
A: There are three main steps to using a logical network. First, you need to actually create it:
Start the Virtual Machine Manager 2012 administration tool.
Open the Fabric workspace.
Navigate to Networking, Logical Networks.
Create a new Logical Network using the Create Logical Network action.
Give a name and description for the new logical network, and click Next.
The next step is to create sites that represent the logical network. A site consists of VLAN and subnets that are written in the CIDR format (e.g., 192.168.1.0/24 for network 192.168.1.0 with a subnet mask of 255.255.255.0). You would add sites for each location that this logical network exists at, such as all your data centers and the host groups that represent the network site. For example, if I had three data centers, I would add three sites, one for each data center, and set the IP subnet and VLAN ID for the network at each location.
The IP subnet is optional, and you can use only the VLAN ID; or if you aren’t using VLANs, then set the VLAN to a value of 0, which disables VLAN. If you don’t specify an IP subnet and just specify the VLAN ID, then the virtual machines (VMs) will use DHCP to get IP addresses.
Click Next. In the screen shot below, you can see for the London site that only a London host group can use it; for the Allen site, only the Allen host group can use it, and the same for New York.
A summary is displayed, then click Finish.
After the logical network is created, IP pools are created for each site. These are IP addresses that can be given to the VMs when created in the various sites, acting like a mini DHCP service for the VMs. However, these VMs should be given fixed IP addresses, which are needed if the VMs are part of a load-balanced scenario.
Select the logical network in the Virtual Machine Manager console and select the Create IP Pool action.
Give a name and description for the new IP pool, and select the logical network the IP Pool will belong to. Click Next.
Select the network site that this IP pool will be attached to (or you can create a new site). Click Next. (See screen shot below.)
Specify the IP range that will be part of this pool. It’s also possible to reserve certain IP addresses from those ranges such as for load balancer Virtual IPs (VIP). Specify the required values, and click Next. (See screen shot below.)
Specify the Gateway IP address and click Next.
Enter the DNS servers and DNS suffixes and click Next.
Enter WINS information (if any) and click Next.
Click Finish on the Summary to complete the pool creation. (See screen shot below.)
Next, on the virtualization hosts you need to specify which NICs in the server have connectivity to the logical networks. You need to perform this on all the hosts in the various data centers that will have VMs deployed from the templates that use the logical network.
In the Fabric workspace, navigate to Servers, .
Select your virtualization host (such as your Hyper-V server), and open its properties.
Select the Hardware node.
Scroll down to the Network Adapters.
Select the network adapter that you want to specify as connected to the logical network.
Select the logical network in the available list. (See screen shot below.)
You can also click the Advanced button on the NIC properties. It lets you configure the mode of the switch port the NIC is connected to (Trunk or Access) and also specify which IP subnets associated with the logical network should be used by this host (which should be set automatically based on the sites you previously created and the host groups the sites were associated with). The switch mode (Trunk/Access) is dependent on the configuration of the switch port your NIC is connected to and should match. Although Access mode is the default on physical switches, any VLAN IDs are stripped off the packets and the port is locked to a specific VLAN set on the port. This means the VLAN ID on the VMs and the virtual network must match or the traffic won’t have external host access. With Trunk mode, multiple VLAN IDs can share the same physical NIC and switch. Thus if you have multiple VLANs on a single NIC, then you need the physical switch port to be configured as Trunk mode and the VLAN IDs that will be supported on the port. (See screen shot at this link.)
scvmm2012logicalnetwork7-CopyClick OK to all dialog boxes to complete the configuration.
Finally in the virtual machine (VM) template, specify the logical network for the connectivity.
In the Library workspace, navigate to Templates, VM Templates.
Select the properties of the template.
Select the Hardware Configuration node.
Select the Network Adapter, and under connectivity select the logical network that was created and click OK. See screen shot below.
scvmm2012logicalnetwork6-Copy
Your environment is now set up for logical network use!
Got technology issues? We've got technology answers. Check out John Savill's FAQs for Windows.
About the Author
You May Also Like