<?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: Set gateway for netstack instance via esxcli in vSphere Command-Line Interface Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/Set-gateway-for-netstack-instance-via-esxcli/m-p/1390811#M689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As i mentioned "-g gateway IP" only works for vSphere 6.5 but not for 6.0. But I've found entries in file /etc/vmware/esx.conf but there are so many related to the corresponding vmk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2017 08:55:29 GMT</pubDate>
    <dc:creator>EagleB5</dc:creator>
    <dc:date>2017-12-20T08:55:29Z</dc:date>
    <item>
      <title>Set gateway for netstack instance via esxcli</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/Set-gateway-for-netstack-instance-via-esxcli/m-p/1390809#M687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to set a gateway via esxcli (kickstart script) for a netstack instance (vSphere 6.0 and above)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I've done yet:&lt;/P&gt;&lt;P&gt;esxcli network ip netstack add -N vmotion&lt;/P&gt;&lt;P&gt;esxcli network ip interface add -i vmk1 -p "pgName" -N vmotion&lt;/P&gt;&lt;P&gt;esxcli network ip interface ipv4 set -i vmk1 -t static -I 172.16.10.210 -N 255.255.255.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to set a default gateway for netstack "vmotion". I know the -g parameter while setting ip Interface for vSphere 6.5 but it's not working here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 13:43:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/Set-gateway-for-netstack-instance-via-esxcli/m-p/1390809#M687</guid>
      <dc:creator>EagleB5</dc:creator>
      <dc:date>2017-12-07T13:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set gateway for netstack instance via esxcli</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/Set-gateway-for-netstack-instance-via-esxcli/m-p/1390810#M688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried:&lt;/P&gt;&lt;P&gt;esxcli network ip interface ipv4 set –i &lt;VAR class="keyword varname"&gt;vmknic&lt;/VAR&gt; -t static –g &lt;VAR class="keyword varname"&gt;gateway&lt;/VAR&gt; -I &lt;VAR class="keyword varname"&gt;IP address&lt;/VAR&gt; -N &lt;VAR class="keyword varname"&gt;mask&lt;/VAR&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 16:35:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/Set-gateway-for-netstack-instance-via-esxcli/m-p/1390810#M688</guid>
      <dc:creator>mhampto</dc:creator>
      <dc:date>2017-12-11T16:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set gateway for netstack instance via esxcli</title>
      <link>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/Set-gateway-for-netstack-instance-via-esxcli/m-p/1390811#M689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As i mentioned "-g gateway IP" only works for vSphere 6.5 but not for 6.0. But I've found entries in file /etc/vmware/esx.conf but there are so many related to the corresponding vmk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 08:55:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Command-Line-Interface/Set-gateway-for-netstack-instance-via-esxcli/m-p/1390811#M689</guid>
      <dc:creator>EagleB5</dc:creator>
      <dc:date>2017-12-20T08:55:29Z</dc:date>
    </item>
  </channel>
</rss>

