nerdexam
Linux_Foundation

LFCS · Question #503

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

The correct answer is B. route add default gw 192.168.1.1. To create a default route, the route add default command followed by the gateway IP address is used.

Submitted by satoshi_tk· Apr 18, 2026Networking

Question

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

Options

  • Anetstat -add default gw 192.168.1.1
  • Broute add default gw 192.168.1.1
  • Cip route default 192.168.1.1
  • Droute default gw 192.168.1.1
  • Eifconfig default gw 192.168.1.1 eth0

How the community answered

(43 responses)
  • B
    91% (39)
  • C
    2% (1)
  • D
    2% (1)
  • E
    5% (2)

Why each option

To create a default route, the `route add default` command followed by the gateway IP address is used.

Anetstat -add default gw 192.168.1.1

`netstat` is used to display network connections, routing tables, and interface statistics, not to add routes.

Broute add default gw 192.168.1.1Correct

The `route` command is traditionally used on Linux systems to manipulate the kernel's IP routing tables. The syntax `route add default gw <gateway_ip>` specifically adds a default route, directing all traffic not matching other routes to the specified gateway.

Cip route default 192.168.1.1

While `ip route` is a modern command for routing, the correct syntax to add a default route is `ip route add default via 192.168.1.1`.

Droute default gw 192.168.1.1

The `route` command requires the `add` keyword to perform an addition operation.

Eifconfig default gw 192.168.1.1 eth0

`ifconfig` is used to configure network interfaces, not to add routing table entries, and its syntax for setting a default gateway is incorrect.

Concept tested: Adding a default route (route command)

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

Topics

#Networking#Routing#Default Route#route command

Community Discussion

No community discussion yet for this question.

Full LFCS Practice