Pcornel
Networking · IP Fundamentals

Client IP Verification

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

Back to the Topic

Answer

Client IP verification checks a host's own view — IP address, mask/prefix, default gateway and DNS servers — before blaming the network, using ipconfig, ip address/ip route or ifconfig/networksetup.

Remember

Read the host's own settings first: address, prefix, gateway, DNS. 169.254.x.x means DHCP failed; a gateway outside the host's subnet cannot work; wrong DNS makes names fail while IP addresses work. Clear stale state with ipconfig /renew and ipconfig /flushdns (Windows) or by restarting the interface.

First checks

  • ipconfig /all (Windows) — address, mask, gateway, DNS, DHCP server and lease.
  • ip -br addr and ip route (Linux) — addresses and default route.
  • resolvectl status (Linux) / scutil --dns (macOS) — DNS servers in use.
  • arp -a / ip neigh — gateway MAC resolved.
  • nslookup <name> — DNS answer and which server gave it.

Commands

show ip interface brief
Compact IPv4 interface/address/protocol state.
ip addr
ip route
nmcli
ip neigh
nslookup
dig
resolvectl query
tracert
traceroute
ip -br a; ip route
resolvectl status
nmcli con up …
sudo ipconfig set en0 DHCP

Verify in this order

link up → address received (not APIPA) → prefix and gateway consistent → gateway resolved and answers → DNS server set and answers → names and destinations reachable

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=573

Confirmation

Confirm action

Continue?