Labs / First Contact / ICMP & gateway redundancy

Lab 1 of 2 · ICMP & gateway redundancy

ICMP: what the network tells you about your packets

Read the error messages routers send back when a packet cannot be delivered.

Open this lab Pro 6 steps

The idea

A laptop on an office network sends packets towards a file server and a branch server, through two routers. When a packet cannot be delivered, the network says why in ICMP messages, and who sends one tells you where it stopped.

Who sends the error
Who sends the error
A detour the router points out
A detour the router points out

Steps

  1. Echo: a question and its answer

    Every error report in this lab uses the same protocol as ping, so start with the plain question and answer. Ping the file server, 10.0.2.10, once, while the laptop's card is recorded.

    laptop:~# ping -c1 10.0.2.10
  2. Net unreachable

    A packet can fail at any point on its way, and the first point is a router with no road onward. 10.9.9.9 is on no network in this lab. Ping it once, waiting at most two seconds.

    laptop:~# ping -c1 -W2 10.9.9.9

Pro

4 more steps in the app

  1. Host unreachable
  2. Port unreachable
  3. Administratively prohibited
  4. Redirect: there is a better way
Get Pro

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Start with a free account: Google or email, no card.

Open this lab