Configure batch code sharing for IP addresses
This article introduces the knowledge of "configuring batch code sharing of IP addresses". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The code is as follows:
ECHO OFF @ ECHO.By lost63 2010.2.23 @ ECHO. Function: batch configuration IP address. PS: local connection 2 is generally "local connection", please change it according to the actual situation! @ ECHO. Specify @ ECHO-@ ECHO Please select: @ ECHO 1, DHCP automatic assignment 2, manually specify IP 192.168.1.3 @ ECHO-set / p what= Please enter the option (1 or 2) if% what%==1 netsh interface ip set address "Local connection 2" source=dhcp if% what%==2 netsh interface Ip set address Local connection 2 static 192.168.1.3 255.255.255.0 192.168.1.1 1 ipconfig @ ECHO. The @ ECHO task is complete, press any key to close! @ ECHO. This is the end of pause's "configuring batch Code sharing for IP addresses". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!