ip修改切换(bat批处理文件)
来源:互联网 发布:电动螺丝刀知乎 编辑:程序博客网 时间:2024/06/11 02:19
@echo off
:start
echo ============请输入数字选择下一步操作:
echo ============1:ip设置为10.1.4.210
echo ============2:ip设置为132.228.117.210
echo ============3:设置为DHCP自动获取ip
set /P var=":"
if %var%==1 goto ip10
if %var%==2 goto ip132
if %var%==3 goto ipdhcp
:ip10
cls
netsh interface ip set address name="本地连接" source=static
addr=10.1.4.210 mask=255.255.255.192 gateway=10.1.4.193
cmd /c netsh interface ip set dns name="本地连接" source=static
addr=218.2.135.1
echo **IP设置为10.1.4.210,设置成功**
echo ------------------------------------------
goto start
:ip132
cls
netsh interface ip set address name="本地连接" source=static
add=132.228.117.210 mask=255.255.255.192 gateway=132.228.117.193
cmd /c netsh interface ip set dns name="本地连接" source=static
addr=132.228.39.11
echo **IP设置为132.228.117.210,设置成功**
echo ------------------------------------------
goto start
:ipdhcp
cls
netsh interface ip set address name="本地连接" source=dhcp
netsh interface ip delete dns "本地连接" all
ipconfig /flushdns
echo **IP设置为DHCP获取,设置成功**
echo ------------------------------------------
goto start
:start
echo ============请输入数字选择下一步操作:
echo ============1:ip设置为10.1.4.210
echo ============2:ip设置为132.228.117.210
echo ============3:设置为DHCP自动获取ip
set /P var=":"
if %var%==1 goto ip10
if %var%==2 goto ip132
if %var%==3 goto ipdhcp
:ip10
cls
netsh interface ip set address name="本地连接" source=static
addr=10.1.4.210 mask=255.255.255.192 gateway=10.1.4.193
cmd /c netsh interface ip set dns name="本地连接" source=static
addr=218.2.135.1
echo **IP设置为10.1.4.210,设置成功**
echo ------------------------------------------
goto start
:ip132
cls
netsh interface ip set address name="本地连接" source=static
add=132.228.117.210 mask=255.255.255.192 gateway=132.228.117.193
cmd /c netsh interface ip set dns name="本地连接" source=static
addr=132.228.39.11
echo **IP设置为132.228.117.210,设置成功**
echo ------------------------------------------
goto start
:ipdhcp
cls
netsh interface ip set address name="本地连接" source=dhcp
netsh interface ip delete dns "本地连接" all
ipconfig /flushdns
echo **IP设置为DHCP获取,设置成功**
echo ------------------------------------------
goto start
0 0
- ip修改切换(bat批处理文件)
- 自动切换ip方案批处理文件
- bat实现IP切换
- 利用bat切换IP
- 用批处理文件(bat)设置IP地址
- 用批处理文件修改ip地址
- 快速修改ip的批处理文件
- 批量修改文件名的bat批处理文件
- 修改ip地址bat
- IP自动修改Bat
- Dos:修改IP地址的bat脚本文件,在不同局域网切换IP地址
- Dos下修改IP地址的bat脚本文件,在不同局域网切换IP地址
- windows bat脚本切换ip
- bat 切换我的IP
- 本地连接IP切换bat命令
- 无线局域网自动切换IP批处理文件
- bat批处理文件
- bat 批处理文件
- 关于c++多态
- ORA-19502: write error on file "", block number (block size
- C++中数组和容器的区别与联系
- spring boot 学习小结1 spring mvc环境搭建
- Ubuntu Server 14.04开发环境配置
- ip修改切换(bat批处理文件)
- 【codeforces 576D】LCS Again
- Educational Codeforces Round 5-B. Dinner with Emma(贪心)
- android中ImageView属性及其详解
- IOS程序异常crash捕获与拦截
- 移动app的左右滑隐藏菜单
- Content Provider基础(一)初识和访问其它程序中数据的方法
- jar包冲突解决
- Windows 7系统BAT批处理修改IP地址和DNS