vloony
V2EX  ›  Windows

cmd 如何删除网络接口

  •  
  •   vloony · May 12, 2022 · 2232 views
    This topic created in 1479 days ago, the information mentioned may be changed or developed.
    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 replies    2022-05-12 10:29:49 +08:00
    crab
        1
    crab  
       May 12, 2022
    试下这个 netsh interface delete ipv4 name="Demand-Dial Interface"
    kokutou
        2
    kokutou  
       May 12, 2022
    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  
       May 12, 2022 via Android
    @kokutou 不需要 devcon ,可以用系统自带的 pnputil ,或者调用 powershell 大概也可以
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1173 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 17:51 · PVG 01:51 · LAX 10:51 · JFK 13:51
    ♥ Do have faith in what you're doing.