Last active
February 4, 2017 02:45
-
-
Save HereChen/25b48abf625b90f1dd338f6ee546f5bc to your computer and use it in GitHub Desktop.
Windows set ip address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM netsh interface ipv4 set address name="YOUR INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAY | |
REM netsh interface ipv4 set dns name="YOUR INTERFACE NAME" static DNS_SERVER | |
netsh interface ipv4 set address name="Local Area Connection" static 192.168.100.252 255.255.255.0 192.168.100.1 | |
netsh interface ipv4 set dns name="Local Area Connection" static 114.114.114.114 | |
REM refer: http://www.howtogeek.com/103190/change-your-ip-address-from-the-command-prompt/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment