<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vMotion TCP/IP Stack- Created by Powercli in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690255#M92691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code works, but the vmotion portgroup is created on a local Switch, how can it be created into a Distributed Switch (vDS)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to use similar powercli sintax, searching into esxcli commands to use a DsWitch, without success.&amp;nbsp; Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 19:10:00 GMT</pubDate>
    <dc:creator>alpatio</dc:creator>
    <dc:date>2017-03-21T19:10:00Z</dc:date>
    <item>
      <title>vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690239#M92675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone successfully automated the creation of the vMotion TCP/IP Stack on each host and then the creation of the vMotion VMK utilizing the newly created stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Cliff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 13:51:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690239#M92675</guid>
      <dc:creator>cliffcahill</dc:creator>
      <dc:date>2015-09-11T13:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690240#M92676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'd be looking for the New-VirtualSwitch and the New-VMHostNetworkAdapter/&lt;SPAN style="font-size: 13.3333px;"&gt;Set-VMHostNetworkAdapter &lt;/SPAN&gt;cmdlets if you are looking to do this on a standard switch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest starting your reading with those - I found the examples quite informative.&amp;nbsp; Give that a try and report back if you run into problems - remember to post what commands you've tried.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 19:26:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690240#M92676</guid>
      <dc:creator>tjurgens</dc:creator>
      <dc:date>2015-09-11T19:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690241#M92677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;tjurgens&lt;/B&gt;‌&lt;SPAN style="color: #a9a9a9; font-family: proxima-nova, Arial, sans-serif; font-size: 12px; line-height: 1.5em; background-color: #f2f2f2;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply - I have no issue creating vMotion on the any &lt;SPAN style="font-size: 13.3333px;"&gt;vSphere &lt;/SPAN&gt;version that is Pre 6.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue only arises when i need to create and new TCP/IP stack and assign that stack to the vMotion VMK - This is to allow for L3 vMotion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is sample of what i used to create vMotion VMk currently on anything pre vSphere6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;##########################################################&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# Add vMotion VMkernel port for all servers in a cluster&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;##########################################################&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# VERSION - 1.2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;param(&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Parameter(Mandatory=$true)]$vcenter,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $Subnet = "255.255.255.0",&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $vMotionVLAN = "25",&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $vMotionName = "Vmotion",&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $vmotion_ip_start = "192.168.25.100",&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $VMhost ="*",&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $clusterName = '*'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;##########################################################&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$server = connect-viserver $vcenter&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# Start Creating vMotion Network #############################&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$vmotion_ip_start_int=$vmotion_ip_start.split('.')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$vmotion_ip_start_int=[int]$vmotion_ip_start_int[3]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Write-Host -ForegroundColor Yellow "Start Creating vMotion Network".ToUpper()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ForEach ($VMhostname in ($cluster | Get-VMHost -name $VMhost)| sort) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if ($VMhostname | Get-VMHostNetworkAdapter -VMKernel | where {$_.PortGroupName -match $vMotionName}) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Write-host -ForegroundColor yellow "WARNING : $VMhostname already has a VMkernel port named $vMotionName - Skipping"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; else {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; write-host -ForegroundColor green "Creating vMotion port group for $VMhostname"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $netIP = $vmotion_ip_start.split('.')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $IP = $netIP[0] + '.' + $netIP[1] + '.' + $netIP[2] + '.' + $vmotion_ip_start_int&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $null = New-VMHostNetworkAdapter -VMHost $VMhostname -PortGroup $vMotionName -VirtualSwitch $(Get-VirtualSwitch -VMHost $VMhostname) -IP $IP -SubnetMask $Subnet -VMotionEnabled $true&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $null = Get-VirtualPortGroup -Name $vMotionName -VMHost $VMhostname | Set-VirtualPortGroup -VLanId $vMotionVLAN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; $vmotion_ip_start_int = $vmotion_ip_start_int +1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Write-Host -ForegroundColor Green "End Creating vMotion Network".ToUpper()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# End Creating vMotion Network ###############################&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 10:47:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690241#M92677</guid>
      <dc:creator>cliffcahill</dc:creator>
      <dc:date>2015-09-16T10:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690242#M92678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;cliffcahill&lt;/B&gt;‌, I don't see any flaws in your script, but I do not have any ESXi 6/vCenter 6 environments to test on.&amp;nbsp; Do you get any errors?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 15:29:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690242#M92678</guid>
      <dc:creator>tjurgens</dc:creator>
      <dc:date>2015-09-16T15:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690243#M92679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script works fine one vSphere 6.0 aswell - I'm looking to update it in order to do all the new vMotion L3 Enhancements that were released in vSphere6.0 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 15:33:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690243#M92679</guid>
      <dc:creator>cliffcahill</dc:creator>
      <dc:date>2015-09-16T15:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690244#M92680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you updated your PowerCLI to the latest version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pubs.vmware.com/Release_Notes/en/powercli/60r2/powercli60r2-releasenotes.html" title="http://pubs.vmware.com/Release_Notes/en/powercli/60r2/powercli60r2-releasenotes.html"&gt;VMware vSphere PowerCLI 6.0 Release 2 Release Notes&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 19:24:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690244#M92680</guid>
      <dc:creator>vbrad6841</dc:creator>
      <dc:date>2015-09-16T19:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690245#M92681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep i had a look through the release notes . No New relevant cmdlets unfortunately . I might have a look to complete it by using the ESXCLI in host install KS script &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@D171507CB0E0B5EC481A1762311D7DA8/emoticons/1f615.png" alt=":confused_face:" title=":confused_face:" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 14:18:45 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690245#M92681</guid>
      <dc:creator>cliffcahill</dc:creator>
      <dc:date>2015-09-17T14:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690246#M92682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last I looked at this from a CLI perspective it was still only supported via the vSphere web interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 16:16:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690246#M92682</guid>
      <dc:creator>vbrad6841</dc:creator>
      <dc:date>2015-09-17T16:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690247#M92683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also can not find parameters on PowerCli commandlets for host network config to support this new features, but I successfully did this task with get-esxcli:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$vmhost = Get-VMHost &amp;lt;hostname&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$esxcli= Get-EsxCli -VMHost $vmhost&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#adding new portgroup for vmkernel traffic&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$vmhost | Get-VirtualSwitch -Name "vSwitch0" | New-VirtualPortGroup "vmk_vmotion1" -VLanId &amp;lt;VLAN&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#adding new network stack&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$esxcli.network.ip.netstack.add($false, "vmotion")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#adding new vmkernel interface to new stack&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$esxcli.network.ip.interface.add($null, $null, "vmk1", $null, $null, "vmotion", "vmk_vmotion1")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#configuring vmk1 to use dhcp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$esxcli.network.ip.interface.ipv4.set("vmk1", $null, $null, $null, "dhcp")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can archive same result using esxcli directly on the ESXi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;esxcli network ip netstack add -N vmotion&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;esxcli network vswitch standard portgroup add -p &lt;SPAN style="font-size: 13.3333px;"&gt;vmk_vmotion1 &lt;/SPAN&gt;-v vSwitch0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;esxcli network vswitch standard portgroup set -p &lt;SPAN style="font-size: 13.3333px;"&gt;vmk_vmotion1 &lt;/SPAN&gt;-v &amp;lt;VLAN&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;esxcli network ip interface add -i vmk1 -N vmotion -p &lt;SPAN style="font-size: 13.3333px;"&gt;vmk_vmotion1&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;esxcli network ip interface ipv4 set -i vmk1 -t dhcp&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 09:00:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690247#M92683</guid>
      <dc:creator>inok</dc:creator>
      <dc:date>2015-11-26T09:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690248#M92684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get-esxcli is a good option.&lt;/P&gt;&lt;P&gt;However it is also possible to use directly the API via PowerCLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To associate a new VMkernel interface to the default VMotion stack&lt;/P&gt;&lt;P&gt;The &lt;A href="http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.wssdk.apiref.doc/vim.host.NetworkSystem.html"&gt;HostNetworkSystem&lt;/A&gt; has a method AddVirtualNic&lt;/P&gt;&lt;P&gt;This AddVirtualNic needs a &lt;A href="http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.host.VirtualNic.Specification.html"&gt;HostVirtualNicSpec&lt;/A&gt; as a parameter.&lt;BR /&gt;The HostVirtualNicSpec has a property &lt;A href="http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.host.NetStackInstance.SystemStackKey.html"&gt;netStackInstanceKey&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use there "vmotion" instead of "defaultTcpipStack"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should also be possible to modify or add a new network stack.&lt;/P&gt;&lt;P&gt;The &lt;A href="http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.wssdk.apiref.doc/vim.host.NetworkSystem.html"&gt;HostNetworkSystem&lt;/A&gt; has a method UpdateNetworkConfig&lt;/P&gt;&lt;P&gt;It needs as a parameter &lt;A href="http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.wssdk.apiref.doc/vim.host.NetworkConfig.html"&gt;HostNetworkConfig&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This object has a property netStackSpec of type&lt;A href="http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.host.NetworkConfig.NetStackSpec.html"&gt; HostNetworkConfigNetStackSpec&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And in it netStackInstance of type &lt;A href="http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fvim.host.NetStackInstance.html"&gt;HostNetStackInstance&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 23:29:04 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690248#M92684</guid>
      <dc:creator>ccalvetTCC</dc:creator>
      <dc:date>2015-11-26T23:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690249#M92685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe you are still working on this topic. So&lt;/P&gt;&lt;P&gt;I have created a short script which creates a vmkernel port with vmotion stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$vmHost = Get-VMHost -Name "esxName"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$portgoup = Get-VirtualPortGroup -Name "Management"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$nic = New-Object VMware.Vim.HostVirtualNicSpec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$distributedVirtualPort = New-Object VMware.Vim.DistributedVirtualSwitchPortConnection&lt;/P&gt;&lt;P&gt;$nic.distributedVirtualPort = $distributedVirtualPort&lt;/P&gt;&lt;P&gt;$nic.distributedVirtualPort.portgroupKey = $portgoup.key&lt;/P&gt;&lt;P&gt;$nic.distributedVirtualPort.switchUuid = $portgoup.VirtualSwitch.key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$nic.netStackInstanceKey = 'vmotion'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ip = New-Object VMware.Vim.HostIpConfig&lt;/P&gt;&lt;P&gt;$ip.subnetMask = '255.255.255.0'&lt;/P&gt;&lt;P&gt;$ip.ipAddress = '192.168.0..10&lt;/P&gt;&lt;P&gt;$ip.dhcp = $false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ip.ipV6Config = New-Object VMware.Vim.HostIpConfigIpV6AddressConfiguration&lt;/P&gt;&lt;P&gt;$ip.ipV6Config.dhcpV6Enabled = $false&lt;/P&gt;&lt;P&gt;$ip.ipV6Config.autoConfigurationEnabled = $false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ip.IpV6Config = $ipV6Config&lt;/P&gt;&lt;P&gt;$nic.Ip = $ip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$networkSystem = $vmHost.ExtensionData.configManager.NetworkSystem &lt;/P&gt;&lt;P&gt;$_this = Get-view -Id ($networkSystem.Type + "-" + $networkSystem.Value)&lt;/P&gt;&lt;P&gt;$_this.AddVirtualNic('', $nic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the related documentation here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.wssdk.apiref.doc/vim.host.VirtualNic.Specification.html#field_detail" title="http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.wssdk.apiref.doc/vim.host.VirtualNic.Specification.html#field_detail"&gt;vSphere 6.0 Documentation Center&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 12:23:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690249#M92685</guid>
      <dc:creator>MPaeth</dc:creator>
      <dc:date>2016-03-07T12:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690250#M92686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let Me test this and ill get back to you . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 19:12:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690250#M92686</guid>
      <dc:creator>cliffcahill</dc:creator>
      <dc:date>2016-04-12T19:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690251#M92687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution provided by inok works great for standard vSwitches and port groups! Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 21:30:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690251#M92687</guid>
      <dc:creator>JasonOgle</dc:creator>
      <dc:date>2016-05-10T21:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690252#M92688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution provided by MPaeth works great for distributed vSwitches and port groups! Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 21:32:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690252#M92688</guid>
      <dc:creator>JasonOgle</dc:creator>
      <dc:date>2016-05-10T21:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690253#M92689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;I also can not find parameters on PowerCli commandlets for host network config to support this new features, but I successfully did this task with get-esxcli:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;$vmhost = Get-VMHost &amp;lt;hostname&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;$esxcli= Get-EsxCli -VMHost $vmhost&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;#adding new portgroup for vmkernel traffic&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;$vmhost | Get-VirtualSwitch -Name "vSwitch0" | New-VirtualPortGroup "vmk_vmotion1" -VLanId &amp;lt;VLAN&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;#adding new network stack&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;$esxcli.network.ip.netstack.add($false, "vmotion")&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;#adding new vmkernel interface to new stack&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;$esxcli.network.ip.interface.add($null, $null, "vmk1", $null, $null, "vmotion", "vmk_vmotion1")&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;#configuring vmk1 to use dhcp&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;$esxcli.network.ip.interface.ipv4.set("vmk1", $null, $null, $null, "dhcp")&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Also you can archive same result using esxcli directly on the ESXi:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;esxcli network ip netstack add -N vmotion&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;esxcli network vswitch standard portgroup add -p &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vmk_vmotion1 &lt;/SPAN&gt;-v vSwitch0&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;esxcli network vswitch standard portgroup set -p &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vmk_vmotion1 &lt;/SPAN&gt;-v &amp;lt;VLAN&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;esxcli network ip interface add -i vmk1 -N vmotion -p &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vmk_vmotion1&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 2px 2px 0; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;SPAN style="font-weight: inherit; font-size: inherit; font-family: inherit;"&gt;&lt;EM&gt;esxcli network ip interface ipv4 set -i vmk1 -t dhcp&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok so this creates a new Custom TCP/IP stack.&amp;nbsp; Do you know how to get this to work using the existing vMotion stack listed under System stacks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: configuring this on vSwitch0 and not a distributed switch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 14:21:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690253#M92689</guid>
      <dc:creator>adamjg</dc:creator>
      <dc:date>2016-05-26T14:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690254#M92690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its been a&amp;nbsp; while but here is some updates to the syntax that is working for me . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write-host -ForeGroundColor green "Setting Up Network on Host1"&lt;/P&gt;&lt;P&gt;$esxcli = Get-EsxCli -VMHost &lt;SPAN style="font-size: 13.3333px;"&gt;Host1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;write-host -ForeGroundColor green "Adding portgroup &lt;SPAN style="font-size: 13.3333px;"&gt;Esx-l3vmotion&lt;/SPAN&gt; to vSwitch0"&lt;/P&gt;&lt;P&gt;$esxcli.network.vswitch.standard.portgroup.add("Esx-l3vmotion", "vSwitch0")&lt;/P&gt;&lt;P&gt;write-host -ForeGroundColor green "Setting Portgroup &lt;SPAN style="font-size: 13.3333px;"&gt;Esx-l3vmotion&lt;/SPAN&gt; to vSwitch0"&lt;/P&gt;&lt;P&gt;$esxcli.network.vswitch.standard.portgroup.set("&lt;SPAN style="font-size: 13.3333px;"&gt;Esx-l3vmotion&lt;/SPAN&gt;", "117")&lt;/P&gt;&lt;P&gt;write-host -ForeGroundColor green "Adding vmotion stack to portgroup"&lt;/P&gt;&lt;P&gt;$esxcli.network.ip.netstack.add($false, "vmotion")&lt;/P&gt;&lt;P&gt;write-host -ForeGroundColor blue "Creating &lt;SPAN style="font-size: 13.3333px;"&gt;Esx-l3vmotion&lt;/SPAN&gt; VMKernal on vSwitch0 with VMK Number vmk2"&lt;/P&gt;&lt;P&gt;$esxcli.network.ip.interface.add($null, $null, "vmk2", $null, "1500", "vmotion", "&lt;SPAN style="font-size: 13.3333px;"&gt;Esx-l3vmotion&lt;/SPAN&gt;")&lt;/P&gt;&lt;P&gt;write-host -ForeGroundColor yellow "Assigning 10.10.117.10 to &lt;SPAN style="font-size: 13.3333px;"&gt;Esx-l3vmotion&lt;/SPAN&gt; on vSwitch0"&lt;/P&gt;&lt;P&gt;$esxcli.network.ip.interface.ipv4.set("vmk2", "&lt;SPAN style="font-size: 13.3333px;"&gt;10.10.117.10&lt;/SPAN&gt;","255.255.255.0", $null, "static")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 14:54:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690254#M92690</guid>
      <dc:creator>cliffcahill</dc:creator>
      <dc:date>2016-09-15T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: vMotion TCP/IP Stack- Created by Powercli</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690255#M92691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code works, but the vmotion portgroup is created on a local Switch, how can it be created into a Distributed Switch (vDS)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to use similar powercli sintax, searching into esxcli commands to use a DsWitch, without success.&amp;nbsp; Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 19:10:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vMotion-TCP-IP-Stack-Created-by-Powercli/m-p/2690255#M92691</guid>
      <dc:creator>alpatio</dc:creator>
      <dc:date>2017-03-21T19:10:00Z</dc:date>
    </item>
  </channel>
</rss>

