24/04/2009
› Experimental, Tutorial › Tags: IPChanger, Networking, Tutorial, WindowsChange IP Address Using netsh from Command Prompt
Network interface can be changed manually by using netsh command (netsh.exe) from Command Prompt. To change the IP to static IP, use the following command format:
netsh interface ip set address [Connection Name] [Source] [IP] [Netmask] [Gateway] [Metric]
[Connection Name]is the connection name which the network adapter is assigned to. You can see the name in the Control Panel Network Connections panel or by using theipconfig /allcommand from the command prompt.[Source]is the source of IP address, whether it is static or dhcp. If you set to dhcp. You can ignore all other remaining parameter.[IP]is the IP address you set.[Netmask]is the network mask for the IP address.[Gateway]is the the gateway IP address.[Metric]is the metric for the gateway.
for example:
netsh interface ip set address "Local Area Connection" static 192.168.1.10 255.255.255.0 192.168.1.1 1
The above command will set your “Local Area Connection” network adapter IP to static IP 192.168.1.10 with netmask 255.255.255.0, gateway 192.168.1.1, and gateway metric 1.
To set DNS server for the network connection use the following command:
netsh interface ip set dns "Local Area Connection" static 202.134.1.10
To add a second DNS server, use the following command:
netsh interface ip add dns "Local Area Connection" 202.134.0.155 index=2
OK, have a good try.





We can effectively use command prompt to change our ip address.