A default gateway is the router (or device) that your computer sends traffic to when it needs to reach another network — like the internet. Without a valid gateway, your device is stuck on the local network with no way out.
Real Example
Here's a typical IP configuration you'd see in ipconfig:
If you try to visit Google, your computer checks: "Is Google on my local network?" The answer is no — so it sends the request to 192.168.1.1 (the gateway). The router then forwards it to the internet.
When Is the Default Gateway Used?
Traffic to devices on your local network (same 192.168.1.X range) goes directly — no gateway involved.
Accessing the internet, another office network, or any IP outside the local subnet — all traffic goes through the gateway.
How It Appears on the A+ Exam
Gateway-related questions almost always involve a device that can reach local machines but not the internet. Look for these scenario types:
The answer to all of the above is almost always: incorrect or missing default gateway.
Local works + internet fails = gateway problem. This is one of the most reliable diagnostic patterns on the A+ exam. Memorize it.
Troubleshooting a Missing Gateway
IP Address: 192.168.1.55
Subnet Mask: 255.255.255.0
Default Gateway: (blank)
If the Default Gateway field is blank, your device cannot access the internet. This typically indicates one of these causes:
Fix: Run ipconfig /release then ipconfig /renew to request a fresh DHCP lease, or manually set the gateway to your router's IP (usually 192.168.1.1 or 192.168.0.1).
How Routers Use the Gateway — Layer 3 Routing
Understanding what the default gateway actually does helps with Network+ routing questions. When your device sends a packet to a destination outside the local subnet, it hands it to the gateway. The router then examines its routing table — a list of known networks and which interface or next-hop router to use to reach them.
The last entry — 0.0.0.0/0 — is the gateway of last resort (also called the default route). If no more specific route matches the destination, the packet is forwarded here. This is exactly what your home router does: it has a default route pointing to your ISP's router, so anything not on your local network gets sent upstream.
Gateway of last resort = the default route = 0.0.0.0/0. On Cisco routers you'd configure it with ip route 0.0.0.0 0.0.0.0 [next-hop IP]. This appears in Network+ routing troubleshooting scenarios — if a router has no default route, packets to unknown networks are dropped.
On Cisco, show ip route displays the routing table. A line beginning with S* is a static default route.
Multiple Gateways and Routing Protocols
Enterprise networks don't rely on static routes for everything — they use dynamic routing protocols that let routers share information about available paths automatically. The gateway a router uses can change based on network conditions.
| Protocol | Type | Use case |
|---|---|---|
| Static routes | Manual | Small networks, specific fixed paths. Default route (0.0.0.0/0) is always static. |
| RIP | Dynamic (distance vector) | Legacy. Counts hops — max 15 hops. Slow convergence. Rarely used today. |
| OSPF | Dynamic (link state) | Most common interior routing protocol. Uses cost (bandwidth) to pick best path. Fast convergence. |
| EIGRP | Dynamic (hybrid) | Cisco proprietary. Fast convergence, uses bandwidth and delay as metrics. |
| BGP | Dynamic (path vector) | The internet's routing protocol — exchanges routes between ISPs and autonomous systems. |
Default Gateway in IPv6
IPv6 uses the same concept but works slightly differently. Rather than DHCP assigning a gateway, IPv6 devices use Router Advertisement (RA) messages — routers periodically broadcast their presence and IPv6 prefix on the local network. Devices use these advertisements to configure their own IPv6 address (SLAAC — Stateless Address Autoconfiguration) and learn the default gateway automatically.
IPv6 default gateways are link-local addresses (starting with fe80::) rather than full global unicast addresses. This is because link-local addresses are always reachable on the local segment regardless of global prefix changes.
SLAAC (Stateless Address Autoconfiguration) — devices generate their own IPv6 address from the router-advertised prefix + their MAC address (EUI-64). No DHCP server needed for basic IPv6 connectivity.
Exam scenarios
Final Summary
Preparing for the A+ Exam?
Practice exams and structured review make gateway troubleshooting scenarios automatic.
Related Networking Articles
Preparing for the A+ Exam?
See the books, practice exams, and free resources that actually work.