Pcornel
Networking · IP Fundamentals › Client IP Verification

Linux

Cheat sheet · https://pcornel.dk/topic.php?topic=575

Back to the Topic

Answer

On Linux, verify client addressing with ip -br address, ip route (default gateway), resolvectl status or /etc/resolv.conf (DNS) and ping/tracepath to the gateway and beyond.

First checks

  • ip -br addr — addresses per interface
  • ip route — default gateway
  • resolvectl status — DNS servers
  • ping -c 3 <gateway> — gateway reachability

Commands

traceroute
Discover path hops toward a destination by eliciting TTL-expiry responses.
ip link
Inspect or change interface link state, MTU, MAC address and link-layer properties.
ip route
Inspect or change kernel routing-table entries and route-selection attributes.
dig
Issue DNS queries and display response sections, flags, timing and selected resolver behavior.
ip neigh
Inspect or change ARP and IPv6 neighbor-cache entries and reachability state.
ping
Send ICMP echo requests from Windows.
nslookup
Query DNS servers from Windows.
ip address
Display or change IP addresses on Linux interfaces.
ip address show [dev IFNAME]
ip address add
ip address show
ip a
ip -br a
ip route get <dst>
ip -br link
ethtool <dev>

Verify in this order

address → gateway → ARP → remote IP → DNS

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=575

Confirmation

Confirm action

Continue?