Reader small image

You're reading from  Mastering PowerCLI

Product typeBook
Published inOct 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781785286858
Edition1st Edition
Languages
Right arrow
Author (1)
Sajal Debnath
Sajal Debnath
author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath

Right arrow

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

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering PowerCLI
Published in: Oct 2015Publisher: PacktISBN-13: 9781785286858

Author (1)

author image
Sajal Debnath

Sajal Debnath is a highly certified Cloud computing technocrat with more than 12 years of experience in virtualized data center design, Cloud computing, and BC/DR solutions. He is an EMCISA, VCAP-DCD/DCA, VCAP-CID/CIA, RHCE 4/5/6, RHCVA, Openstack, and ITIL certified person. He is presently associated with VMware Software India Pvt. Ltd. as a senior system engineer. Previously, he worked with France Telecom, Hewlett Packard, and many more in multiple roles. He is involved in prestigious Indian government projects, such as National Cloud, Digital Locker, and so on.
Read more about Sajal Debnath