Configure Static IP with the Netsh Command-Line Utility

You can perform a variety of tasks using the Netsh command-line utility, including configuring the IP addresses of network adapters in Windows.

Here’s how to configure a static IP address:

netsh interface ip set address "connection name" static 192.168.0.101 255.255.255.0 192.168.0.1

NOTE: The default connection names are Local Area Connection for wired adapters and Wireless Network Connection for Wi-Fi adapters. The IP address order: client IP, subnet mask, and gateway IP.

Here’s how to configure the DNS addresses:

netsh interface ip add dns "connection name" 208.67.222.222

netsh interface ip add dns "connection name" 208.67.220.220 index=2

NOTE: Remember to replace the connection names and IP addresses.

About The Author

1 thought on “Configure Static IP with the Netsh Command-Line Utility”

Leave a Comment

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top