VMware Cloud Community
sdspin
Contributor
Contributor
Jump to solution

addinv VLanId in New-VirtualPortgroup

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!

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
sdspin
Contributor
Contributor
Jump to solution

Thank you LucD.

Reply
0 Kudos