Wednesday, June 6, 2018

How to change the IP, Gateway and DNS address within a command prompt.

Sometimes I feel that it's more useful rather than using through control panel.

To change IP and default gateway:
netsh int ip set address "local area connection" static 1

To change DNS:
netsh int ip set dns "local area connection" static primary

Be aware of "local area connection" is the interface name which should be found in your computer. If you find another name, use it in place of that.

No comments:

Post a Comment