nerdexam
LPI

102-500 · Question #105

Which of the following commands will delete the default gateway from the system's IP routing table? (Choose two.)

The correct answer is B. route del default C. ip route del default. B (route del default) and C (ip route del default) are both valid commands for removing the default gateway entry from the kernel routing table. route is the older, traditional tool, while ip route is the modern replacement from the iproute2 suite - both manipulate the same…

Networking Fundamentals

Question

Which of the following commands will delete the default gateway from the system's IP routing table? (Choose two.)

Options

  • Aifconfig unset default
  • Broute del default
  • Cip route del default
  • Dnetstat -r default
  • Esysctl ipv4.default_gw=0

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    74% (23)
  • D
    16% (5)
  • E
    6% (2)

Explanation

B (route del default) and C (ip route del default) are both valid commands for removing the default gateway entry from the kernel routing table. route is the older, traditional tool, while ip route is the modern replacement from the iproute2 suite - both manipulate the same underlying routing table and accept del default syntax.

Why the distractors fail:

  • A (ifconfig unset default) - ifconfig manages interface configuration (IP, netmask, flags), not routing table entries; unset default is not valid syntax for it.
  • D (netstat -r default) - netstat -r displays the routing table; it has no ability to modify or delete routes.
  • E (sysctl ipv4.default_gw=0) - sysctl tunes kernel parameters (like net.ipv4.ip_forward), not routing table entries; the key ipv4.default_gw doesn't exist.

Memory tip: Think of it as "two tools, one job" - route (legacy) and ip route (modern) are the only two commands here that write to the routing table. Everything else either reads it (netstat), configures interfaces (ifconfig), or tweaks kernel knobs (sysctl).

Topics

#routing tables#default gateway#route command#ip command

Community Discussion

No community discussion yet for this question.

Full 102-500 Practice