【发布时间】:2016-12-04 21:11:37
【问题描述】:
我正在尝试让 WinDbg 使用手动以太网电缆调试目标机器,如 https://msdn.microsoft.com/en-us/library/windows/hardware/hh439346(v=vs.85).aspx 所述
但是,主机上的 WinDbg 似乎一直卡在等待重新连接...。有什么想法可能是错的吗?
两台机器都运行 Windows 10 Enterprise x64。我还在两台机器上都禁用了防火墙。
我仔细检查了我的主机和目标 NIC,并确保它们都受支持。
目标网卡是
Intel(R) 82579LM Gigabit Network Connection
PCI\VEN_8086&DEV_1502&SUBSYS_161C103C&REV_04
主机网卡是
Broadcom NetLink(TM) Gigabit Ethernet
PCI\VEN_14E4&DEV_1692&SUBSYS_033D1025&REV_01
bcdedit /dbgsettings 显示
C:\WINDOWS\system32>bcdedit /dbgsettings
key 1.2.3.4
debugtype NET
hostip 192.168.0.104
port 50000
dhcp Yes
The operation completed successfully.
我还确保可以使用 ping 从我的目标计算机访问主机。
ipconfig /all 产生以下结果:
Ethernet adapter Local Area Connection* 1:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Kernel Debug Network Adapter
Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::20dc:c393:bcdb:b26%3(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.101(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Sunday, December 4, 2016 11:37:04 AM
Lease Expires . . . . . . . . . . : Sunday, December 4, 2016 1:37:04 PM
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DHCPv6 IAID . . . . . . . . . . . : 65278299
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-78-0A..XXX
DNS Servers . . . . . . . . . . . : 192.168.0.1
NetBIOS over Tcpip. . . . . . . . : Enabled
【问题讨论】:
-
愚蠢的问题,但是
ipconfig /all在哪台机器上? -
在目标机器上。
-
这从网卡的名字——“Microsoft Kernel Debug Network Adapter”就很明显了。这是 Windows 使用的神奇 NIC,因此当 KDNET 拥有一个实际的 NIC 时,网络实际上可以工作。见blogs.msdn.microsoft.com/ndis/2014/03/10/…
标签: debugging windbg kernel-mode