Skip to content

Instantly share code, notes, and snippets.

@HereChen
Last active February 4, 2017 02:45
Show Gist options
  • Save HereChen/25b48abf625b90f1dd338f6ee546f5bc to your computer and use it in GitHub Desktop.
Save HereChen/25b48abf625b90f1dd338f6ee546f5bc to your computer and use it in GitHub Desktop.
Windows set ip address
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