CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux web server on the 172.16.20.0/24 LAN suddenly loses the ability to reach any external network, although hosts on the same subnet remain reachable. The following routing table is displayed:

$ ip route show
default via 192.168.1.1 dev eth0 metric 10
default via 172.16.20.1 dev eth0 proto dhcp metric 100
172.16.20.0/24 dev eth0 proto kernel scope link src 172.16.20.55

The address 192.168.1.1 is not present on the current physical network. Which ONE command will immediately restore external connectivity while leaving the DHCP-supplied route in place?

  • iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

  • ip route del default via 192.168.1.1

  • ip link set eth0 mtu 1400

  • echo 1 > /proc/sys/net/ipv4/ip_forward

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
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