
<?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>IPv4 Configuration Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/ipv4-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/ipv4-configuration/</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>IPv4 Configuration Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/ipv4-configuration/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<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" fetchpriority="high" 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 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 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>
