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.
netstatis primarily used for displaying network connections, routing tables, and interface statistics, not for adding routes. - B.
route default 192.168.1.1is syntactically incorrect; it lacks theaddkeyword andgwspecifier. - C.
ip route default 192.168.1.1is incomplete for theipcommand; the correct syntax would beip route add default via 192.168.1.1. - E.
ifconfigis used for configuring network interfaces, not for adding default routes;defaultgwis not a valid parameter forifconfig.
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.