<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Netsh on Details...</title>
    <link>https://www.deepreflect.net/tags/netsh/</link>
    <description>Recent content in Netsh on Details...</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright © 2003 - 2026 Leonardo Rizzi</copyright>
    <lastBuildDate>Tue, 30 Jun 2026 03:28:29 +0200</lastBuildDate>
    <atom:link href="https://www.deepreflect.net/tags/netsh/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Windows - Change IP from command line</title>
      <link>https://www.deepreflect.net/2009/02/01/windows-change-ip-form-command-line/</link>
      <pubDate>Sun, 01 Feb 2009 19:36:22 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=394</guid> 
      <description>&lt;p&gt;Yes, is possibile don&amp;rsquo;t make lot of click to reconfigure network interfaces under Windows, using &amp;ldquo;netsh&amp;rdquo; command like this:&lt;/p&gt;
&lt;p&gt;For set up static address and metric 1 gateway:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;netsh interface ip set address name=&amp;#34;Local Area Connection&amp;#34; static ip.ip.ip.ip 255.255.255.0 gw.gw.gw.gw 1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For set up static dns:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;netsh interface ip set dns &amp;#34;Local Area Connection&amp;#34; static xx.xx.xx.xx
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;netsh add dns &amp;#34;Local Area Connection&amp;#34; addr=xx.xx.xx.xx index=2
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For setup ip by dhcp:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;netsh interface ip set address name=&amp;#34;Local Area Connection&amp;#34; source=dhcp
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;netsh interface ip set dns name=&amp;#34;Local Area Connection&amp;#34; source=dhcp
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>Yes, is possibile don&rsquo;t make lot of click to reconfigure network interfaces under Windows, using &ldquo;netsh&rdquo; command like this:</p>
<p>For set up static address and metric 1 gateway:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>netsh interface ip set address name=&#34;Local Area Connection&#34; static ip.ip.ip.ip 255.255.255.0 gw.gw.gw.gw 1
</span></span></code></pre></div><p>For set up static dns:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>netsh interface ip set dns &#34;Local Area Connection&#34; static xx.xx.xx.xx
</span></span><span style="display:flex;"><span>netsh add dns &#34;Local Area Connection&#34; addr=xx.xx.xx.xx index=2
</span></span></code></pre></div><p>For setup ip by dhcp:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>netsh interface ip set address name=&#34;Local Area Connection&#34; source=dhcp
</span></span><span style="display:flex;"><span>netsh interface ip set dns name=&#34;Local Area Connection&#34; source=dhcp
</span></span></code></pre></div>]]></content:encoded>
    </item>
  </channel>
</rss>
