标签:切换网段脚本
@echo off title Network :start cls echo. echo 网段切换 echo. echo. echo 输入1 切换到 10.24.1.0 网段 echo 输入2 切换到 10.24.8.0 网段 echo 输入q 退出 echo. set /p id=输入1、2、q: if %id%==1 goto first if %id%==2 goto second if %id%==q goto exit goto start :first netsh interface ip set address name="本地连接" static 10.24.1.117 255.255.254.0 10.24.1.3 >nul echo 切换成功 ping -n 3 127.1 >nul exit :second netsh interface ip set address name="本地连接" static 10.24.9.117 255.255.254.0 10.24.9.3 >nul echo 切换成功 ping -n 3 127.1 >nul exit
标签:切换网段脚本
原文地址:http://lhw2016.blog.51cto.com/2708468/1769687