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…
Question
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)- A3% (1)
- B74% (23)
- D16% (5)
- E6% (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) -ifconfigmanages interface configuration (IP, netmask, flags), not routing table entries;unset defaultis not valid syntax for it. - D (
netstat -r default) -netstat -rdisplays the routing table; it has no ability to modify or delete routes. - E (
sysctl ipv4.default_gw=0) -sysctltunes kernel parameters (likenet.ipv4.ip_forward), not routing table entries; the keyipv4.default_gwdoesn'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
Community Discussion
No community discussion yet for this question.