当前位置:网站首页>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
边栏推荐
- es-ik 安装报错
- Multithreading tutorial (XXII) happens before principle
- Clojure installation of metabase source code secondary development
- Number of atoms (easy to understand)
- [metadata]linkedin datahub
- 创建酷炫的 CollectionViewCell 转换动画
- 【深入kotlin】 - 初识 Flow
- How to deal with message blackout and message sending failure of Aurora im
- ImageView supporting single finger sliding and double finger scaling
- Multi threading tutorial (XXIV) cas+volatile
猜你喜欢

“All in ONE”一个平台解决所有需求,运维监控3.0时代已来

NDK learning notes (14) create an avi video player using avilib+window

Control your phone with genymotion scratch

Wechat applet, automatic line feed for purchasing commodity attributes, fixed number of divs, automatic line feed for excess parts

Implementation of data access platform scheme (Youzu network)

1. use alicloud object OSS (basic)

那个酷爱写代码的少年后来怎么样了——走近华为云“瑶光少年”

Deep learning distributed training

Customize the layout of view Foundation

22. Generate parentheses
随机推荐
Informatica:数据质量管理六步法
GAMES101作业7-Path Tracing实现过程&代码详细解读
MinGW-W64安装说明
Games101 job 7-path tracing implementation process & detailed interpretation of code
Exploration of kangaroo cloud data stack on spark SQL optimization based on CBO
NDK learning notes (XI) POSIX sockect local communication
SQLite installation and configuration tutorial +navicat operation
Why is the smart door lock so popular? What about the smart door locks of MI family and zhiting?
Big meal count (time complexity) -- leetcode daily question
NDK learning notes (VII) system configuration, users and groups
JS promise, async, await simple notes
Maximum number of points on the line ----- hash table solution
Error:Execution failed for task ':app:buildNative'. & gt; A problem occurred'x/x/x/'NDK build' error resolution
Adapter the problem of executing only one animation in multiple frames
配置Rust编译环境
What is a thread pool?
修复【无 Internet, 安全】问题
Utiliser le fichier Batch Enum
49. 字母异位词分组
NDK learning notes (IV) functions, classes and exceptions of swig