Netsh IP address switching Method 1: example bat program: www.2cto. comecho # set static IP address, default gateway netshinterfaceipsetaddressname & quot; LocalAreaConnection & quot; static192.168.0.1232.16255.255.0192.168.0.1...
Netsh IP address switching Method 1: example bat program: www.2cto.com echo # set static ip, default gateway netsh interface ip set address name = "Local Area Connection" static 192.168.0.123 255.255.255.0 192.168.0.1 0 echo # set preferred dns netsh interface ip set dns name = "Local Area connection "source = static addr = 168.95.1.1 register = PRIMARY echo # add dns name =" Local Area Connection "addr = 8.8.8.8 index = 2 echo on the device using the dns netsh interface ip address # set wins to none netsh interface Ip set wins name = "Local Area Connection" source = static addr = none echo # The interface IP address configuration end content can be modified based on the actual situation. Www.2cto.com Method 2: netsh-c interface dump> c: \ netset.txt rem the current Nic configuration is generated as the file netsh-f c: \ netset.txt rem to apply the content in the configuration file to Nic settings.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.