windows使用netsh设置静态&动态ip的脚本
时间:2023-12-18 07:37:57
使用netsh设置静态ip地址及动态ip地址具体脚本如下,感兴趣的朋友可以参考下,希望对你有所帮助使用netsh设置静态ip地址:
复制代码代码如下:
@echo off
netsh interface ip set address "本地连接" static 172.24.83.239 255.255.255.0 172.24.83.247
netsh interface ip set dns "本地连接" 172.24.102.110
netsh interface ip add dns "本地连接" 172.24.102.110 index=2
pause
使用netsh设置动态ip地址:
复制代码代码如下:
@echo off
netsh interface ip set address name="本地连接" source=dhcp
netsh interface ip set dns name="本地连接" source=dhcp
pause
标签:静态ip,动态ip,脚本
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
猎豹浏览器如何看历史记录?猎豹浏览器查看历史记录的方法
2023-04-07 08:39:14
![](https://img.aspxhome.com/file/2023/8/a336650_0s.jpg)
Excel2013中表格怎么制作直观双饼图
2023-03-09 11:09:28
Word2016怎么看字数统计?Word2016字数统计两种方法
2022-08-02 12:19:43
![](https://img.aspxhome.com/file/2023/9/22839_0s.jpg)
Windows7系统下把磁盘格式转换为NTFS的方法
2022-07-14 12:03:39
![](https://img.aspxhome.com/file/2023/27/a233591_0s.jpg)
WPS2016书签使用方法是什么
2023-05-12 15:49:57
fgadmin.exe是什么进程 有什么作用 fgadmin进程查询
2023-08-10 01:27:38
excel 如何一键删除所有按钮和图片
2023-09-07 12:10:55
![](https://img.aspxhome.com/file/2023/6/a154346_0s.jpg)
wps Excel公式编辑器设置教程
2022-02-14 20:41:00
10个非常实用的excel小技巧
2023-03-04 15:48:48
微软Win11 22000.527(KB5010414)正式版发布!
2023-12-05 06:25:22
![](https://img.aspxhome.com/file/2023/1/a277009_0s.png)
win10睡眠功能消失_win10睡眠功能消失解决教程
2022-05-25 12:59:29
![](https://img.aspxhome.com/file/2023/4/a308188_0s.jpg)
excel 名称框在哪里 excel名称框的作用和具体使用方法
2022-09-11 23:45:37
![](https://img.aspxhome.com/file/2023/4/a162504_0s.gif)
word2013如何设置页码?
2023-11-30 15:30:42
![](https://img.aspxhome.com/file/2023/0/18910_0s.jpg)
Excel OCT2BIN函数如何将八进制转换成二进制、十进制、十六进制数
2023-04-09 17:45:11
![](https://img.aspxhome.com/file/2023/1/a161231_0s.jpg)
Win10如何将默认浏览器edge切换成IE?浏览器edge切换成IE方法
2022-11-26 05:44:57
![](https://img.aspxhome.com/file/2023/1/a276110_0s.png)
win10开机输入密码一直转圈圈怎么解决?
2022-04-03 11:07:41
![](https://img.aspxhome.com/file/2023/28/a239327_0s.jpg)
word2016绘图工具在哪? word2016添加绘图工具的教程
2023-03-22 16:44:30
![](https://img.aspxhome.com/file/2023/8/22758_0s.png)
新手MacBook Pro怎么选择? 如果你跟我一样,选14丐版就对了
2023-03-19 19:07:04
![](https://img.aspxhome.com/file/2023/1/a203621_0s.jpeg)
word格式更改就是快!
2023-01-29 17:55:41
![](https://img.aspxhome.com/file/2023/6/35456_0s.png)
Xshell中CUI程序行显示不正确怎么解决?
2023-10-30 20:53:59
![](https://img.aspxhome.com/file/2023/7/a331354_0s.jpg)