Skip to content

Instantly share code, notes, and snippets.

@CTimmerman
Created March 8, 2016 15:53
Show Gist options
  • Save CTimmerman/f9fd9f37741d571b1d64 to your computer and use it in GitHub Desktop.
Save CTimmerman/f9fd9f37741d571b1d64 to your computer and use it in GitHub Desktop.
The alternate ethernet configuration in Windows 10 didn't seem to work for me, so i had to manually use DHCP. To quickly restore fixed IP settings (with Google DNS), use this batch file.
netsh interface ipv4 set address "Local Area Connection" static 10.0.0.2 255.0.0.0 10.0.0.1
netsh interface ipv4 add dnsserver "Local Area Connection" address=8.8.8.8 index=1
netsh interface ipv4 add dnsserver "Local Area Connection" address=8.8.4.4 index=2
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment