Skip to content

Instantly share code, notes, and snippets.

@dinigo
Created November 19, 2014 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dinigo/82465a4d10959f5e87a9 to your computer and use it in GitHub Desktop.
Save dinigo/82465a4d10959f5e87a9 to your computer and use it in GitHub Desktop.
A couple of bat scripts for switching between static and DHCP IP configuration on Windows 8
netsh interface ip set address "Wi-Fi" static 10.38.24.24 255.255.0.0 10.38.0.1 1
netsh interface ip set dnsservers "Wi-Fi" static 156.35.41.4 primary
netsh interface ip add dnsservers "Wi-Fi" addr=156.35.14.2 index=2
netsh interface ip set address "Wi-Fi" dhcp
netsh interface ip set dns "Wi-Fi" dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment