Would you like to configure the IP address and DNS settings of your Windows PC just using the command prompt? Rather than click through the user interface, these items can quickly be set with just a few commands.
The first thing you need to identify is the name of the network interface you want to modify. You can find the names of all network interfaces by running the following command:
netsh interface ipv4 show interfaces
This will list all the interfaces available. In most cases, your wired network adapter will be called "Local Area Connection" but it may include a number at the end of the name. It is important to use the full name in the commands below and surround it with quotes if the name contains spaces.
How to set a static IP address
A static IP address can be set from the command prompt by running the netsh command at an administrative level prompt. Make sure to substitute the parameters in the command below for your environment.
netsh interface ip set address name="Local Area Connection" static 220.127.116.11 255.255.255.0 18.104.22.168 1