What Is a Default Gateway?
What Is a Default Gateway?
A default gateway is the network device (typically a router) that serves as the access point for traffic leaving your local network. When your computer wants to communicate with a device that is not on the same local subnet, it sends the traffic to the default gateway, which then routes it to the correct destination - usually across the internet.
Think of the default gateway as the "exit door" of your local network. Your computer knows how to reach other devices on the same network directly, but for anything outside that network, it hands the packets to the gateway and says, "You figure out where this goes."
How Routing Works
When your device sends a packet, it follows this decision process:
- Check the destination IP: Is the destination on the same subnet as the sender?
- If yes (local): Send the packet directly to the destination device using ARP to resolve the MAC address.
- If no (remote): Send the packet to the default gateway, which consults its routing table to determine the next hop toward the destination.
- The gateway forwards the packet, possibly through several intermediate routers, until it reaches the destination network.
Your device determines whether a destination is local or remote by comparing the destination IP with its own IP and subnet mask using a bitwise AND operation. If the resulting network address matches its own network, the destination is local.
Finding Your Default Gateway
Here is how to find your gateway on each operating system:
| Operating System | Command | What to Look For |
|---|---|---|
| Windows | ipconfig | "Default Gateway" line under your active adapter |
| macOS | netstat -nr | grep default | IP address in the "Gateway" column |
| Linux | ip route | grep default | IP after "default via" |
| Android | Settings → Wi-Fi → tap network → Advanced | "Gateway" field |
| iOS | Settings → Wi-Fi → tap (i) → Router | "Router" field |
On Windows, you can also use route print for a detailed view of the routing table, where the default gateway appears as the route for 0.0.0.0 with a mask of 0.0.0.0.
Common Default Gateway Addresses
Most consumer routers use one of these addresses as their default gateway:
| Gateway IP | Commonly Used By |
|---|---|
192.168.1.1 | Linksys, ASUS, Netgear, Cisco, most routers |
192.168.0.1 | TP-Link, D-Link, Netgear (some models) |
192.168.2.1 | Belkin |
10.0.0.1 | Xfinity/Comcast, Apple AirPort, some ISP routers |
10.0.1.1 | Apple AirPort (older models) |
10.1.1.1 | Some enterprise and ISP configurations |
192.168.1.254 | Some Huawei, BT, and Thomson routers |
Troubleshooting Gateway Issues
If you cannot access the internet, the default gateway is one of the first things to check:
- Ping the gateway: Run
ping 192.168.1.1(or your gateway IP). If it responds, the local connection is fine and the problem is likely upstream. - No gateway assigned: If
ipconfigshows no default gateway, your device may not have obtained a DHCP lease. Tryipconfig /releasefollowed byipconfig /renew(Windows). - Wrong gateway: If the gateway IP does not match your router's IP, you may have a static configuration conflict. Switch to DHCP (automatic) in your network adapter settings.
- Gateway unreachable: If ping fails, check the physical connection (cable, Wi-Fi signal), restart the router, or check if the router is powered on.
- Multiple gateways: Having more than one default gateway (e.g., VPN + local) can cause routing conflicts. Ensure your routing table has a single preferred default route.
127.0.0.1), then your gateway, then a public IP (8.8.8.8), then a domain name (google.com). The point where it fails tells you where the problem lies.