Visible to Intel only — GUID: tku1680169624251
Ixiasoft
Visible to Intel only — GUID: tku1680169624251
Ixiasoft
7.2.1.2.2. Example of SSH Connection via NAPT
When you configure the connection to real network via the connect-real-network-napt command, it configures the service node to work as a gateway routing the outgoing traffic to the host PC (making available the host PC IP in the simulation environment). This can be used as an alternative to the create outgoing forwarding ports. In this case, you can directly use the IP from the host PC in the commands issued from the target system.
The following capture shows an example in which a SSH session is established. In this example, it is assumed that the NAPT configuration has been already performed. The host IP is 10.122.105.138.
#Intel Simics simulator CLI # Confirm that NAPT has been set up simics> list-port-forwarding-setup NAPT enabled with gateway 10.10.0.1/24 on link ethernet_switch0.link. NAPT enabled with gateway fe80::2220:20ff:fe20:2000/64 on link ethernet_switch0.link.
# Target Serial Console root@psgdevice:~# ssh simicsUser@10.122.105.138 The authenticity of host '10.122.105.138 (10.122.105.138)' can't be established. ED25519 key fingerprint is SHA256:XQzql2Lz5mbrPPsMX9Xc8a8Q4E3hmx3RrE7neHoO3Oc. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '10.122.105.138' (ED25519) to the list of known hosts. simicsUser@10.122.105.138's password: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.15.0-52-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage 106 updates can be applied immediately. To see these additional updates run: apt list --upgradable Last login: Mon Feb 13 10:33:13 2023 from 10.122.105.138 simicsUser@simicsUser-linux-lab:~$