From LedHed's Wiki
Revision as of 18:24, 19 August 2008 by Ledhed (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article describes how to change the IP address of a Windows based computer from the commandline.

Changing Static IP to Obtain from DHCP

netsh interface ip set address "Local Area Connection" dhcp

Changing Static to Static

Checking Interfaces

netsh interface ip show config

Changing Static to Static

Usage:

net sh interface ip set address "Local Area Connection" static ipaddr netmask gatway metric

Example:

netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1

References

How to Use the NETSH Command to Change from Static IP Address to DHCP in Windows 2000 - http://support.microsoft.com/kb/257748