CompTIA Linux+ Powered by LPI (LX0-104) — Question 9

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

Answer options

Correct answer: A, D

Explanation

The correct commands to delete the default gateway are 'route del default' and 'ip route del default', as they specifically target the routing table to remove the default route. The other options do not perform this function: 'ifconfig unset default' is not a valid command, 'netstat' is used for displaying routing tables but cannot delete entries, and 'sysctl' does not directly remove the route.