Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to modify ip with bat file

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report