Managing port groups

So far, we have created standard and distributed virtual switches as well as checked how to configure the different aspects of networking ESXi hosts. Now, we will take a look at how we can configure port groups in virtual switches. We will start with the different cmdlets that we can use to configure port groups for standard switches, and then we will check the port groups of distributed switches.

The cmdlets related to standard switches are as follows:

  • Get-VirtualPortGroup
  • New-VirtualPortGroup
  • Remove-VirtualPortGroup
  • Set-VirtualPortGroup

As the name suggests, we can get details of the Get-VirtualPortGroup cmdlet and create a new one with the New-VirtualPortGroup cmdlet. We will start with creating a new port group.

We can add a ...

Get Mastering 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.