You are troubleshooting a client connectivity issue on PC1, which is connected to switch SW1. PC1 reports that it cannot access the internet, but it can ping its default gateway (192.168.1.1). The network uses VLAN 10 for the client subnet. Examine the following show outputs: On PC1, ipconfig shows IP 192.168.1.10, default gateway 192.168.1.1, DNS server 192.168.1.1. On SW1, show running-config includes 'interface Vlan10' with IP 192.168.1.1 255.255.255.0, but no 'ip dns server' and no 'ip name-server' commands. SW1's show ip route displays a default route via 203.0.113.1. Identify the root cause. Configure the necessary fix on the appropriate device to restore full connectivity.
Hints
- •Check DNS configuration on the switch.
- •The PC's DNS server is likely the default gateway (switch).
- •The switch needs to be configured to forward DNS queries.
! SW1 ip name-server 8.8.8.8
Why this answer
PC1 is configured with DNS server 192.168.1.1, which is the switch SW1. However, SW1 lacks DNS forwarding capability. To enable DNS relay on the switch, both the 'ip dns server' command (to activate the DNS forwarder) and 'ip name-server 8.8.8.8' (to point to an upstream resolver) are required.
Option A provides the necessary configuration to restore DNS resolution and internet connectivity.
Why the other options are wrong
A default gateway is needed only for management traffic from the switch itself, not for DNS forwarding; the switch already communicates with the router via its default route.
A static default route is already present and unrelated to DNS resolution; adding another route would not solve the name resolution failure.
The 'ip domain-lookup' command only enables the DNS client on the switch itself, not DNS forwarding for clients like PC1.
Why candidates pick the wrong answer
Candidates might confuse 'ip default-gateway' with a default route or think that the gateway is missing because PC1 cannot reach the internet, but PC1 can ping the gateway, so the gateway is reachable.
Candidates often assume that internet connectivity issues are always due to missing default routes, especially when the client can ping the gateway but not the internet. However, PC1 can ping the gateway, so routing is likely fine.
Candidates might think that enabling DNS lookup is sufficient, but without a server address, the switch cannot forward queries. This command alone does not fix client DNS resolution.