
本批处理可以在Windows系统下修改多块网卡的IP地址,掩码,网关和DNS信息。加入了删除默认路由,自动添加两块网卡路由信息。(请根据需要修改ip地址,网卡名称和路由信息)
@echo off
echo 正在修改第一块网卡配置
cmd /c netsh interface ip set address name="本地连接" source=static addr=172.16.45.111 mask=255.255.255.0 gateway=172.16.45.254 gwmetric=auto
cmd /c netsh interface ip set dns na...