本地连接批处理修改IP
2016-01-06 18:12
197 查看
例子:
本地连接修改IP
netsh interface ip delete dns "本地连接" addr=all
netsh interface ip add dns "本地连接" addr=202.101.172.35
netsh interface ip add dns "本地连接" addr=202.101.172.36
netsh interface ip add address "本地连接" 192.168.0.133 255.255.255.0
netsh interface ip add address "本地连接" gateway=192.168.0.1 gwmetric=2
ipconfig /flushdns
netsh interface ip set address name="本地连接" source=dhcp
ipconfig /flushdns
用记事本保存为批处理文件就可以!
本地连接修改IP
netsh interface ip delete dns "本地连接" addr=all
netsh interface ip add dns "本地连接" addr=202.101.172.35
netsh interface ip add dns "本地连接" addr=202.101.172.36
netsh interface ip add address "本地连接" 192.168.0.133 255.255.255.0
netsh interface ip add address "本地连接" gateway=192.168.0.1 gwmetric=2
ipconfig /flushdns
netsh interface ip set address name="本地连接" source=dhcp
ipconfig /flushdns
用记事本保存为批处理文件就可以!
相关文章推荐
- C++ primer plus读书笔记——第12章 类和动态内存分配
- linux C语言实现文件锁
- Html5添加Tabs样式单页多图轮播图插件教程
- RestTemplate远程接口调用
- C++ primer plus读书笔记——第11章 使用类
- linux性能分析工具
- 命令行下mysql新建用户及分配权限
- java 实现坦克大战 3.0版
- 合成
- java Socket
- 我要,我就要(模拟除法过程)
- 决策树学习笔记整理
- string.join加引号
- Linux学习之Center os网络配置
- 关于转换16进制颜色的一个宏
- 产品经理 面试题2
- CUDA Study Notes
- JavaScript学习总结(4)——JavaScript数组
- JavaScript学习总结(4)——JavaScript数组
- CUDA Study Notes