Locate the Ethernet network connected to your target system. It is usually called ethernet_switch0, but check that using list-objects command:
simics> list-objects type = ethernet_switch -all Component Class Object ----------------------------------- <ethernet_switch ethernet_switch0
In a start-up script that uses the common Simics Ethernet setup scripts, you can also use the script variable $eth_link to locate the Ethernet network.
On the Simics command-line, issue one command to set up outbound port forwarding:
simics> connect-real-network-port-out service-node-port=<port-in-target>ethernet-link=<ethlink> target-ip=<debug-host-ip>
target-port=<port-on-host> -udp
where:
For example in the QSP-x86 example, with WinDbg on the host running Simics:
simics> $eth_link 'ethernet_switch0' simics> connect-real-network-port-out ethernet-link = $eth_linkservice-node-port = 50010 target-port = 50010 target-ip = '127.0.0.1' 10.10.0.1 UDP port 50010 on link ethernet_switch0.link -> host 127.0.0.1:50010 10.10.0.1 TCP port 50010 on link ethernet_switch0.link -> host 127.0.0.1:50010 ff02::1:2 UDP port 50010 on link ethernet_switch0.link -> host 127.0.0.1:50010 ff02::1:2 TCP port 50010 on link ethernet_switch0.link -> host 127.0.0.1:50010