Question 110
A Linux infrastructure team needs the safest targeted response to this condition: A Linux system has the wrong default gateway after DHCP renewal. What is the most appropriate targeted action?
Explanation
Correct Answer
A valid local IP cannot reach remote prefixes with no correct next hop. The proposed change is specific to this fault. Confirm the result: An off-subnet route resolves through the approved router.
Incorrect Answers
That remedy is appropriate when a DNS lookup returns the wrong private address because /etc/hosts has an old entry. It targets nSS lookup ordering can prioritize /etc/hosts over DNS; here a valid local IP cannot reach remote prefixes with no correct next hop, so it does not directly repair the observed fault.
This change addresses a server's DNS queries intermittently go to an unexpected resolver after network reconfiguration. The present problem is different: a valid local IP cannot reach remote prefixes with no correct next hop. Applying the alternative would leave the key cause unresolved.
That remedy is appropriate when a Linux server has two equal default routes and return traffic leaves the wrong interface. It targets route metrics and policy routing govern egress on multihomed systems; here a valid local IP cannot reach remote prefixes with no correct next hop, so it does not directly repair the observed fault.





CompTIA Linux+ (XK0-006) Practice Tests