Change local IP from console

You can change local IP address from your computer console

netsh.exe interface ip set address name="Local Area Connection" static addr=xxx.xxx.xxx.xxx mask=yyy.yyy.yyy.yyy gateway=zzz.zzz.zzz.zzz gwmetric=1

xxx.xxx.xxx.xxx - desired IP address
yyy.yyy.yyy.yyy - desired mask
zzz.zzz.zzz.zzz - desired gateway

and for DNS settings :

netsh.exe interface ip set dns name="Local Area Connection" source=static addr=xxx.xxx.xxx.xxx

No comments:

Recent Posts