Linux Labs

Networking / Stage 12 of 14 · step 6 of 7

Connect two VMs over the network

medium ~30 min
Not running Starting usually ~20 s
Report a problem

Situation

The lab has two machines: node1, your terminal, and node2, a server with a site on port 80. The node2 administrator writes: "The site opens for me." Yet from node1 curl http://node2/ waits and gives up with no answer.

Run commands on node2 from node1 over SSH: ssh node2 'command'. At every login ssh prints Warning: Permanently added 'node2'… — that is how the practice pair is set up, and it does not affect the commands.

Task

  1. From node1, ping node2 gets a reply.
  2. From node1, curl http://node2/ gets code 200, and the site on node2 keeps working.

There is no internet in the lab — only the network between node1 and node2. Everything you need is installed on both machines.

Visible only to you. Saved as you type.

All notes

Lab goals

0 of 2
  • node2 replies to ping from node1 — not checked yet
  • http://node2/ returns HTTP 200 to a request from node1 — not checked yet

Hints

0 of 3 open · they open one at a time
Hint 1
Show the solution after 3 failed checks

Leave the lab?

The machine keeps running for 10 more minutes, then it is removed. Files are lost; completed goals stay.

Loading…