ChangeToStaticIPAtWork.bat and ChangeToDynamicIPAtHome.bat.
ChangeToStaticIPAtWork.bat file
netsh int ip set address "Local Area Connection" static your_static_ip your_net_mask your_default_gateway_ip
netsh int ip set dns "Local Area Connection" static your_dns primary
"Local Area Connection" is the name of your network connection. You can find it in the network connections setting.
ChangeToDynamicIPAtHome.bat
netsh int ip set address "Local Area Connection" dhcpWhen I need to change to any configuration, I just click to run the bat file.
netsh int ip set dns "Local Area Connection" dhcp
Hope it may help you in necessary case.
No comments:
Post a Comment