CCNA 200-301Chapter 143 of 260Objective 3.2

Troubleshoot: Missing or Wrong Default Gateway

Imagine you're at a hotel and you ask the front desk for directions to a restaurant across town. If the front desk gives you wrong directions or none at all, you'll never reach your destination. In networking, the default gateway is that front desk — it's the router that forwards traffic destined for networks beyond the local subnet. On the CCNA 200-301 exam (Objective 3.2), you'll need to diagnose scenarios where a host can't reach remote destinations because its default gateway is missing, misconfigured, or unreachable. This is one of the most common real-world troubleshooting issues, and mastering it will save you time both on the exam and in the field.

25 min read
Beginner
Updated May 31, 2026

The Hotel Concierge with Wrong Directions

Think of a hotel where each guest room is a host on a local network. The concierge desk (default gateway) is the only way guests can get information about places outside the hotel — restaurants, museums, airports. Each guest has a phone with a speed-dial button programmed for the concierge. If the speed-dial number is wrong (misconfigured default gateway), the guest calls a random room instead of the concierge, and that room has no idea how to help. If the speed-dial is missing (no default gateway configured), the guest can't call anyone outside the hotel at all. Even if the speed-dial is correct, the concierge might be on a break (gateway down) or the phone line might be cut (layer 1/2 issue). In a real hotel, the concierge also has a map of all local streets (routing table) to give accurate directions. If the concierge's map is outdated or missing (no route to destination), the guest gets a 'cannot reach destination' message. The guest's phone also has a local directory for calling other rooms in the hotel (ARP table for local hosts). The guest can call other rooms directly without the concierge, but for any outside call, the concierge is mandatory. This mirrors exactly how a host uses its default gateway: it can communicate with devices on its own subnet via ARP, but for any IP address outside its subnet, it must send the packet to the default gateway's MAC address. The gateway then routes the packet based on its routing table.

How It Actually Works

What Is a Default Gateway and Why Does It Exist?

A default gateway is the router that a host uses to send packets to destinations outside its own IP subnet. When a host wants to communicate with another device, it first checks if the destination IP is on the same subnet by performing a logical AND between its own IP and subnet mask, and comparing it to the destination IP ANDed with the same mask. If they match, the destination is local, and the host sends an ARP request to get the destination's MAC address. If they don't match, the host must send the packet to its default gateway. The host then sends an ARP request for the default gateway's IP address (not the remote destination's IP), gets the gateway's MAC, and builds a frame with the gateway's MAC as the destination. The gateway receives the frame, decapsulates the IP packet, looks up the destination IP in its routing table, and forwards it accordingly.

How It Works at the Packet/Frame Level

When a host (say 192.168.1.10/24) wants to send a packet to 8.8.8.8: 1. Host performs AND: 192.168.1.10 AND 255.255.255.0 = 192.168.1.0. Destination 8.8.8.8 AND 255.255.255.0 = 8.8.8.0. They don't match -> destination is remote. 2. Host checks its ARP cache for the default gateway's IP (e.g., 192.168.1.1). If not present, it sends an ARP request: "Who has 192.168.1.1? Tell 192.168.1.10". 3. The router with IP 192.168.1.1 replies with its MAC address. 4. Host builds an Ethernet frame: source MAC = own MAC, destination MAC = router's MAC, source IP = 192.168.1.10, destination IP = 8.8.8.8. 5. Router receives the frame, sees destination MAC matches its interface, decapsulates the IP packet, looks up 8.8.8.8 in its routing table, and forwards it out the appropriate interface.

Key States, Timers, and Defaults

Default gateway configuration on a Windows host: Set via TCP/IP properties. Can be configured statically or obtained via DHCP.

Default gateway on a Cisco switch (as a host): Configured with ip default-gateway <ip> when the switch is in layer 2 mode (no ip routing). For layer 3 switches, use ip route 0.0.0.0 0.0.0.0 <next-hop>.

ARP timeout: Default 4 hours on Cisco routers, 20 minutes on Windows. If the ARP entry for the default gateway ages out, the host must re-ARP before sending traffic.

ICMP redirect: If a router receives a packet on an interface and forwards it out the same interface (i.e., the gateway is not the optimal next hop), it may send an ICMP redirect to the host, telling it to use a different gateway. This can cause confusion if misconfigured.

IOS CLI Verification Commands

On a Cisco router, you can check the default gateway (or default route) with:

show ip route

Look for a line starting with S* or Gateway of last resort is not set. Example output:

Gateway of last resort is 10.0.0.1 to network 0.0.0.0

S*   0.0.0.0/0 [1/0] via 10.0.0.1

On a layer 2 switch, verify with:

show ip default-gateway

Example output:

Default gateway is 192.168.1.1

On a host (Windows):

ipconfig

Look for "Default Gateway".

Interaction with Related Protocols

DHCP: The default gateway is often assigned via DHCP option 3 (Router). If the DHCP server doesn't provide it, or provides a wrong IP, the host will have no or incorrect gateway.

Proxy ARP: If a host has no default gateway configured, it may still reach remote hosts if the router responds to ARP requests for remote IPs (proxy ARP). This can mask a missing gateway configuration and cause intermittent issues.

VRRP/HSRP: In high-availability setups, multiple routers share a virtual IP as the default gateway. If the active router fails, the standby takes over. Misconfiguration can lead to hosts pointing to a virtual IP that doesn't exist.

Walk-Through

1

Verify host IP configuration

Start by checking the host's IP address, subnet mask, and default gateway. On Windows, use `ipconfig /all`. Ensure the subnet mask is correct — a wrong mask can make the host think a remote IP is local, causing it to ARP for the destination directly (and fail). On Linux/macOS, use `ifconfig` or `ip addr`. On a Cisco device, use `show ip interface brief` for layer 3 interfaces or `show running-config | include default-gateway` for layer 2 switches. If the gateway is missing, check DHCP configuration or static settings.

2

Ping the default gateway

From the host, ping the default gateway's IP address. If it fails, the issue is likely layer 1/2 (cable, VLAN mismatch, switchport issue) or the gateway itself is down. If it succeeds but you can't reach remote destinations, the gateway might not have a route to the destination, or there's a firewall blocking traffic. On Cisco routers, you can also ping from the router to the host to verify bidirectional connectivity. Use extended ping to specify source interface if needed.

3

Check ARP for default gateway

On the host, check the ARP cache to see if the default gateway's MAC address is present. On Windows: `arp -a`. Look for the gateway's IP and ensure it maps to a valid MAC address (not incomplete). If the entry is missing or incomplete, the host couldn't resolve the gateway's MAC. This could be due to a VLAN mismatch (gateway on different VLAN than host) or the gateway not responding to ARP. On Cisco, use `show arp` or `show ip arp` to see the router's ARP table.

4

Verify gateway routing table

Log into the default gateway router and check its routing table with `show ip route`. Look for a default route (0.0.0.0/0) or a specific route to the destination network. If the gateway has no route to the destination, it will drop the packet and send an ICMP Destination Unreachable (Network Unreachable) back to the host. Also check for any access-lists that might be blocking traffic. Use `show access-lists` and `show ip interface` to see if ACLs are applied.

5

Check for multiple default gateways

A host should only have one default gateway. If multiple gateways are configured (e.g., static and DHCP), the host may use the wrong one. On Windows, check with `route print` — look for the line with Network Destination 0.0.0.0. There should be only one. On Cisco routers, multiple default routes can exist with different administrative distances; the one with lowest AD is used. Use `show ip route 0.0.0.0` to see all candidates.

6

Test with traceroute

Use `tracert` (Windows) or `traceroute` (Cisco/Linux) to see the path packets take. If the first hop is not the expected default gateway, the host is sending traffic elsewhere. If the first hop is correct but subsequent hops fail, the issue is beyond the gateway. On Cisco, use `traceroute <destination>` from the router to verify routing from the gateway's perspective. This helps isolate whether the problem is on the host or the network.

What This Looks Like on the Job

In enterprise networks, the default gateway is typically a router or a layer 3 switch that connects the local VLAN to the rest of the network. One common scenario is in a multi-VLAN environment where each VLAN has its own default gateway (the switch virtual interface or SVI). A network engineer might configure a new VLAN for a department, assign an IP to the SVI, and set that IP as the default gateway for hosts in that VLAN via DHCP. If the SVI is not created or the VLAN is not allowed on the trunk, hosts will have no gateway. Another scenario is when using DHCP: the DHCP server might be misconfigured to hand out a wrong default gateway (e.g., pointing to a router that doesn't exist or is on a different subnet). This causes hosts to get an IP and subnet mask but be unable to reach the internet. In production, a common mistake is forgetting to configure ip default-gateway on a layer 2 switch that needs management access from a different subnet. Without it, the switch can only be managed from its own subnet. For high availability, protocols like HSRP or VRRP provide a virtual IP as the default gateway. If both routers are misconfigured (e.g., both active), hosts may experience intermittent connectivity. Performance-wise, a single default gateway can become a bottleneck if it handles traffic for many hosts; proper design uses multiple gateways with routing protocols. When misconfigured, the symptoms are clear: hosts can communicate locally but not remotely. The fix usually involves verifying the gateway's IP on the host, checking the router's interface status and routing table, and ensuring layer 2 connectivity (VLAN membership, trunking).

How CCNA 200-301 Actually Tests This

The CCNA 200-301 exam (Objective 3.2) tests your ability to troubleshoot missing or wrong default gateway configurations. Expect scenario-based questions where you are given a topology, host configuration outputs, and router show commands. You must identify why a host cannot reach a remote server. The most common wrong answers: 1) "The host's subnet mask is wrong" — this is often a distractor; while a wrong mask can cause issues, the question usually focuses on the gateway. 2) "The router's interface is down" — if the gateway is unreachable, ping would fail, but the question might show that ping to gateway succeeds. 3) "The host has no route to the destination" — hosts don't have routing tables; they rely on the default gateway. 4) "ARP cache is full" — not a typical cause; ARP cache size limits are rarely hit. Specific values to remember: The default gateway must be on the same subnet as the host. On a Cisco switch, the command is ip default-gateway <ip>. On a router, the default route is ip route 0.0.0.0 0.0.0.0 <next-hop>. The show ip route output shows "Gateway of last resort is not set" if no default route exists. For scenario questions, use this decision rule: If the host can ping the gateway but not remote, the problem is on the gateway (routing, ACL). If the host cannot ping the gateway, check layer 1/2 or gateway itself. If the host has no gateway configured, check DHCP or static config. Elimination strategy: Look for the simplest explanation first — often a missing or wrong IP in the host's default gateway field.

Key Takeaways

The default gateway must be on the same subnet as the host.

On a host, use `ipconfig /all` (Windows) or `ip route show` (Linux) to verify default gateway.

On a Cisco layer 2 switch, use `ip default-gateway <ip>` to set the gateway.

On a Cisco router, the default route is configured with `ip route 0.0.0.0 0.0.0.0 <next-hop>`.

The `show ip route` command on a router shows the default gateway as 'Gateway of last resort'.

If a host can ping its default gateway but not remote hosts, the gateway likely lacks a route or has an ACL blocking traffic.

A missing default gateway causes the host to be unable to reach any remote IP, even if it can reach local hosts.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Static Default Gateway

Manually configured on each host.

Does not change unless manually updated.

Prone to human error (typos).

Works even if DHCP server is down.

Common for servers and network devices.

DHCP-Assigned Default Gateway

Automatically assigned by DHCP server.

Can be updated centrally by changing DHCP scope.

Reduces configuration overhead on hosts.

Requires DHCP server to be reachable and working.

Common for end-user workstations and mobile devices.

Watch Out for These

Mistake

A host can have multiple default gateways and will use them all for load balancing.

Correct

A host (Windows/Linux) typically uses only one default gateway. If multiple are configured, the one with the lowest metric is used. Load balancing across multiple gateways requires special routing protocols or policy-based routing.

Candidates confuse host behavior with router behavior where multiple default routes can exist with equal cost.

Mistake

If a host cannot ping the default gateway, the gateway is definitely down.

Correct

The gateway might be up but unreachable due to a VLAN mismatch, incorrect switchport configuration, or a firewall blocking ICMP. Always check layer 1/2 connectivity first.

Candidates jump to the most obvious conclusion without considering intermediate issues.

Mistake

The default gateway IP must be the same as the router's interface IP.

Correct

The default gateway IP is typically the router's interface IP on the same subnet, but it could also be a virtual IP (HSRP/VRRP) that floats between routers.

Candidates think of a single router scenario and forget about redundancy protocols.

Mistake

Setting a default gateway on a layer 2 switch allows it to route traffic between VLANs.

Correct

The `ip default-gateway` command on a layer 2 switch only allows management access from remote subnets. To route between VLANs, the switch must have IP routing enabled (layer 3 switch) or use an external router.

Candidates confuse management gateway with routing functionality.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

What command shows the default gateway on a Cisco switch?

On a layer 2 Cisco switch, use `show ip default-gateway`. This command displays the configured default gateway IP. If nothing is configured, it will show that no default gateway is set. On a layer 3 switch with IP routing enabled, use `show ip route` to see the default route. Remember: the `ip default-gateway` command is only for layer 2 switches that need management access from a different subnet.

Can a host have more than one default gateway?

Yes, a host can have multiple default gateways configured, but it will only use one at a time based on the metric. On Windows, you can add multiple default routes with different metrics using `route add`. The one with the lowest metric is used. However, this is not common in practice because it can cause asymmetric routing. For redundancy, protocols like HSRP provide a single virtual IP that multiple routers share.

Why can I ping the default gateway but not the internet?

This indicates that the host can reach its local gateway, but the gateway cannot forward traffic to the internet. Possible causes: the gateway router has no default route (0.0.0.0/0) to an upstream ISP, the ISP's router is down, an access control list (ACL) on the gateway blocks outbound traffic, or NAT is misconfigured. Check the router's routing table with `show ip route` and look for a default route.

What is the difference between `ip default-gateway` and `ip route 0.0.0.0 0.0.0.0`?

`ip default-gateway` is used on layer 2 switches (no IP routing) to provide a gateway for management traffic. It is not a route; it simply tells the switch where to send packets that are not on its local subnet. `ip route 0.0.0.0 0.0.0.0 <next-hop>` is used on routers and layer 3 switches to create a default route in the routing table, which is used to forward all traffic with no more specific match.

How does a host decide whether to use the default gateway?

The host performs a logical AND between its own IP and subnet mask, and between the destination IP and subnet mask. If the results are equal, the destination is on the same subnet, and the host sends an ARP request for the destination directly. If they are different, the host sends the packet to the default gateway's MAC address. This is a fundamental rule: a host only uses the gateway for off-subnet traffic.

What is proxy ARP and how does it relate to default gateway?

Proxy ARP is a feature where a router responds to ARP requests on behalf of another device. If a host has no default gateway configured, it may still send an ARP request for a remote IP. If a router on the same subnet has proxy ARP enabled, it will respond with its own MAC address, allowing the host to send traffic to that router. This can mask a missing default gateway configuration, but it is not a reliable substitute and can cause performance issues.

On Windows, how do I check the default gateway using command line?

Open Command Prompt and type `ipconfig`. Look for the line "Default Gateway" under your network adapter. For more details, use `ipconfig /all`. To see the routing table, use `route print` and look for the entry with Network Destination 0.0.0.0. The gateway listed there is the default gateway. If no entry exists, there is no default gateway configured.

Terms Worth Knowing

Ready to put this to the test?

You've just covered Troubleshoot: Missing or Wrong Default Gateway — now see how well it sticks with free CCNA 200-301 practice questions. Full explanations included, no account needed.

Done with this chapter?