Troubleshooting

A server on the 192.168.1.0/24 network was configured with the address 192.168.1.20/16 and a default gateway of 192.168.1.1. It reaches local hosts, but ping 192.168.2.10, a host in another network behind the router, returns "Destination Host Unreachable" from the server itself. ip neigh shows 192.168.2.10 as FAILED. What is the BEST fix?

Show the answer

Correct answerA. Change the prefix length to /24 so that 192.168.2.0/24 is not treated as on-link

With a /16 mask the server considers 192.168.2.10 on-link and ARPs for it directly, which fails because the host is behind the router. Correcting the prefix to /24 sends that traffic to the gateway. A default route already exists, and flushing the cache would only repeat the failed ARP.