How to change IPv4 network settings in Windows with Netsh commands

In this article you will realize that you don't need to be a real expert to perform this type of business. Of course, you need to have some kind of knowledge in terms of computer science. But nothing you can't learn here.

What is the IPv4 network?

In fact, if you don't have much knowledge of what a IP address and its protocols, do not worry. Here you can, briefly, learn about each of these elements. This way you will easily understand how to change IPv4 network settings in Windows.




How about starting with the IP address? This element is nothing more than a set of numbers which contributes to the identification of a device. This address can be static or dynamic. Of course, there are ways to tell if you have a static or dynamic IP address in Windows.

How to change IPv4 network settings in Windows with Netsh commands

IP addresses, it should be noted, are always assigned by servers or routers operating at the network level. A static IP address is what the host will keep regardless of how many times it connects or disconnects.

While dynamic is what is assigned to a host or device connecting to the server for the first time. You can also change the IP address of a computer from static to dynamic and vice versa.

The IPv4 protocol

The information provided by IP addresses allows you to track or geolocate an exact dynamic IP address. However, none of this would be possible without the existence of elements like IPv4.

This protocol is vital when it comes to identify devices connected to a network with great accuracy. There are more than four billion unique addresses registered under IPv4.




IPv4 was designed in 1983. Around 2011, this type of address exhibited the first symptoms of deficiency. That forced the design and structuring of IPv6. However, IPv4 is still the backbone for it exchange of information between devices connected to a network.

How to configure IPv4 with Netsh?

Netsh is a Windows tool that specializes in configuring IPv4 and IPv6. So if you want to edit the IPv4 network settings in Windows, nothing better than this built-in feature.

To access it, you need to follow a series of simple tips or instructions. This ensures that the procedure is carried out successfully.

  1. Click the Windows menu.
  2. Type "CMD". The "Command Prompt" application will appear and you will need to click on "Run as administrator". This is very important! From then on, only then will you have the necessary permissions for the IPv4 configuration.
  3. Then enter the following command: netsh interface show interface.
  4. This will display the information of the interface you want to configure. For this particular case, let's assume the interface has the name "LookHowIsHace". Now enter the command: netsh interface ipv4 set address "LookHowI'mHace" static 192.168.1.40 255.255.255.0 192.168.1.1 1.

How to change IPv4 network settings in Windows with Netsh commands

In this way, you will use the Netsh tool to indicate that you want to configure the IPv4 interface of "LookHowIsHace". In turn, you indicate that the IP address must be assigned in yours static mode. But it is missing more.


Changing IPv4 network settings in Windows, in turn, requires configuring other factors such as gateway and DNS. To do this, you will need to enter the following commands:


  • Netsh interface ipv4 set dnsservers «LookHowI’mHace» static 8.8.8.8 validate = nessuna interfaccia netsh ipv4 add dnsserver «LookHowI’mHace» 8.8.4.4 index = 2 validate = no.

Your IPv4 protocol has been configured!

Do you want to see the result of the configuration? You can continue using the console and enter the ipconfig / all command. This way you will see the information corresponding to the "LookHowIsHace" network interface. A complete success! Now you can learn how to change, configure or clone a MAC address with a router.



add a comment of How to change IPv4 network settings in Windows with Netsh commands
Comment sent successfully! We will review it in the next few hours.