Hi there, i have met an issue with kernel debug as title. I will descript more detail below. Please help take a troubleshooting, thanks!
- One Host PC, one target PC with kernel debug supported NIC.
- Two Cisco switch stack, host PC network cable connect to Stack 1, target PC network cable connect to Stack 2.
- Target PC set dbgsettings to host PC's static ip address & ports & key.
- Target PC set dbgsettings with dhcp option no.
- Two cisco switch stack connect to the same core switch.
- This vlan with no dhcp server, host PC's network adpter set to static ipv4 address, Target PC's kernel debug adpter set to static ipv4 too manaully.
- Host PC & Target PC can ping each other after setting the static ip address.
With above enviroment set-up, the host PC can't use windbg connect to target PC.
However, if i put them in the same Cisco Stack, it's working fine.
I'm reference microsoft document:
here is the explaination: "KDNET on the target computer attempts to use Dynamic Host Configuration Protocol (DHCP) to get a routable IP address for the network adapter that's being used for debugging. If KDNET obtains a DHCP-assigned address, then the target computer can be debugged by host computers located anywhere on the network. If KDNET fails to obtain a DHCP-assigned address, it uses Automatic Private IP Addressing (APIPA) to obtain a local link IP address. Local link IP addresses aren't routable, so a host and target can't use a local link IP address to communicate through a router. In that case, network debugging will work if you plug the host and target computers into the same network hub or switch."
If i set dhcp option no, i suppose i'm in satuation two. Use APIPA to obtain a local link ip address & it's un-routable. If i put both PC in one cisco statck, it's working. If i put in seperate stack, it's not working. But for the above point 5, the two stack is connect to one core switch. I think APIPA address is working in mac level, not require routing. This is my confusion. Please help me solve it. Thanks!