批处理修改IP

pushd interface ip

netsh interface ip set address name="本地连接" source=static addr=192.168.0.197 mask=255.255.255.0
netsh interface ip set address name="本地连接" gateway=192.168.0.1 gwmetric=0
netsh interface ip set dns name="本地连接" source=static addr=8.8.8.8 register=PRIMARY
netsh interface ip set wins name="本地连接" source=static addr=none

popd


你可能感兴趣的:(批处理)