2.1.2 Check Network Device PCIe Address 2.3 Setting up Windows Target for Debug
Windows Kernel Debugging  /  2 Windows Kernel Debugging Over a Network  / 

2.2 Target System IP Address

Given a working network card, the next step is to check which IP address the target system is using inside the simulated network. This would normally be provided over DHCP from a Simics Service Node - it defaults to the 10.10.0.x range on the QSP-x86, but it varies from target to target.

To check the IP address, start a CMD on the target and use the command ipconfig:

C:\Windows\System32>ipconfig.exe

Windows IP Configuration


Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : network.sim
   IPv6 Address. . . . . . . . . . . : 11:2233:4455:6677:f4bc:e2b1:6094:1dc1
   Temporary IPv6 Address. . . . . . : 11:2233:4455:6677:fdbd:e3ce:f40e:c1fa
   Link-local IPv6 Address . . . . . : fe80::f4bc:e2b1:6094:1dc1%26
   IPv4 Address. . . . . . . . . . . : 10.10.0.100
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 10.10.0.1

Ethernet adapter vEthernet (Default Switch):

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::ad9f:c64b:63c5:440f%16
   IPv4 Address. . . . . . . . . . . : 172.17.18.145
   Subnet Mask . . . . . . . . . . . : 255.255.255.240
   Default Gateway . . . . . . . . . :
  

In addition, you need to know the IP address of the service node that works as the default gateway - which ipconfig also returns. To double-check, also run the info command on the service node in Simics:

running> service_node_cmp0.sn.info
Information about service_node_cmp0.sn [class service-node]
===========================================================

Interface 'service_node_cmp0.snd[0]':
                 Network : <the eth-switch-link 'ethernet_switch0.link'> (via
                           ethernet_switch0.epaa8a1a0ce658ccc0)
             MAC address : 20:20:20:20:20:00
            IP addresses : 10.10.0.1/24
                           ff02::1:2/64
                           fe80::2220:20ff:fe20:2000/64
                     MTU : 1500
...
  

2.1.2 Check Network Device PCIe Address 2.3 Setting up Windows Target for Debug