nerdexam
LPI

101-350 · Question #128

A Linux computer has no access to the internet. Which command displays information about the network gateway for the system?

The correct answer is D. route. See the full explanation below for the reasoning.

Question

A Linux computer has no access to the internet. Which command displays information about the network gateway for the system?

Options

  • Atraceroute
  • Bifconfig
  • Cgateway
  • Droute
  • Eipconfig

How the community answered

(41 responses)
  • A
    5% (2)
  • B
    2% (1)
  • C
    10% (4)
  • D
    80% (33)
  • E
    2% (1)

Community Discussion

7
Marit C.Marit C.Jan 13, 2026

D is correct. The route command reads the kernel IP routing table and prints it, including the default gateway entry which shows up as the 0.0.0.0 destination line with the gateway address in the Gateway column. That information lives entirely in kernel memory, so no internet connectivity is needed at all. The other options either do not exist on Linux (ipconfig, gateway), show interface-level configuration without routing table details (ifconfig), or require a reachable destination host to do anything useful (traceroute). For the exam, also know that "ip route show" is the modern iproute2 equivalent and will likely appear in later objectives, but route is still the tested answer here.

20
Devraj B.Devraj B.Jan 15, 2026

Solid breakdown, and worth adding that on the actual exam scenario they may try to catch you with route versus route -n, because without the -n flag the command attempts reverse DNS lookups that can stall or fail on a disconnected host, which matters when the question specifies offline troubleshooting.

0
Carlos M.Carlos M.Jan 30, 2026

D is the right call here. The route command shows the kernel IP routing table, which includes the default gateway entry, that 0.0.0.0 or default row that points to your gateway IP. The "no internet access" part of the question is a red herring meant to throw you off, because route works entirely on local kernel data and needs no connectivity at all. The real distractor is B, ifconfig, which shows interface config but not routing info, and E is a Windows thing so you can ignore it on a Linux box.

5
Devraj B.Devraj B.Jan 11, 2026

route is the right call here. It reads the kernel routing table and shows you the default gateway entry (the 0.0.0.0 destination row with the Gateway column filled in) without needing any internet access whatsoever, and on older LPI 101-350 objectives it sits squarely in the networking fundamentals weight alongside netstat, which shares the same underlying table.

4
Thiago A.Thiago A.Jan 14, 2026

route is the classic answer here, and it is correct. ifconfig will show you the interface and address, but it does not display the routing table or the gateway entry, so D is the one to pick. ip route on modern distros replaced route, but the exam still expects the old net-tools answer.

1
Marit C.Marit C.Jan 15, 2026

Worth adding that netstat -r from the same net-tools package also dumps the kernel routing table, so if a question ever offers both route and netstat as distractors, route is still the safer pick because the LPIC objectives name it explicitly.

0
Yusuf A.Yusuf A.Jan 18, 2026

D is right, but I keep second-guessing myself on B because my senior showed me ifconfig first and it does show the IP, just not the gateway routing table. Route is the one that actually prints the kernel routing table so you can see which gateway the traffic leaves through.

1
Full 101-350 Practice