42 | | The nodes in your '''ssh-config''' file are Docker containers running on (virtual) hosts. These hosts have ''public'' IP addresses that are routable from the commodity Internet, that's why you can login to the Docker containers of your slicelet. A port on the public IP address (e.g., 49155) is forwarded to the SSH port (22) on the container's private IP address. The '''ssh-config''' file contains the names of the virtual hosts and the port forwarding information. |
| 42 | {{{ |
| 43 | root@slice347:~# ifconfig eth0 |
| 44 | eth0 Link encap:Ethernet HWaddr a6:24:c1:df:c7:09 |
| 45 | inet addr:10.20.0.243 Bcast:0.0.0.0 Mask:255.255.0.0 |
| 46 | inet6 addr: fe80::a424:c1ff:fedf:c709/64 Scope:Link |
| 47 | UP BROADCAST RUNNING MTU:1500 Metric:1 |
| 48 | RX packets:56555 errors:0 dropped:2 overruns:0 frame:0 |
| 49 | TX packets:49525 errors:0 dropped:0 overruns:0 carrier:0 |
| 50 | collisions:0 txqueuelen:1000 |
| 51 | RX bytes:93890170 (93.8 MB) TX bytes:8052865 (8.0 MB) |
| 52 | }}} |
46 | | ''Note that, to complete this lab, you will later need to find both the ''public'' and ''private'' IP addresses for each node in the slicelet.'' |
| 56 | The nodes in your '''ssh-config''' file are Docker containers running on (virtual) hosts. These hosts have ''public'' IP addresses that are routable from the Internet, that's why you can login to the Docker containers of your slicelet. A port on the public IP address (e.g., 49155) is forwarded to the SSH port (22) on the container's private IP address. The '''ssh-config''' file contains the names of the virtual hosts and the port forwarding information. |
| 57 | |
| 58 | When you run a server on a node in your slicelet, it will listen on the private address, because that is the only one it can see. By default it will only be visible to other nodes in your slicelet. Docker provides facilities for exposing ports to the public Internet, but this topic is outside the scope of this tutorial. |
| 59 | |
| 60 | ''Note that later on you will need to find both the ''public'' and ''private'' IP addresses for each node in the slicelet.'' |