
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Netsh Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/netsh/feed/" rel="self" type="application/rss+xml" />
	<link>https://168.138.42.164/tag/netsh/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Tue, 18 Jul 2023 10:27:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>Netsh Archives - TECHNIG</title>
	<link>https://168.138.42.164/tag/netsh/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>How to Configure Windows 10 IP Address with CMD?</title>
		<link>https://www.technig.com/configure-ip-address-with-command-prompt-in-windows/</link>
					<comments>https://www.technig.com/configure-ip-address-with-command-prompt-in-windows/#comments</comments>
		
		<dc:creator><![CDATA[Shams]]></dc:creator>
		<pubDate>Tue, 19 Sep 2017 05:30:12 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command Line Tips]]></category>
		<category><![CDATA[Configure IP Address]]></category>
		<category><![CDATA[Deploy IP address]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[How to Fix]]></category>
		<category><![CDATA[Netsh]]></category>
		<category><![CDATA[Network Connections]]></category>
		<category><![CDATA[Network Monitoring]]></category>
		<category><![CDATA[Network Shell]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Tutorials]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=10801</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-IP-Address-in-Command-Prompt-in-Windows-10-Technig.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="How to Change IP Address in Command Prompt in Windows 10 - Technig" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-IP-Address-in-Command-Prompt-in-Windows-10-Technig.jpg 840w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-IP-Address-in-Command-Prompt-in-Windows-10-Technig-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-IP-Address-in-Command-Prompt-in-Windows-10-Technig-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>Configuring IP address in a Windows with CMD performed using netsh command line utility. The network shell (netsh) is a set of commands that help you configure any Windows operating system IP address, Network Interfaces, and Windows Firewall. The usage of the command line is for pro level Windows users. Those who are playing the [&#8230;]</p>
<p>The post <a href="https://www.technig.com/configure-ip-address-with-command-prompt-in-windows/">How to Configure Windows 10 IP Address with CMD?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-IP-Address-in-Command-Prompt-in-Windows-10-Technig.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="How to Change IP Address in Command Prompt in Windows 10 - Technig" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-IP-Address-in-Command-Prompt-in-Windows-10-Technig.jpg 840w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-IP-Address-in-Command-Prompt-in-Windows-10-Technig-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-IP-Address-in-Command-Prompt-in-Windows-10-Technig-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>Configuring IP address in a Windows with CMD performed using netsh command line utility. The network shell (<a href="https://technet.microsoft.com/en-us/library/cc770948(v=ws.10).aspx" target="_blank" rel="noopener noreferrer">netsh</a>) is a set of commands that help you configure any Windows operating system IP address, Network Interfaces, and Windows Firewall. The usage of the command line is for pro level Windows users. Those who are playing the network infrastructure configuration. But using the command line as normal Windows user indicate your expertise to Windows environment. If you are new to Windows command line, this article &#8220;configure IP address with command prompt in Windows 10&#8221; will help you begin using command line interface.</p>
<p>Configuring Windows IPv4 Networking with Netsh or Network Shell. Netsh is a command-line utility included in Microsoft&#8217;s Windows NT line of operating systems beginning with Windows 2000. It allows local or remote configuration of network devices such as the NICs.</p>
<h2>Configure IP Address with Command Prompt in Windows 10</h2>
<p>Before setting IP address with cmd in Windows 10, you need to know how to find your IP address on Windows 10. So before everything, you must know the network IP address configuration on your system.</p>
<p>Let&#8217;s learn the process of IP configuration step by step. I am going to explain it with an easy pictorial guide. If you don&#8217;t understand some part, just kindly comment us and ask your questions.</p>
<p><strong>The process of Changing Windows 10 IP Address with Command Prompt: </strong></p>
<ol>
<li>Find your IP address in Windows 10.</li>
<li>View network interfaces card.</li>
<li>Change IP address on Windows 10.</li>
<li>Change DNS IP address with the command line.</li>
<li>Reset IP address with Command Prompt.</li>
</ol>
<h2>How to Find your IP Address on Windows 10?</h2>
<p>There are many options for finding IP address on Windows 10. The easy one is &#8220;<strong>ipconfig</strong>&#8221; command. To find your IP address on Windows 10, just type &#8220;<strong>ipconfig</strong>&#8221; in command prompt. To do this process:</p>
<ol>
<li>Press <strong>Windows+R</strong> keys to open the <strong>Run</strong>.</li>
<li>Type &#8220;<strong>cmd</strong>&#8221; in the run and press enter.</li>
<li>Now type &#8220;<strong>ipconfig</strong>&#8221; to show the IP address.</li>
</ol>
<p>The &#8220;<strong>ipconfig</strong>&#8221; command shows everything about your computer network interfaces. You might have many physical or virtual network interface card.</p>
<figure id="attachment_10939" aria-describedby="caption-attachment-10939" style="width: 909px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-Technig.jpg"><img decoding="async" class="wp-image-10939 size-full" src="https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-Technig.jpg" alt="How to Find Your IP Address on Windows 10 - Technig" width="909" height="682" srcset="https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-Technig.jpg 909w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-Technig-300x225.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-Technig-768x576.jpg 768w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-Technig-86x64.jpg 86w" sizes="(max-width: 909px) 100vw, 909px" /></a><figcaption id="caption-attachment-10939" class="wp-caption-text">How to Find Your IP Address on Windows 10 &#8211; Technig</figcaption></figure>
<p>Here, I just have one network interface on my Windows 10 computer. The result of ipconfig command shows that the IP 169.254.29.130 with the mask of 255.255.255.0 is my current Windows IP address.</p>
<p>This is a class C &#8220;autoconfiguration IPv4&#8221;. When your system doesn&#8217;t find any DHCP Server or manual IP address, it obtains auto IP address. So let&#8217;s change it.</p>
<h2>How to C<b>hange</b> IP Address with<b> Command Prompt?</b></h2>
<p>For change IP address, open command prompt or PowerShell. Both works the same and you can run all command prompt commends on Powershell as well. Ok, run cmd or Powershell as administrator. Netsh work in both command prompt and Powershell. I&#8217;m using Windows Powershell to change IP address on Windows 10 completely. Becuase the user interface and color&#8217;s of Powershell is better than Command prompt.</p>
<ol>
<li>Type &#8220;<strong>Powershell</strong>&#8221; in Windows 10 search box to run Windows Powershell.</li>
<li>You need to run Powershell as administrator. Just press Windows+Shift the press enter to run Powershell as administrator. Or right-click the Powershell and click <strong>Run as administrator</strong>.</li>
</ol>
<figure id="attachment_10949" aria-describedby="caption-attachment-10949" style="width: 398px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2017/09/PowerShell-Guide-in-Windows-10.jpg"><img decoding="async" class="wp-image-10949 size-full" src="https://www.technig.com/wp-content/uploads/2017/09/PowerShell-Guide-in-Windows-10.jpg" alt="PowerShell Guide in Windows 10" width="398" height="677" srcset="https://www.technig.com/wp-content/uploads/2017/09/PowerShell-Guide-in-Windows-10.jpg 398w, https://www.technig.com/wp-content/uploads/2017/09/PowerShell-Guide-in-Windows-10-176x300.jpg 176w" sizes="(max-width: 398px) 100vw, 398px" /></a><figcaption id="caption-attachment-10949" class="wp-caption-text">PowerShell Guide in Windows 10</figcaption></figure>
<p>To find the network interface with the command line, type the following command on Powershell.</p>
<pre class="nums:false plain:false lang:default decode:true">Netsh interface ipv4 show interface</pre>
<figure id="attachment_10950" aria-describedby="caption-attachment-10950" style="width: 865px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2017/09/Netsh-Command-to-Check-Network-Adapter-in-Windows-10.jpg"><img loading="lazy" decoding="async" class="wp-image-10950 size-full" src="https://www.technig.com/wp-content/uploads/2017/09/Netsh-Command-to-Check-Network-Adapter-in-Windows-10.jpg" alt="Netsh Command to Check Network Adapter in Windows 10" width="865" height="143" srcset="https://www.technig.com/wp-content/uploads/2017/09/Netsh-Command-to-Check-Network-Adapter-in-Windows-10.jpg 865w, https://www.technig.com/wp-content/uploads/2017/09/Netsh-Command-to-Check-Network-Adapter-in-Windows-10-300x50.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/Netsh-Command-to-Check-Network-Adapter-in-Windows-10-768x127.jpg 768w" sizes="(max-width: 865px) 100vw, 865px" /></a><figcaption id="caption-attachment-10950" class="wp-caption-text">Netsh Command to Check Network Adapter in Windows 10</figcaption></figure>
<p>The result shows two network interfaces. The Loopback and the Ethernet. The Loopback is Windows builtin network loopback interface, but our pointed network interface is the ethernet.</p>
<p>To find your IP address in Windows 10 with netsh command, just type the following command.</p>
<pre class="nums:false plain:false lang:default decode:true">netsh interface ipv4 show config</pre>
<figure id="attachment_10967" aria-describedby="caption-attachment-10967" style="width: 938px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-with-Netsh-Command-Technig.jpg"><img loading="lazy" decoding="async" class="wp-image-10967 size-full" src="https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-with-Netsh-Command-Technig.jpg" alt="How to Find Your IP Address on Windows 10 with Netsh Command - Technig" width="938" height="442" srcset="https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-with-Netsh-Command-Technig.jpg 938w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-with-Netsh-Command-Technig-300x141.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Your-IP-Address-on-Windows-10-with-Netsh-Command-Technig-768x362.jpg 768w" sizes="(max-width: 938px) 100vw, 938px" /></a><figcaption id="caption-attachment-10967" class="wp-caption-text">How to Find Your IP Address on Windows 10 with Netsh Command &#8211; Technig</figcaption></figure>
<p>It displays all the network interface configuration. The output result is clear and better than output result of &#8220;<strong>ipconfig</strong>&#8221; command on Command prompt. So to find an exact information of the network interface, just add the index ID of the network interface at the end of the command.</p>
<pre class="nums:false plain:false lang:default decode:true">netsh interface ipv4 show config 2</pre>
<figure id="attachment_10969" aria-describedby="caption-attachment-10969" style="width: 923px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Windows-10-IP-address-with-Command-Line-Technig.jpg"><img loading="lazy" decoding="async" class="wp-image-10969 size-full" src="https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Windows-10-IP-address-with-Command-Line-Technig.jpg" alt="How to Find Windows 10 IP address with Command Line - Technig" width="923" height="217" srcset="https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Windows-10-IP-address-with-Command-Line-Technig.jpg 923w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Windows-10-IP-address-with-Command-Line-Technig-300x71.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Find-Windows-10-IP-address-with-Command-Line-Technig-768x181.jpg 768w" sizes="(max-width: 923px) 100vw, 923px" /></a><figcaption id="caption-attachment-10969" class="wp-caption-text">How to Find Windows 10 IP address with Command Line &#8211; Technig</figcaption></figure>
<p>That&#8217;s good. Let&#8217;s configure and change Windows 10 IP address with the command line. The command is bit long but easy to understand. No need to remember, just try to understand the netsh command structure.</p>
<p>To change the IP address of the &#8220;Ethernet0&#8221; network interface, type the following command.</p>
<pre class="nums:false plain:false lang:default decode:true">netsh interface ipv4 set address name=2 static 200.100.10.5 mask=255.255.255.0 gateway=200.100.10.1</pre>
<figure id="attachment_10976" aria-describedby="caption-attachment-10976" style="width: 1307px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2017/09/Change-IP-Address-in-Windows-10-using-Command-Line-Technig.jpg"><img loading="lazy" decoding="async" class="wp-image-10976 size-full" src="https://www.technig.com/wp-content/uploads/2017/09/Change-IP-Address-in-Windows-10-using-Command-Line-Technig.jpg" alt="Change IP Address in Windows 10 using Command Line - Technig" width="1307" height="300" srcset="https://www.technig.com/wp-content/uploads/2017/09/Change-IP-Address-in-Windows-10-using-Command-Line-Technig.jpg 1307w, https://www.technig.com/wp-content/uploads/2017/09/Change-IP-Address-in-Windows-10-using-Command-Line-Technig-300x69.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/Change-IP-Address-in-Windows-10-using-Command-Line-Technig-768x176.jpg 768w, https://www.technig.com/wp-content/uploads/2017/09/Change-IP-Address-in-Windows-10-using-Command-Line-Technig-1024x235.jpg 1024w" sizes="(max-width: 1307px) 100vw, 1307px" /></a><figcaption id="caption-attachment-10976" class="wp-caption-text">Change IP Address in Windows 10 using Command Line &#8211; Technig</figcaption></figure>
<p>Once the command executed successfully, check the result with &#8220;<strong>netsh interface ipv4 show config 2</strong>&#8221; command. Yes, the output result shows the exact IP address has set on the &#8220;<strong>Ethernet0</strong>&#8221; network interface. Now the Windows IP address is 200.100.10.5 with the mask of 255.255.255.0 and default gateway is 200.100.10.1.</p>
<p><strong>Note</strong>: You can&#8217;t change the default gateway separately with the following command. It will remove the IP address and just set the default gateway address.</p>
<pre class="nums:false plain:false lang:default decode:true">netsh interface ipv4 set address name=2 gateway= (Gateway IP Address)</pre>
<p>That&#8217;s good and enough for IP address configuration in Windows 10 with the command line. Let&#8217;s change DNS IP address from the command line.</p>
<ul style="list-style-type: circle;">
<li><strong>Related</strong>: <a href="https://www.technig.com/mcsa-lab-manual-articles-windows-server-2012-r2/" target="_blank" rel="noopener noreferrer">MCSA Lab Manual Articles</a>.</li>
</ul>
<h2>How to Change DNS IP address from Command Prompt?</h2>
<p>DNS IP address is the unique address in the network that resolves computer name to IP address and IP address to the computer name. In the network, finding a computer with a name is easy than 32-bit IPv4 address. To set or change the DNS IP address, just simply do it with the following command.</p>
<pre class="nums:false plain:false lang:default decode:true">netsh interface ipv4 set dns name=2 static 200.100.10.30</pre>
<figure id="attachment_10980" aria-describedby="caption-attachment-10980" style="width: 794px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-DNS-IP-address-from-Command-Prompt-Technig.jpg"><img loading="lazy" decoding="async" class="wp-image-10980 size-full" src="https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-DNS-IP-address-from-Command-Prompt-Technig.jpg" alt="How to Change DNS IP address from Command Prompt - Technig" width="794" height="72" srcset="https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-DNS-IP-address-from-Command-Prompt-Technig.jpg 794w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-DNS-IP-address-from-Command-Prompt-Technig-300x27.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/How-to-Change-DNS-IP-address-from-Command-Prompt-Technig-768x70.jpg 768w" sizes="(max-width: 794px) 100vw, 794px" /></a><figcaption id="caption-attachment-10980" class="wp-caption-text">How to Change DNS IP address from Command Prompt &#8211; Technig</figcaption></figure>
<p>You might see some error on a simple local network, because of not having a DNS server. When you don&#8217;t have a DNS server, it&#8217;s not necessary to set DNS IP address on your computer.</p>
<figure id="attachment_10983" aria-describedby="caption-attachment-10983" style="width: 957px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2017/09/Change-DNS-IP-Address-with-Command-Prompt-in-Windows-10-Technig.jpg"><img loading="lazy" decoding="async" class="wp-image-10983 size-full" src="https://www.technig.com/wp-content/uploads/2017/09/Change-DNS-IP-Address-with-Command-Prompt-in-Windows-10-Technig.jpg" alt="Configure IP Address with command prompt in Windows - Technig" width="957" height="296" srcset="https://www.technig.com/wp-content/uploads/2017/09/Change-DNS-IP-Address-with-Command-Prompt-in-Windows-10-Technig.jpg 957w, https://www.technig.com/wp-content/uploads/2017/09/Change-DNS-IP-Address-with-Command-Prompt-in-Windows-10-Technig-300x93.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/Change-DNS-IP-Address-with-Command-Prompt-in-Windows-10-Technig-768x238.jpg 768w" sizes="(max-width: 957px) 100vw, 957px" /></a><figcaption id="caption-attachment-10983" class="wp-caption-text">Configure IP Address with command prompt in Windows &#8211; Technig</figcaption></figure>
<p>Finally, recheck the result with &#8220;<strong>netsh interface ipv4 show config 2</strong>&#8221; command. The output netsh command should be displayed with DNS IP address.</p>
<h2>Final World</h2>
<p>Configure IP address with command prompt in Windows has tow benefits. The first benefit of working with Windows command line helps get you improve your skills in Windows environment. The second benefit is command line is faster than GUI. If you work with the command line, you will understand the power of command line.</p>
<p>The Windows command line interface has improved a lot in Windows 10. Now you can find some Linux commands that run in Windows 10 and works the same on Linux. Finally, hope you learn how to configure IP address with Command Prompt in Windows operating systems. If you don&#8217;t understand, please ask us about how to configure IP address with command prompt in Windows 10?</p>
<p>The post <a href="https://www.technig.com/configure-ip-address-with-command-prompt-in-windows/">How to Configure Windows 10 IP Address with CMD?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/configure-ip-address-with-command-prompt-in-windows/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10801</post-id>	</item>
		<item>
		<title>Configure Windows IPv4 Networking with Netsh</title>
		<link>https://www.technig.com/configure-windows-ipv4-networking-with-netsh/</link>
					<comments>https://www.technig.com/configure-windows-ipv4-networking-with-netsh/#respond</comments>
		
		<dc:creator><![CDATA[Shais]]></dc:creator>
		<pubDate>Mon, 23 May 2016 16:00:49 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Ipconfig]]></category>
		<category><![CDATA[IPv4 Configuration]]></category>
		<category><![CDATA[Netsh]]></category>
		<category><![CDATA[Network Shell]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[Windows Server 2012 R2]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=313</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2014/11/Netsh-Utility.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure Windows IPv4 Networking with Netsh" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2014/11/Netsh-Utility.jpg 840w, https://www.technig.com/wp-content/uploads/2014/11/Netsh-Utility-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2014/11/Netsh-Utility-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>Netsh, or Network Shell, is a command-line utility included in Microsoft&#8217;s Windows NT line of operating systems beginning with Windows 2000. It allows local or remote configuration of network devices such as network interface controllers (NICs). To configure Windows IPv4 networking with Netsh, you can use the following commands: Netsh interface ipv4 show to display [&#8230;]</p>
<p>The post <a href="https://www.technig.com/configure-windows-ipv4-networking-with-netsh/">Configure Windows IPv4 Networking with Netsh</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2014/11/Netsh-Utility.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Configure Windows IPv4 Networking with Netsh" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2014/11/Netsh-Utility.jpg 840w, https://www.technig.com/wp-content/uploads/2014/11/Netsh-Utility-300x150.jpg 300w, https://www.technig.com/wp-content/uploads/2014/11/Netsh-Utility-768x384.jpg 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>Netsh, or Network Shell, is a command-line utility included in Microsoft&#8217;s Windows NT line of operating systems beginning with Windows 2000. It allows local or remote configuration of network devices such as network interface controllers (NICs).</p>
<p>To configure Windows IPv4 networking with Netsh, you can use the following commands:</p>
<p><code>Netsh interface ipv4 show</code> to display the current IPv4 configuration.<br />
<code>Netsh interface ipv4 set address</code> to set the IPv4 address, subnet mask, and default gateway.<br />
<code>Netsh interface ipv4 set dns</code> to set the DNS servers.<br />
<code>Netsh interface ipv4 set Winsock</code> to reset the Windows Sockets (Winsock) catalog.</p>
<h1 style="text-align: justify;">Configure IPv4 Networking with Netsh</h1>
<p style="text-align: justify;">Now I&#8217;m going to show you how to set IPv4-TCP/IP protocol with <strong>Netsh </strong>command-line tool in Windows Server Server or Windows clinets such as Windows 11.<br />
In the GUI environment, we can easily set or change IP to a NIC.</p>
<figure id="attachment_315" aria-describedby="caption-attachment-315" style="width: 403px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/11/Internet-Protocol-version-4-TCP-IP-Properties.jpg"><img loading="lazy" decoding="async" class="wp-image-315 size-full" src="https://technig.com/wp-content/uploads/2014/11/Internet-Protocol-version-4-TCP-IP-Properties.jpg" alt="Internet Protocol version 4 (TCP-IP) Properties" width="403" height="457" srcset="https://www.technig.com/wp-content/uploads/2014/11/Internet-Protocol-version-4-TCP-IP-Properties.jpg 403w, https://www.technig.com/wp-content/uploads/2014/11/Internet-Protocol-version-4-TCP-IP-Properties-265x300.jpg 265w" sizes="(max-width: 403px) 100vw, 403px" /></a><figcaption id="caption-attachment-315" class="wp-caption-text">Internet Protocol version 4 (TCP/IP) Properties</figcaption></figure>
<ol>
<li>Open a Command Prompt window with administrative privileges. Netsh work in both command prompt and PowerShell. I&#8217;m using Windows Powershell.</li>
<li>Type the following command to display the current IP configuration:</li>
</ol>
<p><code>netsh interface ipv4 show addresses</code></p>
<p style="text-align: justify;"><strong>3</strong>. To show or list the interface cards, just type: <code><strong>Netsh interface ipv4 show interface</strong></code></p>
<figure id="attachment_316" aria-describedby="caption-attachment-316" style="width: 770px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/11/Network-Interface-Cards.jpg"><img loading="lazy" decoding="async" class="wp-image-316 size-full" src="https://technig.com/wp-content/uploads/2014/11/Network-Interface-Cards.jpg" alt="Network Interface Cards" width="770" height="159" srcset="https://www.technig.com/wp-content/uploads/2014/11/Network-Interface-Cards.jpg 770w, https://www.technig.com/wp-content/uploads/2014/11/Network-Interface-Cards-300x62.jpg 300w, https://www.technig.com/wp-content/uploads/2014/11/Network-Interface-Cards-768x159.jpg 768w" sizes="(max-width: 770px) 100vw, 770px" /></a><figcaption id="caption-attachment-316" class="wp-caption-text">Network Interface Cards</figcaption></figure>
<p>Now you see two network interfaces. Ethernet0 with index ID 3 is the physical interface that we should set IP and configure.</p>
<p style="text-align: justify;"><strong>4</strong>. Type <code><strong> Netsh interface ipv4 show config Ethernet0</strong></code>. to see the configuration of a interface. You can set the index IP instead of the interface name.</p>
<figure id="attachment_317" aria-describedby="caption-attachment-317" style="width: 766px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/11/Automatic-pricate-ip-address.jpg"><img loading="lazy" decoding="async" class="wp-image-317 size-full" src="https://technig.com/wp-content/uploads/2014/11/Automatic-pricate-ip-address.jpg" alt="Automatic pricate ip address" width="766" height="193" srcset="https://www.technig.com/wp-content/uploads/2014/11/Automatic-pricate-ip-address.jpg 766w, https://www.technig.com/wp-content/uploads/2014/11/Automatic-pricate-ip-address-300x76.jpg 300w" sizes="(max-width: 766px) 100vw, 766px" /></a><figcaption id="caption-attachment-317" class="wp-caption-text">Automatic private IP address</figcaption></figure>
<p>It got an IP address from APIPA (automatic private IP address).<br />
<strong>5</strong>. To set a new IP address type: <code><strong>Netsh interface ipv4 set address name=Ethernet0 static 192.168.10.15 mask=255.255.255.0 gateway=192.168.10.1</strong></code> and press enter.</p>
<p>Let&#8217;s see the result by typing: <code><strong>netsh interface ipv4 show config</strong> <strong>3</strong></code> to see if it works correctly.</p>
<figure id="attachment_322" aria-describedby="caption-attachment-322" style="width: 992px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/11/Set-IP-address-and-default-gateway.jpg"><img loading="lazy" decoding="async" class="wp-image-322 size-full" src="https://technig.com/wp-content/uploads/2014/11/Set-IP-address-and-default-gateway.jpg" alt="Set IP address and default gateway" width="992" height="275" srcset="https://www.technig.com/wp-content/uploads/2014/11/Set-IP-address-and-default-gateway.jpg 992w, https://www.technig.com/wp-content/uploads/2014/11/Set-IP-address-and-default-gateway-300x83.jpg 300w, https://www.technig.com/wp-content/uploads/2014/11/Set-IP-address-and-default-gateway-768x213.jpg 768w" sizes="(max-width: 992px) 100vw, 992px" /></a><figcaption id="caption-attachment-322" class="wp-caption-text">Set the IP address and default gateway</figcaption></figure>
<p><strong>Note:</strong> You can set the default gateway separately by typing: <code><strong>Netsh interface ipv4 set address name=3 gateway=192.168.10.1</strong></code> and press enter. It can set the default gateway but may reset the IP address to APIPA like in the below screenshot.</p>
<figure id="attachment_320" aria-describedby="caption-attachment-320" style="width: 751px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/11/Set-default-gateway.jpg"><img loading="lazy" decoding="async" class="wp-image-320 size-full" src="https://technig.com/wp-content/uploads/2014/11/Set-default-gateway.jpg" alt="Set default gateway" width="751" height="248" srcset="https://www.technig.com/wp-content/uploads/2014/11/Set-default-gateway.jpg 751w, https://www.technig.com/wp-content/uploads/2014/11/Set-default-gateway-300x99.jpg 300w, https://www.technig.com/wp-content/uploads/2014/11/Set-default-gateway-750x248.jpg 750w" sizes="(max-width: 751px) 100vw, 751px" /></a><figcaption id="caption-attachment-320" class="wp-caption-text">Set default gateway</figcaption></figure>
<p><strong>6</strong>. Now try to set the DNS Server IP address with: <code><strong>Netsh interface ipv4 set dns name=3 static 192.168.10.10 primary</strong></code> and press enter.</p>
<figure id="attachment_323" aria-describedby="caption-attachment-323" style="width: 772px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/11/Set-DNS-Server-address.jpg"><img loading="lazy" decoding="async" class="wp-image-323 size-full" src="https://technig.com/wp-content/uploads/2014/11/Set-DNS-Server-address.jpg" alt="Set DNS Server address - Pv4 Networking with Netsh" width="772" height="280" srcset="https://www.technig.com/wp-content/uploads/2014/11/Set-DNS-Server-address.jpg 772w, https://www.technig.com/wp-content/uploads/2014/11/Set-DNS-Server-address-300x109.jpg 300w, https://www.technig.com/wp-content/uploads/2014/11/Set-DNS-Server-address-768x279.jpg 768w" sizes="(max-width: 772px) 100vw, 772px" /></a><figcaption id="caption-attachment-323" class="wp-caption-text">Set DNS Server address &#8211;  Configure IPv4 Networking with Netsh</figcaption></figure>
<p>It shows an error, but it works correctly. The error is due to the lack of a DNS server. If there were a DNS server, we would not encounter any errors.</p>
<h2>Enable ICMPv4 to make machine pingable via network</h2>
<p>Internet Control Message Protocol version 4 (ICMPv4) is a network layer protocol that is used to send control messages between hosts and routers on an IP network. ICMPv4 messages are used for a variety of purposes, including:</p>
<ul>
<li><strong>Error reporting:</strong> ICMPv4 messages can be used to report errors that occur during the transmission of IP datagrams. For example, if a router is unable to route a datagram to its destination, it will send an ICMPv4 error message back to the source host.</li>
<li><strong>Troubleshooting:</strong> ICMPv4 messages can be used to troubleshoot network problems. For example, if a host is unable to reach another host on the network, it can send an ICMPv4 echo request message to the destination host. If the destination host receives the echo request message, it will send an echo reply message back to the source host. This can help to determine if there is a problem with the network between the two hosts.</li>
<li><strong>Informational messages:</strong> ICMPv4 messages can also be used to send informational messages, such as router advertisements and neighbor solicitation messages. These messages are used to keep track of the topology of an IP network.</li>
</ul>
<p>ICMPv4 is a very important protocol for the operation of IP networks. It is used to report errors, troubleshoot problems, and keep track of the topology of an IP network.</p>
<p><strong>Here are some of the most common ICMPv4 messages:</strong></p>
<ul>
<li><strong>Echo request:</strong> This message is used to request a response from a destination host.</li>
<li><strong>Echo reply:</strong> This message is sent in response to an echo request message.</li>
<li><strong>Destination unreachable:</strong> This message is sent to the source host when a datagram cannot be delivered to its destination.</li>
<li><strong>Time exceeded:</strong> This message is sent to the source host when a datagram&#8217;s Time to Live (TTL) expires.</li>
<li><strong>Redirect:</strong> This message is sent to the source host to suggest an alternate route to its destination.</li>
</ul>
<p>ICMPv4 is a part of the Internet Protocol suite (TCP/IP) and is defined in RFC 792. It is used by all IP-based networks, including the Internet.</p>
<p style="text-align: justify;"><strong>1</strong>. By default <strong>ICMPv4</strong> (echo request) is disabled and you can&#8217;t ping the system via network. To enable it by command line just type: <code><strong>netsh advfirewall firewall add rule name=ICMPV4 protocol=icmpv4 dir=in action=allow</strong></code>.</p>
<figure id="attachment_325" aria-describedby="caption-attachment-325" style="width: 845px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/11/Enable-echo-request-with-netsh.jpg"><img loading="lazy" decoding="async" class="wp-image-325 size-full" src="https://technig.com/wp-content/uploads/2014/11/Enable-echo-request-with-netsh.jpg" alt="Enable echo request with netsh" width="845" height="80" srcset="https://www.technig.com/wp-content/uploads/2014/11/Enable-echo-request-with-netsh.jpg 845w, https://www.technig.com/wp-content/uploads/2014/11/Enable-echo-request-with-netsh-300x28.jpg 300w, https://www.technig.com/wp-content/uploads/2014/11/Enable-echo-request-with-netsh-768x73.jpg 768w" sizes="(max-width: 845px) 100vw, 845px" /></a><figcaption id="caption-attachment-325" class="wp-caption-text">Enable echo request with netsh</figcaption></figure>
<p><strong>2</strong>. To see if it is enabled or not yet type <code><strong>Netsh advfirewall firewall show rule name=icmpv4</strong></code> and press enter.</p>
<figure id="attachment_326" aria-describedby="caption-attachment-326" style="width: 695px" class="wp-caption aligncenter"><a href="https://www.technig.com/wp-content/uploads/2014/11/ICMPv4-configuration.jpg"><img loading="lazy" decoding="async" class="wp-image-326 size-full" src="https://technig.com/wp-content/uploads/2014/11/ICMPv4-configuration.jpg" alt="ICMPv4 configuration" width="695" height="278" srcset="https://www.technig.com/wp-content/uploads/2014/11/ICMPv4-configuration.jpg 695w, https://www.technig.com/wp-content/uploads/2014/11/ICMPv4-configuration-300x120.jpg 300w" sizes="(max-width: 695px) 100vw, 695px" /></a><figcaption id="caption-attachment-326" class="wp-caption-text">ICMPv4 configuration</figcaption></figure>
<p>Alright, that&#8217;s all you need to know to configure the IPv4 IP address of Windows Server 2012 to Windows Server 2022, Windows 7, 8, 10, and Windows 11.</p>
<h3>The following commands are just some examples of netsh for showing:</h3>
<p>Commands in this context:<br />
<code>show addresses</code> &#8211; Shows IP address configurations.<code><br />
show compartments</code> &#8211; Shows compartment parameters.<code><br />
show config</code> &#8211; Displays IP address and additional information.<code><br />
show destinationcache</code> &#8211; Shows destination cache entries.<code><br />
show dnsservers</code> &#8211; Displays the DNS server addresses.<code><br />
show dynamicportrange</code> &#8211; Shows dynamic port range configuration parameters.<code><br />
show excludedportrange</code> &#8211; Shows all excluded port ranges.<code><br />
show global</code> &#8211; Shows global configuration parameters.<code><br />
show icmpstats</code> &#8211; Displays ICMP statistics.<code><br />
show interfaces</code> &#8211; Shows interface parameters.<code><br />
show ipaddresses</code> &#8211; Shows current IP addresses.<code><br />
show ipnettomedia</code> &#8211; Displays IP net-to-media mappings.<code><br />
show ipstats</code> &#8211; Displays IP statistics.<code><br />
show joins</code> &#8211; Displays multicast groups joined.<code><br />
show neighbors</code> &#8211; Shows neighbor cache entries.<code><br />
show offload</code> &#8211; Displays the offload information.<code><br />
show route</code> &#8211; Shows route table entries.<code><br />
show subinterfaces</code> &#8211; Shows subinterface parameters.<code><br />
show tcpconnections</code> &#8211; Displays TCP connections.<code><br />
show tcpstats</code> &#8211; Displays TCP statistics.<code><br />
show udpconnections</code> &#8211; Displays UDP connections.<code><br />
show udpstats</code> &#8211; Displays UDP statistics.<code><br />
show winsservers</code> &#8211; Displays the WINS server addresses.</p>
<p>Good luck!</p>
<p>The post <a href="https://www.technig.com/configure-windows-ipv4-networking-with-netsh/">Configure Windows IPv4 Networking with Netsh</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/configure-windows-ipv4-networking-with-netsh/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">313</post-id>	</item>
	</channel>
</rss>
