Hello,
I am wondering if it's possible to get VLanId "64" added to my vswitch (vmkernel vswitch/portgroup). Also how to including gateway address.
Sorry for this silly question, a beginner looking for some help.
Thank you!
To change the VLANid of the VMkernel portgroup you can use
Get-VMHost <ESX-name> | Get-VirtualPortGroup -Name <name-vmkernel-portgroup> | Set-VirtualPortGroup -VLanId 64
To change the VMkernel gateway you can do
Get-VMHostNetwork -VMHost (Get-VMHost <ESX-name>) | Set-VMHostNetwork -VMKernelGateway <IP-address>
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
To change the VLANid of the VMkernel portgroup you can use
Get-VMHost <ESX-name> | Get-VirtualPortGroup -Name <name-vmkernel-portgroup> | Set-VirtualPortGroup -VLanId 64
To change the VMkernel gateway you can do
Get-VMHostNetwork -VMHost (Get-VMHost <ESX-name>) | Set-VMHostNetwork -VMKernelGateway <IP-address>
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you LucD.