nerdexam
Linux_Foundation

LFCS · Question #771

You suspect that a gateway machine on your network has failed but you are unsure which machine. Which command will help locate the problem?

The correct answer is E. traceroute. The traceroute command diagnoses network issues by showing the path (hops) packets take to a destination, identifying where connectivity might be failing.

Submitted by kevin_r· Apr 18, 2026Networking

Question

You suspect that a gateway machine on your network has failed but you are unsure which machine. Which command will help locate the problem?

Options

  • Aps
  • Bnetstat
  • Cnslookup
  • Difconfig
  • Etraceroute

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    4% (1)
  • E
    88% (22)

Why each option

The `traceroute` command diagnoses network issues by showing the path (hops) packets take to a destination, identifying where connectivity might be failing.

Aps

`ps` lists running processes on the local machine and provides no information about network connectivity or gateway status.

Bnetstat

`netstat` displays network connections, routing tables, and interface statistics on the local machine but does not actively diagnose path failures to remote hosts.

Cnslookup

`nslookup` (or `dig`) performs DNS lookups and resolves hostnames to IP addresses, which is not directly useful for identifying a failed gateway.

Difconfig

`ifconfig` (or `ip addr`/`ip link`) configures and displays information about network interfaces on the local machine, but it doesn't diagnose reachability to external gateways.

EtracerouteCorrect

`traceroute` (or `tracepath`/`tracert` on some systems) shows the path that packets take to reach a destination, listing each router (hop) along the way. If a gateway fails, `traceroute` would stop at or before the failed gateway, indicating where the network path is broken.

Concept tested: Diagnosing network gateway failure

Source: https://man7.org/linux/man-pages/man8/traceroute.8.html

Topics

#network troubleshooting#traceroute#gateway#connectivity diagnosis

Community Discussion

No community discussion yet for this question.

Full LFCS Practice