A server has two network interfaces: eth0 (10.0.1.10/24, gateway 10.0.1.1) and eth1 (192.168.1.10/24, no gateway). Both are up. The default gateway is set to 10.0.1.1. A ping to 8.8.8.8 fails, but ping to 10.0.1.1 succeeds. What is the most likely cause?
Trap 1: eth1 has no gateway configured
eth1 carries no default route and is not used for internet-bound traffic, so its missing gateway is irrelevant; the default route already points via eth0's 10.0.1.1. A second interface lacking a gateway is correct design when it serves only its local 192.168.1.0/24 subnet.
Trap 2: DNS resolution is failing
Ping to 8.8.8.8 is a raw ICMP echo to a literal IP address, so no name resolution occurs; DNS cannot cause this failure. DNS would be the culprit if pinging a hostname such as google.com failed while the numeric IP succeeded.
Trap 3: eth0 is down
The successful ping to 10.0.1.1 proves eth0 is up and forwarding, since that gateway is reachable only through eth0. A down eth0 would break that ping too. This option would fit if the local gateway were unreachable while remote hosts still responded.
- A
eth1 has no gateway configured
Why it fails: eth1 carries no default route and is not used for internet-bound traffic, so its missing gateway is irrelevant; the default route already points via eth0's 10.0.1.1. A second interface lacking a gateway is correct design when it serves only its local 192.168.1.0/24 subnet.
- B
The default route is missing or pointing to an incorrect gateway
Even though the gateway is reachable, the default route may be missing or misconfigured.
- C
DNS resolution is failing
Why it fails: Ping to 8.8.8.8 is a raw ICMP echo to a literal IP address, so no name resolution occurs; DNS cannot cause this failure. DNS would be the culprit if pinging a hostname such as google.com failed while the numeric IP succeeded.
- D
eth0 is down
Why it fails: The successful ping to 10.0.1.1 proves eth0 is up and forwarding, since that gateway is reachable only through eth0. A down eth0 would break that ping too. This option would fit if the local gateway were unreachable while remote hosts still responded.