Troubleshooting

A Linux server can ping hosts on its own 192.168.10.0/24 subnet but cannot reach any other network, including the IP address 8.8.8.8. The output of ip route show contains only this line: 192.168.10.0/24 dev eth0 proto kernel scope link src 192.168.10.25. What is the BEST fix?

Show the answer

Correct answerB. Add a default route through the subnet's router, such as ip route add default via 192.168.10.1 dev eth0

The routing table has no default route, so the server has no next hop for off-subnet traffic. Adding a default route via the local router restores connectivity; make it persistent in the network configuration. A DNS change is wrong because pinging a raw IP address already fails without name resolution.