Understanding IPv4 Routing Table Output | Generated by AI

Home 2025.11

Understanding Your ip route Output

This is the IPv4 routing table from your Linux system (likely using the ip command from iproute2). It shows how your machine decides where to send packets based on destination IPs. Routes are matched by longest prefix (most specific first), and the default route catches everything else.

I’ll break it down entry by entry in a table for clarity, then summarize what it means overall. This ties back to our earlier chat: it’s a real-world example of a simple routing table with connected routes (local subnets) and a default gateway for the internet.

Destination Gateway (Next Hop) Device Protocol Scope Source IP Metric Notes
0.0.0.0/0 (default) 192.168.1.1 enp4s0 dhcp global (none) 100 All traffic not matching other routes goes here. Points to your router (likely your home gateway) on the Ethernet interface enp4s0. Discovered via DHCP.
169.254.0.0/16 (direct) enp4s0 kernel link (none) 1000 Link-local (APIPA) range for auto-config when DHCP fails. High metric means it’s a fallback—only used if no better route.
172.17.0.0/16 (direct) docker0 kernel link 172.17.0.1 (none) Docker’s default bridge network. “linkdown” means the interface is down (no active containers?). Your host acts as gateway for this subnet.
172.18.0.0/16 (direct) br-c33e38e216df kernel link 172.18.0.1 (none) Another Docker bridge (user-defined network?). Active, so containers on this bridge can reach the host via 172.18.0.1.
192.168.1.0/24 (direct) enp4s0 kernel link 192.168.1.35 100 Your local LAN subnet. Directly connected via enp4s0—packets to other devices on 192.168.1.x stay local (e.g., to your router at .1). Your machine’s IP is 192.168.1.35.

Key Insights

Quick Tests to Verify

If this is from your setup and something’s not working (e.g., no internet?), common fixes: Check cable/DHCP renewal (dhclient enp4s0), or flush routes (ip route flush cache). What’s going on—troubleshooting connectivity, or just curious about a specific entry?


Back

x-ai/grok-4-fast

Donate