Watch on Instagram

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.

Posted · About a 1 minute watch, 4 minute read · Take the quiz

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 forms ip addr and ip a. It shows each interface's addresses with their prefix length, such as 192.168.1.20/24. The gateway is shown by ip route, and DNS by resolvectl status or the file /etc/resolv.conf.
  • macOS: type ifconfig in Terminal to see the addresses. The gateway is shown by netstat -rn or route get default, and the DNS servers by scutil --dns or in Network settings.

The four settings that matter

  1. IP address, such as 192.168.1.20: your device's own address on the network.
  2. Subnet mask, such as 255.255.255.0: which addresses count as your local network, reachable directly.
  3. Default gateway, such as 192.168.1.1: the router that carries everything bound for other networks, including the internet.
  4. DNS servers: the servers that turn names like example.com into 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: ipconfig shows the address, mask and gateway per adapter; ipconfig /all adds the DNS servers, address-assignment details and the MAC address.
  • Linux: ip address (short forms ip addr and ip a) shows addresses and prefix lengths but not the gateway (ip route shows that) or DNS (resolvectl or /etc/resolv.conf).
  • macOS: ifconfig shows addresses; the gateway is in netstat -rn or route get default, and DNS in scutil --dns or 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.

1Which command shows your IP settings on Windows?
2On Linux, which command shows the addresses on each interface?
3Which setting tells your device where to send traffic bound for other networks, like the internet?
4Your laptop's ipconfig shows a subnet mask of 255.255.0.0, but every other device on your network uses 255.255.255.0. What does that tell you?

Sources

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

All Network Bytes lessons