CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux administrator has just added a new subnet behind an internal router, but the company's web server (192.168.56.101) still cannot reach any hosts on 192.168.100.0/24. The router's LAN address is 192.168.56.1, and it is connected to the server through interface enp0s8. The current routing table on the server contains only the following entries:

default via 10.0.0.1 dev enp0s3 proto dhcp metric 100
10.0.0.0/24 dev enp0s3 proto kernel scope link src 10.0.0.5 metric 100
192.168.56.0/24 dev enp0s8 proto kernel scope link src 192.168.56.101 metric 100

Which single command, executed as root, will immediately allow the server to reach the 192.168.100.0/24 network until the next reboot?

  • ip route add 192.168.100.0/24 dev enp0s8 src 192.168.56.101

  • ip route add -net 192.168.56.1 netmask 255.255.255.0 gw 192.168.100.0

  • ip route add 192.168.100.0/24 via 192.168.56.1 dev enp0s8

  • ip route add default via 192.168.56.1 dev enp0s8

CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot