nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #769

LFCS Question #769: Real Exam Question with Answer & Explanation

The correct answer is D: route add defaultgw 192.168.1.1. The route add default gw <gateway_ip> command is used to configure a default gateway for network traffic on Linux systems.

Submitted by ngozi_ng· Apr 18, 2026Networking

Question

Identify the statement that would create a default route using a gateway of 192.168.1.1.

Options

  • Anetstat add defaultgw
  • Broute default 192.168.1.1
  • Cip route default 192.168.1.1
  • Droute add defaultgw 192.168.1.1
  • Eifconfig defaultgw 192.168.1.1 eth0

Explanation

The route add default gw <gateway_ip> command is used to configure a default gateway for network traffic on Linux systems.

Common mistakes.

  • A. netstat is primarily used for displaying network connections, routing tables, and interface statistics, not for adding routes.
  • B. route default 192.168.1.1 is syntactically incorrect; it lacks the add keyword and gw specifier.
  • C. ip route default 192.168.1.1 is incomplete for the ip command; the correct syntax would be ip route add default via 192.168.1.1.
  • E. ifconfig is used for configuring network interfaces, not for adding default routes; defaultgw is not a valid parameter for ifconfig.

Concept tested. Adding a default network route

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

Topics

#route command#default route#gateway#network configuration

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions