<?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: Add-NaNetVlan and Set-NaNetInterface corrupt /etc/hosts in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NaNetVlan-and-Set-NaNetInterface-corrupt-etc-hosts/m-p/57339#M2695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Support discovered that this is a bug in the underlying ZAPI call and therefore in Ontap. It will be fixed in some future release of Data ONTAP. See&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.netapp.com/NOW/cgi-bin/bol?Type=Detail&amp;amp;Display=710228" title="http://support.netapp.com/NOW/cgi-bin/bol?Type=Detail&amp;amp;Display=710228" target="_blank"&gt;http://support.netapp.com/NOW/cgi-bin/bol?Type=Detail&amp;amp;Display=710228&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 16:27:57 GMT</pubDate>
    <dc:creator>hland</dc:creator>
    <dc:date>2013-05-24T16:27:57Z</dc:date>
    <item>
      <title>Add-NaNetVlan and Set-NaNetInterface corrupt /etc/hosts</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NaNetVlan-and-Set-NaNetInterface-corrupt-etc-hosts/m-p/57335#M2694</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;I'm working on a solution to manipulate network configurations in Ontap. However, I found that the cmdlets Add-NaNetVlan and Set-NaNetInterface corrupt the /etc/hosts file on the storage system. Here's what I'm doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial hosts file looks like this (lab system)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #999999;"&gt;#Auto-generated by zapi_net_config Fri Apr 26 08:34:37 CEST 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #999999;"&gt;127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost-stack&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #999999;"&gt;127.0.10.1&amp;nbsp;&amp;nbsp; localhost-10 localhost-bsd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #999999;"&gt;127.0.20.1&amp;nbsp;&amp;nbsp; localhost-20 localhost-sk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #999999;"&gt;::1 localhost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #999999;"&gt;192.168.31.2&amp;nbsp;&amp;nbsp; labfiler01 labfiler01-e0a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #999999;"&gt;1.2.3.4&amp;nbsp;&amp;nbsp; labfiler01-e1a-222&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #999999;"&gt;1.2.3.5&amp;nbsp;&amp;nbsp; labfiler01-e1b-226&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #999999;"&gt;1.2.3.7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;labfiler01-e1a-223&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in run Add-NaNetVlan -Interface e1b -Vlans 229&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The /etc/hosts now looks like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #808080;"&gt;#Auto-generated by zapi_net_config Fri Apr 26 09:33:40 CEST 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #808080;"&gt;127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost-stack&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #808080;"&gt;127.0.10.1&amp;nbsp;&amp;nbsp; localhost-10 localhost-bsd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #808080;"&gt;127.0.20.1&amp;nbsp;&amp;nbsp; localhost-20 localhost-sk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #808080;"&gt;::1 localhost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #808080;"&gt;192.168.31.2&amp;nbsp;&amp;nbsp; labfiler01 labfiler01-e0a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #808080;"&gt;1.2.3.4&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;labfiler01&lt;/SPAN&gt; labfiler01-e1a-222&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #808080;"&gt;1.2.3.7&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;labfiler01&lt;/SPAN&gt; labfiler01-e1a-223&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #808080;"&gt;1.2.3.5&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;labfiler01 &lt;/SPAN&gt;labfiler01-e1b-226&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that PoSh added the hostname to each line in /etc/hosts, basically mapping the hostname to a number of different IP addresses, although it should only resolve to the main IP address (192.168.31.2). Not even sure what adding a VLAN leads to changes in /etc/hosts...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I reverted /etc/hosts back to the original state, than ran Set-NaNetInterface -InterfaceName e1b-229 -Address 1.2.3.9 -Netmask 255.255.255.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now /etc/hosts looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;#Auto-generated by zapi_net_config Fri Apr 26 09:37:08 CEST 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost-stack&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;127.0.10.1&amp;nbsp;&amp;nbsp; localhost-10 localhost-bsd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;127.0.20.1&amp;nbsp;&amp;nbsp; localhost-20 localhost-sk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;::1 localhost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;192.168.31.2&amp;nbsp;&amp;nbsp; labfiler01 labfiler01-e0a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;1.2.3.4&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;labfiler01&lt;/SPAN&gt; labfiler01-e1a-222&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;1.2.3.7&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;labfiler01&lt;/SPAN&gt; labfiler01-e1a-223&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;1.2.3.5&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;labfiler01&lt;/SPAN&gt; labfiler01-e1b-226&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;1.2.3.9&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;labfiler01&lt;/SPAN&gt; labfiler01-e1b-229&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It correctly added a line to the hosts file but again included the hostname in this line as well as in every other line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug in the toolkit? Can I do anything to prevent this behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:04:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NaNetVlan-and-Set-NaNetInterface-corrupt-etc-hosts/m-p/57335#M2694</guid>
      <dc:creator>hland</dc:creator>
      <dc:date>2025-06-05T06:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add-NaNetVlan and Set-NaNetInterface corrupt /etc/hosts</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NaNetVlan-and-Set-NaNetInterface-corrupt-etc-hosts/m-p/57339#M2695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Support discovered that this is a bug in the underlying ZAPI call and therefore in Ontap. It will be fixed in some future release of Data ONTAP. See&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.netapp.com/NOW/cgi-bin/bol?Type=Detail&amp;amp;Display=710228" title="http://support.netapp.com/NOW/cgi-bin/bol?Type=Detail&amp;amp;Display=710228" target="_blank"&gt;http://support.netapp.com/NOW/cgi-bin/bol?Type=Detail&amp;amp;Display=710228&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hendrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 16:27:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Add-NaNetVlan-and-Set-NaNetInterface-corrupt-etc-hosts/m-p/57339#M2695</guid>
      <dc:creator>hland</dc:creator>
      <dc:date>2013-05-24T16:27:57Z</dc:date>
    </item>
  </channel>
</rss>

