There are conflicts of IP addresses everywhere, most typical case would be home networking using DHCP and office network use Static IP due to security measurement. Switch them would be quite troublesome.
The harder way is to do it via command prompt. To change DHCP address to static IP:
netsh interface ip set address name=”<network connection name>” static <static IP> <network mask> <default gateway>
eg. netsh interface ip set address name=”Ethernet Network Connection” static 192.168.0.10 255.255.255.0 192.168.0.1
To change it back to DHCP client:
netsh interface ip set address name=”<network connection name>” dhcp
eg. netsh interface ip set address name=”Ethernet Network Connection” dhcp
Other than these, changing the DNS server manually would be:
netsh interface ip set dns name=”<network connection name>” static <DNS server IP address>
eg.netsh interface ip set dns name=”Ethernet Network Connection” static 192.168.0.1 (assume the gateway is same as DNS server)
Lastly, changing the WINS server manually would be:
netsh interface ip set wins name=”<network connection name>” static <DNS server IP address>
eg.netsh interface ip set wins name=”Ethernet Network Connection” static 192.168.0.1 (assume the gateway is same as WINS server)
Troublesome, isn’t it? What if you put all the commands into one batch file (.bat), with one click, it is easier than GUI!
Reference:
