echo
:: 正在更换为20的IP,请稍侯... ...
netsh interface ip set dns name="本地连接" source=dhcp netsh interface ip set address name="本地连接" source=dhcp
::修改为自动连接
netsh interface ip set address name="本地连接" source=static addr=192.168.0.16 mask=255.255.255.0
::设置IP为192.168.0.16,子网掩码为255.255.255.0 netsh interface ip add address "本地连接" 192.168.168.16 255.255.255.0
::增加设置IP为192.168.168.16,子网掩码为255.255.255.0
netsh interface ip set address name="本地连接" gateway=192.168.0.10 gwmetric=0
::设置网关为192.168.0.10
netsh interface ip set dns name="本地连接" source=static addr= 202.96.128.86 register=PRIMARY
::设置首选DNS为202.96.128.86 netsh interface ip add dns "本地连接" 192.168.0.9 index=1
::增加设置首选DNS为192.168.0.9
netsh interface ip add dns name="本地连接" addr=202.96.128.166 index=2
::设置备用DNS为202.96.128.166
cls