Network Bytes · Episode 71 · CCNA 1.10
"ipconfig / ip addr: check your IP settings"
Before blaming the network, check your own device's IP settings with one command, ipconfig on Windows, ip address on Linux or ifconfig on a Mac. Look at four things, the IP address, subnet mask, default gateway and DNS servers, because a blank or wrong one is your first clue.
Your device's ID card
Every device on a network carries a small set of IP settings, a bit like an ID card. They say who the device is on the network and where it sends traffic. When something stops working, it is tempting to blame the Wi-Fi, the router or the internet provider. But the quickest first check is your own device, and it takes one command.
One command per system
- Windows: open Command Prompt and type
ipconfig. It lists each network adapter with its address, subnet mask and default gateway. Add/all(ipconfig /all) to also see the DNS servers and the adapter's MAC address (Physical Address). - Linux: type
ip address, or the short formsip addrandip a. It shows each interface's addresses with their prefix length, such as192.168.1.20/24. The gateway is shown byip route, and DNS byresolvectl statusor the file/etc/resolv.conf. - macOS: type
ifconfigin Terminal to see the addresses. The gateway is shown bynetstat -rnorroute get default, and the DNS servers byscutil --dnsor in Network settings.
The four settings that matter
- IP address, such as
192.168.1.20: your device's own address on the network. - Subnet mask, such as
255.255.255.0: which addresses count as your local network, reachable directly. - Default gateway, such as
192.168.1.1: the router that carries everything bound for other networks, including the internet. - DNS servers: the servers that turn names like
example.cominto IP addresses.
Those four decide whether you get online at all. With no address you can't talk to anything; with no gateway you can reach your local network but nothing beyond it; with no working DNS, sites fail by name even though the connection is up.
Wrong settings are your clue
Read the output like a detective. A blank address, a subnet mask that doesn't match the rest of your network (say 255.255.0.0 where everyone else uses 255.255.255.0), or a missing default gateway each points to a problem on your own device or in how it got its settings. Spot that first, before you check a single cable or call anyone.
Try it yourself
Open Command Prompt on Windows and type ipconfig /all, or ip address on Linux, or ifconfig on a Mac. Find your adapter (often called Wi-Fi or Ethernet) and write down its IP address, subnet mask, default gateway and DNS servers. Check that your IP address and your gateway start with the same numbers, for example both 192.168.1.x with a mask of 255.255.255.0.
Good to know
- CCNA 1.10 is "Verify IP parameters for Client OS (Windows, Mac OS, Linux)".
- Windows:
ipconfigshows the address, mask and gateway per adapter;ipconfig /alladds the DNS servers, address-assignment details and the MAC address. - Linux:
ip address(short formsip addrandip a) shows addresses and prefix lengths but not the gateway (ip routeshows that) or DNS (resolvectlor/etc/resolv.conf). - macOS:
ifconfigshows addresses; the gateway is innetstat -rnorroute get default, and DNS inscutil --dnsor Network settings. - "Four things" is simplified to keep one idea; the command for each system is correct.
- The example addresses in the video are private and illustrative, and the terminal output is shortened.
For CCNA learners
CCNA 200-301 topic 1.10 Verify IP parameters for Client OS (Windows, Mac OS, Linux): know which command shows the address, mask, gateway and DNS on each system, and how to spot a setting that is missing or doesn't match the network.
Answer to the comment question
DHCP. An address starting with 169.254 is a link-local address that the device gave itself. A device does that when it was set to get its settings automatically, asked for an address, and no DHCP server answered (RFC 3927). With a self-assigned address there is usually no default gateway either, so you can't get online. Next step: check the cable or Wi-Fi connection, then the router or server that hands out addresses, and on Windows try ipconfig /renew.
Test your knowledge
Quick quiz: "ipconfig / ip addr: check your IP settings"
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- Microsoft Learn, "ipconfig": ipconfig shows address, mask and gateway; /all adds DNS servers and more detail
- man7.org, "ip-address(8): Linux manual page": ip address shows the addresses assigned to all interfaces
- IETF, "RFC 3927: Dynamic Configuration of IPv4 Link-Local Addresses": 169.254.0.0/16 self-assigned when no other configuration is available
- Cisco, CCNA 200-301 v1.1 exam topics: 1.10 verify IP parameters for Client OS (Windows, Mac OS, Linux)
Video transcript
How do you check your own computer's IP settings?
Before you blame the network, check your own device's ID card. One quick command shows it.
On Windows, open a command prompt and type ipconfig. On Linux, type ip address. On a Mac, it's ifconfig.
Check four things: your IP address, your subnet mask, your default gateway, and your DNS servers. On Windows, ipconfig /all shows all four. Those four decide whether you get online at all.
A blank address, the wrong subnet, or no gateway? That's your clue, before you touch a single cable or call anyone.
Your laptop shows 169.254.10.5. Which service probably failed? Comment your answer below!
That's your byte.
More from Network Bytes
- EP69"Ping: testing reachability"
- EP70"Traceroute: mapping the path"
- EP72"nslookup and DNS troubleshooting"
- EP73"show ip interface brief: up/down states"