How To Set Static IP in Windows [GUI and CLI]

Configuring TCP/IP settings, such as IP address, DNS server, and Default gateway addresses are one of the most basic configurations for a system engineer or network engineer. Configuring TCP/IP settings on a system is not a mandatory task, however, without configuring TCP/IP settings, you would not be able to connect his/her system to the network such as Internet. In this post, we will explain how to set static IP in Windows systems such as Windows 8 and Windows 10.

Options to Configure IP Address

There are two options to configure IP address on a system: Dynamic configuration (with the help of server called DHCP) and Static configuration (need to be configured manually). Configuring IP address in Windows 10 is almost similar to configuring IP address in the earlier versions of Windows such as Windows 7 and Windows 8.

Regardless of the dynamic or static configuration, you can configure IP address and other TCP/IP settings using either GUI or CLI interface. In the latest version of Windows operating systems, there is one more CLI tool called Windows PowerShell. Configuring TCP/IP setting using Windows PowerShell will be covered in a separate post.

Set Static IP in Windows 10 Using GUI

To set static IP in Windows 10 using GUI, you need to perform the following steps:

  1. Open the Network Connection window. You can use any of the following methods to open the Network Connections window:
    • Press the Windows+X keys and select Network connections.
    • Type ncpa.cpl in Run dialog box and press Enter.
    • Use the Control Panel menu.
    • Click the Network and Sharing Center icon in the notification area.
  2. On the Network Connections window, select and right-click the network adapter for which you want to configure or set static IP address and other TCP/IP settings, and then select Properties.
  3. On the Properties dialog box, select the version IPv4 or IPv6 and then click Properties. Here, we will focus on TCP/IPv4. Th IPv6 configuration has covered in a separate article.Set Static IP in Windows 10 using GUI
  4. On the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, select the method dynamic or static. In order to use the dynamic method, you should have an active DHCP server on your network. Here, we will just focus on how to set Static IP address on Windows 10. For this, select the Use the following IP address radio button and assign the desired TCP/IP settings.Configure TCP/IP settings in Windows

Also read: Configuring IP address and other TCP/IP settings using the DHCP server.

Set Static IP in Windows Using CMD

Apart from the above-mentioned GUI method, TCP/IP settings can also be configured using the netsh CMD command. To set static IP in Windows using CMD, you need to perform the following steps:

  1. Open the Command Prompt (CMD) window with the administrative privilege.
  2. On the CMD prompt, use the following netsh command syntax.
C:\>netsh interface ipv4 add address “<name of adapter>” <IP address>  <subnet mask> <Default gateway>

Note: The command syntax will remain same for all the latest version of Windows operating systems such as Windows 7/8/10 and even for the Windows Server 2008/2012/2016.

  1. Look at the following example. The preceding commands will configure 10.0.0.1 255.0.0.0 IP address on Ethernet0 interface with 10.0.0.1 as the default gateway.Set Static IP in Windows 10 using netsh command
  2. To verify your configuration, execute the ipconfig command.The ipconfig command output

In this post, we have explained how to set static IP in Windows machines using the GUI and CLI methods. Hope, you enjoyed it. Do share the article. You may also subscribe us for the upcoming posts.

Posted in Windows 10 Tagged with: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*