求教怎么用bat批处理写在一个本地连接设置2个IP地址?一个在设置里,一个在高级里添加的。

2025-04-13 14:13:15
推荐回答(1个)
回答1:

@echo off
netsh interface ip set address name="本地连接" source=static addr=172.16.4.173
mask=255.255.255.128 gateway=172.16.4.129
netsh interface ip set dns name="本地连接" source=static addr=61.147.37.1