博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
批处理修改地址为静态和动态的方法
阅读量:4256 次
发布时间:2019-05-26

本文共 565 字,大约阅读时间需要 1 分钟。

把地址设为动态ip

 
@echo 开始设定自动获取动态IP地址...@netsh interface ip set address "WLAN" dhcp@netsh interface ip set dns name="WLAN" source=dhcp@echo IP地址设置完毕,当前IP地址信息为@ipconfig /all@pause
把地址设为静态ip

@echo offtitle 静态IP设置set name=WLANset IP=192.168.1.187set mask=255.255.255.0set gw=192.168.1.1set dns=202.106.195.68netsh int ip set addr name="%name%" source=static addr=%IP% mask=%mask% gateway=%gw% gwmetric=1netsh int ip set dns name="%name%" source=static addr=%dns% register=primarynetsh interface ip set wins name="%name%" source=static addr=noneecho 静态IP设置完成ipconfig /allpause

转载地址:http://lcpei.baihongyu.com/

你可能感兴趣的文章
CF417D——Cunning Gena(状态压缩DP)
查看>>
HDU1074——Doing Homework(状态压缩DP)
查看>>
POJ1113——Wall(凸包)
查看>>
HDU3847——Trash Removal(凸包,枚举)
查看>>
文档滚动对 scrollTop scrollLeft的兼容性封装
查看>>
Python笔记:文档注释docstrings, 让函数更易读懂
查看>>
Python笔记:lambda表达式
查看>>
Python笔记:input
查看>>
Python笔记:错误和异常和访问错误消息
查看>>
Python笔记:对文件的读写操作
查看>>
Python笔记:详解使用Python列表创建ndarray
查看>>
Typescript 中的类的应用
查看>>
Python笔记:NumPy中的布尔型索引使用举例
查看>>
Python笔记:NumPy 中的集合运算举例: 查找共同元素,差异元素和共有元素
查看>>
Python笔记:访问或修改 Pandas Series 中的元素以及相关运算
查看>>
Python笔记:Pandas DataFrames 的使用
查看>>
Python笔记:在Pandas中处理NaN值
查看>>
Python笔记:初识Matplotlib和Seaborn
查看>>
Typescript 中的接口的实现
查看>>
Typescript中的泛型的使用
查看>>