You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行netsh命令删除IPv4 TCP排除端口范围时提示“Element not found”错误的排查求助

执行netsh命令删除IPv4 TCP排除端口范围时提示“Element not found”错误的排查求助

大家好,我遇到了一个Windows端口管理的问题,想请各位帮忙分析下原因:

我以管理员身份在Windows命令提示符中执行这条命令,试图删除一段TCP排除端口范围:

netsh int ipv4 delete excludedportrange protocol=tcp startport=61600 numberofports=100

但每次都会返回错误提示:Element not found,这个提示太笼统了,我完全摸不着头绪。

补充下背景:这个命令是我在查找“如何删除大量已排除的端口范围”的方案时找到的,而且我已经确认Hyper-V是处于禁用状态的。

有没有朋友能帮忙解释下这个错误的可能原因,或者给我一些排查方向?


编辑: 按照@Ramhound的要求,我附上了netsh interface ipv4 show interfaces的输出:

Idx     Met         MTU          State                Name

---  ----------  ----------  ------------  ---------------------------

82           1        1199  connected     _Common_CSN_VPN_na_res - vpn.****.com

1          75  4294967295  connected     Loopback Pseudo-Interface 1

7          35        1500  connected     Wi-Fi

25          25        1500  disconnected  Local Area Connection* 1

12           5        1500  disconnected  Ethernet 2

13          25        1500  disconnected  Local Area Connection* 2

4          65        1500  disconnected  Bluetooth Network Connection

18           1        1300  connected     Ethernet 3

16          35        1500  disconnected  Ethernet 4

29          15        1500  connected     vEthernet (Default Switch)

5          25        1500  connected     VirtualBox Host-Only Network #2

3          35        1500  connected     VMware Network Adapter VMnet1

27          35        1500  connected     VMware Network Adapter VMnet8

85        5000        1500  connected     vEthernet (WSL)

备注:内容来源于stack exchange,提问作者Robert S

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 10:39:50