:h :: "寝室" echo "configure home ip address gateway,please wait 30 second ..." @netsh int ip set address "本地连接" static 66.168.1.8 255.255.255.0 66.168.1.1 1 >nul @netsh int ip set dns "本地连接" static 66.168.1.1 PRIMARY >nul echo home ip configure is done goto :EOF
:r :: "公司网络" echo "configure transport ip address gateway,please wait 30 second ..." @netsh int ip set address "本地连接" static 192.168.250.173 255.255.255.0 192.168.250.1 1 >nul echo transport ip configure is done goto :EOF
:d :DHCP "自动获取IP地址" echo "configure transport ip address gateway,please wait 30 second ..." @netsh int ip set address "本地连接" dhcp >nul @netsh int ip set dns "本地连接" dhcp >nul
:err :: "error" echo your input "%ch%" ,no this argument ! please input h or w! game over rem # 接口 IP 配置结束