1.建一个BAT文件
输入如下内容
netsh interface ip set address 本地连接 static 192.168.1.200 255.255.255.0 192.168.1.1 1
netsh interface ip set dns 本地连接 static 60.191.3.140 primary
netsh interface ip add dns 本地连接 218.75.110.174
2.建一个BAT文件
输入如下内容
netsh interface ip set address name="本地连接" source=static addr=192.168.1.200 mask=255.255.255.0 gateway=192.168.1.1 gwmetric=1
set interface ip set dns name="本地连接" source=static 218.75.110.174 primary
netsh interface ip add dns name="本地连接" 222.46.17.5
本文介绍如何通过批处理文件批量设置电脑的IP地址、子网掩码、默认网关及DNS服务器,适用于网络管理员进行快速网络配置。
1897

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



