Skip to content

Instantly share code, notes, and snippets.

@jimdiroffii
Created September 14, 2020 15:17
Show Gist options
  • Save jimdiroffii/33575397e48799486de865678d0f34b8 to your computer and use it in GitHub Desktop.
Save jimdiroffii/33575397e48799486de865678d0f34b8 to your computer and use it in GitHub Desktop.
Set Static IP in Windows
rem Setting Static IP for interface "Local Area Connection"
netsh interface ip set address name = "Local Area Connection" static 192.168.1.1 255.255.255.0 192.168.1.254 1
netsh int ip set dns name = "Local Area Connection" source= static addr = 208.67.220.220
netsh int ip add dns name = "Local Area Connection" addr = 208.67.222.222 index =2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment