关闭开启IPV6适配器

@ECHO OFF&PUSHD %~DP0 &TITLE IPv隧道适配器管理

mode con cols=36 lines=20

color 27

:menu

cls

echo. 管理菜单 echo. ———————————————

echo. echO. 1 关闭隧道

echo. echo. 2 开启隧道

echo. echo. 3 退出

echo. echo. ———————————————

echo.

echo.

set /p user_input=请输入菜单编号:

if %user_input% equ 1 goto close

if %user_input% equ 2 goto start

if %user_input% equ 3 goto exit

:close

netsh interface teredo set state disable

netsh interface 6to4 set state disable

netsh interface isatap set state disable

goto menu

:start

netsh interface teredo set state default

netsh interface 6to4 set state defalut

netsh interface isatap set state default

goto menu

:exit

exit

  

原文地址:https://www.cnblogs.com/luoye00/p/12572367.html