QuestionQ149

Networking

Which command can be used to remove the default gateway entry from the system's IP routing table?

Choose two
  • A route del default
  • B ifconfig unset default
  • C netstat -r default
  • D ip route del default
  • E sysctl ipv4.default_gw=0
Explanation

On Linux, the default route can be removed using either of two command-line utilities: the legacy net-tools command 'route del default', which deletes the default route entry from the kernel routing table, or the modern iproute2 command 'ip route del default', which performs the same function using the newer routing management syntax. The other listed commands do not perform this function: 'ifconfig' only configures network interface parameters and has no 'unset' subcommand, 'netstat -r' only displays routing table information without modifying it, and there is no such sysctl parameter as 'ipv4.default_gw'.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!