CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux administrator receives complaints that a web server with two NICs cannot reach any public Internet hosts, but it can still communicate with systems on the company's internal 10.10.0.0/16 network. The current IPv4 routing table is:

$ ip route
default via 10.10.0.1 dev eth0 proto dhcp metric 100
10.10.0.0/16 dev eth0  proto kernel  scope link  src 10.10.0.50
192.168.50.0/24 dev eth1  proto kernel  scope link  src 192.168.50.10

Corporate firewalls are configured to allow outbound traffic only from the 192.168.50.0/24 segment, and the correct gateway for that network is 192.168.50.1. Which command will most effectively restore Internet connectivity while leaving the existing internal routes intact?

  • ip route del default via 10.10.0.1 && ip route add default via 192.168.50.1 dev eth1 metric 10

  • echo "GATEWAY=192.168.50.1" >> /etc/sysconfig/network

  • ip route add default via 192.168.50.1 dev eth1 metric 10

  • ip addr add 192.168.50.1/24 dev eth1

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