If target-ip is specified, the command also enables port forwarding from the host that Simics is running on, to a simulated machine specified by target-ip, allowing access from real hosts to the simulated one. If target-ip is already used for any of the target ports 21, 22, 23, or 80, this command just prints the current port forwarding.
Ports are opened on the host for a number of commonly used protocols (such as FTP and telnet). Additional ports can be configured using the connect-real-network-port-in
command.
Port forwarding can be enabled for several simulated machines at the same time.
If several Ethernet links exists, the one that the simulated machine is connected to must be specified as ethernet-link. If no Ethernet link exists, one will be created and all Ethernet devices are connected to it.
A service-node will also be added to the link if there isn't one connected already. If a service-node is added it will either get the IP address service-node-ip, if it was specified, or the IP of the target with the lowest byte set to 1. If neither service-node-ip nor target-ip is specified, it will get the 10.10.0.1 as IP.
If a default port-forwarding target has been set using the default-port-forward-target
command, this will be used as default value for the target-ip parameters.