Skip to content

Ping and Traceroute

You'll run the few commands that say where a connection has stopped, then have someone break your network on purpose and find the break from the terminal alone.

About

Most people stop at "the internet's not working". Three pings and a traceroute turn that into "the router is fine, DNS is dead", which is a sentence you can act on. Every operating system ships these tools and they haven't changed in thirty years. What counts here is real output from your own machine and a fault you made and then diagnosed. A website that runs the checks for you doesn't count, because the day you need this, the website won't load either.

At a glance

Per requirement
15 XP
Completion bonus
75 XP
Requirements
5
Takes
One evening
Skill level
Beginner (done it a few times)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people

Requirements

  1. 1
    Find your own address, your gateway and your DNS server from the command line. On Linux it's ip addr and ip route, on a Mac it's ifconfig and netstat -rn with the resolver under the network settings, and on Windows ipconfig /all shows all three at once. Write the three addresses on a sticky note. Take a photo of the note next to the terminal that gave you them. Photo
  2. 2
    Ping the gateway, then a public address, then a name, and read the three results. Ping your router, then 1.1.1.1, then example.com. The three tests sort any fault into three bins: your Wi-Fi or cable, your internet connection, or DNS. Note the round-trip times too. Under 5 ms to the gateway on a cable is normal, 20 to 50 ms to the internet is normal, and 200 ms to the gateway means Wi-Fi trouble. Take a screenshot of all three. Photo
  3. 3
    Trace the route to a server on another continent and count the hops. traceroute or tracert to a university or a news site far away. The first hop is your router and the second is usually your provider. A row of stars is a hop that won't answer, not a fault, so don't panic at it. Take a screenshot and say in one sentence where your packets seem to leave your provider's network. Photo
  4. 4
    Have someone break one thing without telling you what, and diagnose it with the commands alone. They can unplug the modem, unplug the switch, or set your DNS to a wrong address. Work through the pings until you can say which bin the fault is in, then say the fix out loud before you look. Film the terminal and your guess, then the reveal. Video
  5. 5
    Write the commands and what each answer means on one page, and keep it by the router. Five lines is plenty: the command, what a good answer looks like, what a bad one means. This is the sheet you'll read when nothing loads and you can't look it up. Take a photo of the page taped inside the router cupboard or next to your network map. Photo