Created
November 19, 2014 10:08
-
-
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
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
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 |
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
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