1.10 Verify IP settings on Windows, macOS and Linux clients

CCNA 200-301 v1.1 · 1.0 Network Fundamentals

When a user cannot reach anything, the first questions are on the host itself: does it have an address, the right mask, a default gateway and a DNS server? For the CCNA you find these on Windows, macOS and Linux, and read what the answers mean.

What you must know

The commands per operating system

TaskWindowsmacOSLinux
Addresses, mask, MACipconfig /allifconfig en0 or ipconfig getifaddr en0ip address (ip a)
Default gatewayipconfignetstat -rn or route -n get defaultip route
DNS serversipconfig /allscutil --dnsresolvectl status or /etc/resolv.conf
Renew DHCPipconfig /release then /renewsudo ipconfig set en0 DHCPsudo dhclient -r && sudo dhclient (or NetworkManager)
ARP / neighborsarp -aarp -aip neigh

Graphical settings show the same data, but the exam (and real troubleshooting) favour the command line because it shows everything at once.

Reading the result

  1. ping 127.0.0.1: the host's TCP/IP stack works.
  2. Ping its own address, then the default gateway (1): the NIC, address and LAN work.
  3. Ping a remote address, then a name (2): routing beyond the gateway, then DNS.
SymptomLikely cause
Address 169.254.x.xNo answer from DHCP: check the cable, VLAN, relay and server.
Gateway in another subnet, or blankWrong static settings or a wrong DHCP option.
Remote addresses ping, names failMissing or wrong DNS server.
Only some hosts on a subnet reachableWrong mask on this host.

Commands

ipconfig /allWindows: every adapter's settings, DHCP server and lease.
ip address / ip routeLinux: addresses and the routing table with the default route.
nslookup <name>Every OS: which DNS server answers and what it says.
tracert / tracerouteThe path to a remote address, hop by hop.

Exam traps

Check yourself

A Windows PC shows 169.254.10.4. What happened, and what do you try first?
It got no DHCP answer. Check the link and VLAN, then ipconfig /release and /renew.
Which Linux command shows the default gateway?
ip route (the default via … line).
A host pings 8.8.8.8 but not www.cisco.com. What is wrong?
Name resolution: the DNS server setting or the DNS server itself.

Labs

Try it live: IPv4 subnets, IPv6 and client settings on Windows, macOS and Linux

More topics in 1.0 Network Fundamentals