Netsh - change ip address
my work requires me to be at two different office. one at putrajaya and another in kl. both office is using different set of ip for local network. its too much trouble having to set my ip manually everytime.
using netsh from command prompt will make this task easier. just type this in command prompt, or you can save it as executable batch file.
netsh interface ip set address name="Local Area Network" static 192.168.0.15 255.255.255.0 192.168.0.1 1
netsh interface ip set dns "Local Area Network" static 192.168.0.13
or if you want to get ip automatically from dhcp server
netsh interface ip set address name="Local Area Network" dhcp
netsh interface ip set dns "Local Area Network" dhcp
using netsh from command prompt will make this task easier. just type this in command prompt, or you can save it as executable batch file.
netsh interface ip set address name="Local Area Network" static 192.168.0.15 255.255.255.0 192.168.0.1 1
netsh interface ip set dns "Local Area Network" static 192.168.0.13
or if you want to get ip automatically from dhcp server
netsh interface ip set address name="Local Area Network" dhcp
netsh interface ip set dns "Local Area Network" dhcp
0 Comments:
Post a Comment
<< Home