V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
vloony
V2EX  ›  Windows

cmd 如何删除网络接口

  •  
  •   vloony · 2022-05-12 04:56:35 +08:00 · 1534 次点击
    这是一个创建于 725 天前的主题,其中的信息可能已经有所发展或是发生改变。
    cmd 如何删除网络接口

    Microsoft Windows [版本 6.1.7601]
    版权所有 (c) 2009 Microsoft Corporation 。保留所有权利。

    C:\Users\Administrator.SC-2022>route print
    ===========================================================================
    接口列表
    20...........................Wintun Userspace Tunnel #46
    27...........................WireGuard Tunnel
    14...94 e2 3c 19 03 60 ......Bluetooth 设备(个人区域网)
    11...00 0c 29 d0 ec f1 ......Intel(R) PRO/1000 MT Network Connection
    1...........................Software Loopback Interface 1
    12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
    15...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
    16...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
    17...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #5
    ===========================================================================

    IPv4 路由表
    ===========================================================================
    活动路由:
    网络目标 网络掩码 网关 接口 跃点数
    0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.21 266
    127.0.0.0 255.0.0.0 在链路上 127.0.0.1 306
    127.0.0.1 255.255.255.255 在链路上 127.0.0.1 306
    127.255.255.255 255.255.255.255 在链路上 127.0.0.1 306
    192.168.0.21 255.255.255.255 在链路上 192.168.0.21 266
    224.0.0.0 240.0.0.0 在链路上 127.0.0.1 306
    224.0.0.0 240.0.0.0 在链路上 192.168.0.21 266
    255.255.255.255 255.255.255.255 在链路上 127.0.0.1 306
    255.255.255.255 255.255.255.255 在链路上 192.168.0.21 266
    ===========================================================================
    永久路由:


    IPv6 路由表
    ===========================================================================
    活动路由:
    如果跃点数网络目标 网关
    1 306 ::1/128 在链路上
    11 266 fe80::/64 在链路上
    11 266 fe80::48a1:8637:f321:8005/128
    在链路上
    1 306 ff00::/8 在链路上
    11 266 ff00::/8 在链路上
    ===========================================================================
    永久路由:




    如何删除
    20...........................Wintun Userspace Tunnel #46
    27...........................WireGuard Tunnel
    这两个接口
    3 条回复    2022-05-12 10:29:49 +08:00
    crab
        1
    crab  
       2022-05-12 05:30:09 +08:00
    试下这个 netsh interface delete ipv4 name="Demand-Dial Interface"
    kokutou
        2
    kokutou  
       2022-05-12 08:42:56 +08:00
    cmd delete network interface

    google 搜索.....
    中文 jb 毛都搜不到

    devcon.exe 应该是要下一个, 或者到向日葵安装包里取.

    参考命令:
    devcon findall =net
    devcon findall =net |findstr /I "isatap teredo"
    devcon disable *teredo*
    devcon remove *teredo*
    devcon disable *ISATAP*
    devcon remove *ISATAP*
    devcon findall =net |findstr /I "isatap teredo"
    ysc3839
        3
    ysc3839  
       2022-05-12 10:29:49 +08:00 via Android
    @kokutou 不需要 devcon ,可以用系统自带的 pnputil ,或者调用 powershell 大概也可以
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3175 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 12:59 · PVG 20:59 · LAX 05:59 · JFK 08:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.