Using distributed virtual port groups

In this section, you will learn how to use port groups on Distributed Virtual Switches.

Creating distributed virtual port groups

You can use the New-VDPortgroup cmdlet to create distributed virtual port groups from scratch, from the reference port groups, or from an export of a Distributed Virtual Switch. The syntax of the New-VDPortgroup cmdlet is as follows:

New-VDPortgroup [-VDSwitch] <VDSwitch> -Name <String> [-Notes <String>] [-NumPorts <Int32>] [-VlanId <Int32>] [-VlanTrunkRange <VlanRangeList>] [-PortBinding <DistributedPortGroupPortBinding>] [-RunAsync] [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
New-VDPortgroup [-VDSwitch] <VDSwitch> [-Name <String>] -ReferencePortgroup <VDPortgroup> ...

Get Learning PowerCLI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.