@echo off
echo —————————-
echo (1).地税外网
echo (2).地税内网
echo (3).公司
echo (4).自动获取
echo —————————-
echo 选择你要设置的网络:
set /p x=
if %x%==1 goto a
if %x%==2 goto b
if %x%==3 goto c
if %x%==4 goto d
:a
netsh interface ip set address “本地连接” static 192.168.0.85 255.255.255.0 192.168.0.254 1
netsh interface ip set dns “本地连接” static 202.100.96.68
exit
:b
netsh interface ip set address “本地连接” static 158.20.16.85 255.255.255.0 158.20.16.1 1
netsh interface ip set dns “本地连接” static 158.20.16.10
exit
:c
netsh interface ip set address “本地连接” static 192.168.1.85 255.255.255.0 192.168.1.2 1
netsh interface ip set dns “本地连接” static 202.100.96.68
exit
:d
netsh interface IP set address name=”本地连接” source=dhcp
netsh interface ip set dns name=”本地连接” source=dhcp