@echo 设置本地连接IP为公司IP
@netsh interface ip set address "本地连接" static 192.168.1.17 255.255.255.0 192.168.1.1
@netsh interface ip set dns "本地连接" static 8.8.
8.8
@echo end ......
@pause
@rem netsh interface ip set address "本地连接" dhcp
@rem netsh interface ip set dns "本地连接" dhcp
@netsh interface ip set address "本地连接" static 192.168.1.17 255.255.255.0 192.168.1.1
@netsh interface ip set dns "本地连接" static 8.8.
8.8
@echo end ......
@pause
@rem netsh interface ip set address "本地连接" dhcp
@rem netsh interface ip set dns "本地连接" dhcp
本文介绍了一种通过批处理脚本手动配置Windows系统中本地连接的静态IP地址及DNS服务器的方法。具体步骤包括使用netsh命令设置指定的IP地址、子网掩码和默认网关,以及设置首选DNS服务器。

被折叠的 条评论
为什么被折叠?



