How to modify ip with bat file
This article mainly explains "how to use bat file to modify ip", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to modify ip with bat files"!
ModifyTo21Ip.bat
The code is as follows:
@ ECHO OFF
Rem modifies IP address, subnet mask, gateway
Cmd / c netsh interface ip set address name= "Local connection" source=static addr=21.5.251.63 mask=255.255.0.0 gateway=21.5.251.254 gwmetric=1
Cancel ip and change to automatic acquisition (ModifyTo172Ip.bat):
The code is as follows:
@ ECHO OFF
Rem modifies IP address, subnet mask, gateway
Cmd / c netsh interface ip set address name= "Local connection" source=dynamic gwmetric=0
At this point, I believe you have a deeper understanding of "how to use bat files to modify ip". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!