Change IP address in Windows via DOS

To change the IP of your Windows computer, to a fixed value, using DOS run
netsh interface ip set address name=”Local Area Connection” static 192.168.1.2 255.255.255.0 192.168.1.1

whereas 192.168.1.2 is your new address
255.255.255.0 is the subnet
and 192.168.1.1 is the gateway

Revert

To switch back to a dynamic IP address via DHCP, run the following command

netsh interface ip set address name=”Local Area Connection” source=dhcp

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.