nerdexam
Linux_Foundation

LFCS · Question #60

What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

The correct answer is A. route del default D. ip route del default. This question asks for the correct commands to delete the default gateway entry from the system's IP routing table.

Submitted by neha2k· Apr 18, 2026Networking

Question

What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

Options

  • Aroute del default
  • Bifconfig unset default
  • Cnetstat -r default
  • Dip route del default
  • Esysctl ipv4.default_gw=0

How the community answered

(23 responses)
  • A
    91% (21)
  • B
    4% (1)
  • E
    4% (1)

Why each option

This question asks for the correct commands to delete the default gateway entry from the system's IP routing table.

Aroute del defaultCorrect

The `route del default` command uses the older `route` utility to remove the default route, effectively deleting the default gateway from the routing table.

Bifconfig unset default

`ifconfig` is primarily used for configuring network interfaces, not for directly manipulating routing table entries like deleting a default gateway, and it does not have an 'unset default' option.

Cnetstat -r default

`netstat -r` is used to display the routing table, not to modify or delete routes within it.

Dip route del defaultCorrect

The `ip route del default` command uses the modern `ip` utility (from the iproute2 suite) to delete the default route, which serves as the default gateway.

Esysctl ipv4.default_gw=0

`sysctl` is used to modify kernel parameters at runtime, not to directly delete specific routes from the routing table; `ipv4.default_gw` is not a standard sysctl parameter for this purpose.

Concept tested: Deleting default routes

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

Topics

#Networking#IP Routing#Default Gateway#Command Line Utilities

Community Discussion

No community discussion yet for this question.

Full LFCS Practice