当前位置:网站首页>Set the IP address using batch
Set the IP address using batch
2022-06-11 05:45:00 【zhmhbest】
Use Batch Set up IP Address
Configure static IP
@echo off
set adaptor=" Ethernet "
set ip=192.168.1.101
set mask=255.255.255.0
set gateway=192.168.1.1
set dns=8.8.8.8
REM ================
netsh interface ip set address name=%adaptor% source=static address=%ip% mask=%mask% gateway=%gateway%
netsh interface ip set dns name=%adaptor% source=static address=%dns% register=primary validate=no
echo Finished!
pause>nul
Configure as dynamic IP
@echo off
set adaptor=" Ethernet "
REM ================
netsh interface ip set address name=%adaptor% source=dhcp
netsh interface ip set dns name=%adaptor% source=dhcp
echo Finished!
pause>nul
边栏推荐
- 我们真的需要会议耳机吗?
- Games101 job 7-path tracing implementation process & detailed interpretation of code
- VSCode插件开发
- If the MAC fails to connect with MySQL, it will start and report an error
- Metabase源码二次开发之Clojure 安装
- 获取程序exit的值
- Why is the smart door lock so popular? What about the smart door locks of MI family and zhiting?
- MySQL string to array, merge result set, and convert to array
- Multi thread tutorial (30) meta sharing mode
- qmake 实现QT工程pro脚本转vs解决方案
猜你喜欢

Error:Execution failed for task ':app:buildNative'. & gt; A problem occurred'x/x/x/'NDK build' error resolution

我们真的需要会议耳机吗?

Wechat custom component - style - slot

微信自定义组件---样式--插槽

NDK R21 compiles ffmpeg 4.2.2+x264 and converts video files using ffmpeg

WinForm (II) advanced WinForm and use of complex controls

Altiumdesigner2020 import 3D body SolidWorks 3D model

Analyzing while experimenting - memory leakage caused by non static inner classes

22. Generate parentheses

Start the project using the locally configured gradle
随机推荐
NFC Development -- difference between ID card and IC card (M1 card and CPU card) (III)
OJDBC在Linux系统下Connection速度慢解决方案
Multi thread tutorial (30) meta sharing mode
Multi threading tutorial (XXIV) cas+volatile
Wechat applet learning record
Multithreading tutorial (XXVI) field updater and atomic accumulator
Use of vlayout
Multithreading tutorial (XXVIII) unsafe class
String sorting times --- bubble sorting deformation
Multithreading tutorial (XXI) double checked locking problem
NDK learning notes (13) create an avi video player using avilib+opengl es 2.0
修复Yum依赖冲突
[go deep into kotlin] - get to know flow for the first time
Multithreading tutorial (XXIII) thread safety without lock
使用Genymotion Scrapy控制手机
How to make lamps intelligent? How to choose single fire and zero fire intelligent switches!
MySQL string to array, merge result set, and convert to array
AttributeError: ‘HistGradientBoostingClassifier‘ object has no attribute ‘_ n_ features‘
ImageView supporting single finger sliding and double finger scaling
DISM命令使用小结