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 VLAN ID to a port group of a virtual switch using the New-VirtualPortGroup
cmdlet, using the VLanId
switch.
We can remove a port group using the Remove-VirtualPortGroup
cmdlet and change the properties of an existing virtual switch using the...