7.0

Table Of Contents
The network label cmdlet obtains the network labels configured in vCenter Server for all the ESXi hosts in
the specified cluster, sets the maximum number of virtual machines that can be provisioned with IP
addresses from each network label, and exports the list of NICs and network labels to the network label
configuration file.
Example: Obtaining NIC and Network Label Information
In this example, the Export-NetworkLabelSpecForLinkedClone cmdlet obtains NICs from the Win7-Parent
virtual machine and Snapshot1, and network label information from Cluster1. A maximum of 244 virtual
machines can be provisioned with IP addresses from each network label. The information is exported to a
network label configuration file named C:/label.txt.
Export-NetworkLabelSpecForLinkedClone -vc_id 1a2b3c4d-5e6f
-clusterPath "/myresourcepool/host/Cluster1/"
-parentVMPath "/myresourcepool/vm/Win7-Parent" -parentSnapshotPath "/snapshot1"
-maxVMsPerNetworkLabel 244 -networkLabelConfigFile "C:/label.txt"
What to do next
Verify and edit the network label configuration file. See “Verify and Edit a Network Label Configuration
File,” on page 55.
Verify and Edit a Network Label Configuration File
After you generate a network label configuration file, you must verify its contents and edit it to specify the
NIC and network label pairings to assign to the pool.
Prerequisites
n
Generate a network label configuration file. See “Obtain and Export NIC and Network Label
Information,” on page 54.
n
Become familiar with the network label configuration file format. See “Network Label Configuration
File Format,” on page 52.
Procedure
1 In a text editor, open the network label configuration file.
2 For each NIC and network label pairing that you want to assign to the pool, remove the comments (###
marks).
3 Verify that each network label is assigned to only one NIC.
4 Verify that only one type of network label is used for the pool.
A NIC can be configured with a standard network switch or distributed virtual network switch.
5 Save your changes.
Example: Edited Network Label Configuration File
In this example, network06 and network07 are assigned to nic1 (Network adapter 1) and network08 and
network09 are assigned to nic2 (Network adapter 2). network01 through network05 remain commented and
are not used. This configuration can support a pool of up to 488 virtual machines.
#Network Label Configuration Spec
...
#Network Label Attribute Definition
#Expected format:
#<nic_param>.<network_param>.maxvm=<max vm for network label>
Chapter 3 Using View PowerCLI
VMware, Inc. 55