Book Image

Learning PowerCLI for VMware VSphere

By : Robert van den Nieuwendijk
Book Image

Learning PowerCLI for VMware VSphere

By: Robert van den Nieuwendijk

Overview of this book

Table of Contents (17 chapters)
Learning PowerCLI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using standard port groups


Port groups are collections of ports that have the same properties, such as the same virtual switch, VLAN ID, Teaming policy, policies for filtering, tagging, and traffic shaping. Port groups are identified by a network label name. You should give all port groups in a datacenter, which are connected to the same network, the same network label. This will make virtual machine configurations portable across hosts. Using the vSphere PowerCLI cmdlets, you can only specify a network label name for the port group and a VLAN ID.

Note

A Virtual Local Area Network (Virtual LAN or VLAN) is a virtual computer network independent of physical location. All the computers in a VLAN can receive broadcasts from the others and are usually in the same IP subnet.

Creating standard port groups

The New-VirtualPortGroup cmdlet will create a new port group for a vSphere Standard Switch. The syntax of this cmdlet is as follows:

New-VirtualPortGroup [-Name] <String> [-VirtualSwitch] &lt...