当我运行 Wireshark 时,我可以在一台计算机上看到 4 个本地连接。我没有对机器的物理访问权限,因此无法检查机器上的 LAN 端口。这是wireshark的截图。

现在,当我查看系统属性时,我只能看到两个 LAN 连接。

我的问题是,如何查看 Windows 7 上的 LAN 端口总数?我还可以在 WireShark 中查看所有 LAN 连接中的活动,我如何才能知道我的数据包正在通过哪个连接?
四分之三的连接具有相同的数据包传输图。

您可以Get-NetAdapter -IncludeHidden在Windows PowerShell中运行并匹配Name属性。InterfaceDescription属性是将在设备管理器中显示的内容。
PS C:\\Users\\glsp168> Get-NetAdapter -IncludeHidden\n\nName InterfaceDescription ifIndex Status MacAddress LinkSpeed\n---- -------------------- ------- ------ ---------- ---------\nLocal Area Connection* 3 WAN Miniport (L2TP) 16 Disconnected 0 bps\nLocal Area Connection* 7 WAN Miniport (IPv6) 14 Up 0 bps\nBluetooth Network Conn... Bluetooth Device (Personal Area Netw... 9 Disconnected B8-08-CF-4B-56-56 3 Mbps\nLocal Area Connection* 10 Bluetooth Device (RFCOMM Protocol TDI) 7 Not Present 0 bps\nLocal Area Connection* 11 WAN Miniport (SSTP) 22 Disconnected 0 bps\nLocal Area Connection* 6 WAN Miniport (IP) 6 Up 0 bps\nLocal Area Connection* 5 WAN Miniport (Network Monitor) 19 Up 0 bps\nWi-Fi Intel(R) Dual Band Wireless-AC 8260 15 Up B8-08-CF-4B-56-52 54 Mbps\nEthernet Intel(R) Ethernet Connection I219-LM 18 Disconnected 18-DB-F2-30-54-8C 0 bps\nLocal Area Connection* 1 Microsoft Kernel Debug Network Adapter 17 Not Present 0 bps\nLocal Area Connection* 2 WAN Miniport (IKEv2) 2 Disconnected 0 bps\nLocal Area Connection* 9 WAN Miniport (PPTP) 10 Disconnected 0 bps\nVMware Network Adapte...0 VMware Virtual Ethernet Adapter for ... 8 Up 00-50-56-C0-00-00 100 Mbps\nZscaler Zscaler Network Adapter 1.0.2.0 13 Disconnected 00-FF-72-7E-44-A1 100 Mbps\nEthernet 2 Cisco AnyConnect Secure Mobility Cli... 3 Not Present 00-05-9A-3C-7A-00 0 bps\nLocal Area Connection* 14 Microsoft Teredo Tunneling Adapter 20 Up 00-00-00-00-00... 100 Kbps\nLocal Area Connection* 8 WAN Miniport (PPPOE) 23 Disconnected 0 bps\nLocal Area Connection* 12 Microsoft Wi-Fi Direct Virtual Adapter 11 Disconnected B8-08-CF-4B-56-53 0 bps\nRun Code Online (Sandbox Code Playgroud)\n\n如果您想隐藏其中一些接口,可以转到Capture \xe2\x86\x92 Options,然后单击Manage Interfaces...按钮。取消选中您不想看到的内容。如果双击注释列的值,您还可以自定义显示的名称。
\n\n\n