By the end of this lesson you will be able to
- Open the network settings on Ubuntu 24.04 and Windows 11 and read the address details.
- List your addresses with `ip addr` or `ipconfig` and pick out the ones that matter.
- Look up a name with `resolvectl query` or `nslookup` and say what the answer shows.
- Trace a route with `tracepath` or `tracert` and read the hops.
- Inspect your routing table and find the default route.
You have met the ideas: addresses, gateway, DNS, ping. This lesson turns them into practice. Your computer has built-in tools that show exactly what it knows about the network. Using them is like a doctor taking your temperature before guessing: a few readings turn a vague complaint such as 'the internet is bad' into a precise finding such as 'I have an address but cannot reach the gateway'.
Start close, move outward
A good diagnosis checks things in order, from your own device out to the wider internet. If an early check fails, later ones will fail too, and you have found where to look. The tools in this lesson match the steps of the ladder.
- Step 1: SettingsJoined? Address?
- Step 2: Ping gatewayReach the router?
- Step 3: Trace routeWhere does it stop?
- Step 4: Look up a nameDoes DNS answer?
- Step 5: Open a siteEverything together
Read this figure as text
A flow of five checks from your own settings out to a website by name.
Step 1, Settings: am I joined to the network, and do I have an address that does not start with 169.254? Step 2, Ping gateway: can I reach my router, the door of my own network? Step 3, Trace route: where along the path to a site does the answer slow or stop? Step 4, Look up a name: does DNS turn a name into an address? Step 5, Open a site: does everything work together in the browser? The first step that fails shows where to look.
Network settings in the interface
Open the network settings
Menu names can differ slightly between releases. The ideas are the same.
On Ubuntu 24.04
Step 1: Open Settings
Press the Super key (the Windows key), type Settings and press Enter.
You should see: The Settings window opens with a list of sections on the left.
Step 2: Choose Wi-Fi or Network
Click Wi-Fi (or Network for a cable). Find the connected network in the list.
You should see: The connected network shows a tick or the word Connected.
Step 3: Open the details
Click the small gear (cog) beside the connected network, then open the Details tab.
You should see: You see Signal Strength, Link speed, IPv4 Address, Hardware Address, Default Route and DNS.
On Windows 11
Step 1: Open Settings
Press Windows + I.
You should see: The Settings window opens.
Step 2: Choose Network and internet
Click Network & internet on the left, then Wi-Fi (or Ethernet).
You should see: The connected network is shown with a status such as Connected, secured.
Step 3: Open the properties
Click Hardware properties (or the network's Properties).
You should see: You see the SSID, Network band, Link speed, IPv4 address, IPv4 DNS servers and Physical address (MAC).
Signal strength: Excellent
IPv4 Address: 192.168.1.20
Hardware Address: a4:5e:60:12:34:56
Default Route: 192.168.1.1
DNS: 192.168.1.1
- Marker 1: Radio link quality
- Marker 2: Your address (not 169.254)
- Marker 3: Your gateway
- Marker 4: Your DNS server
Read this figure as text
A simulated settings window listing signal strength, IPv4 address, hardware address, default route and DNS.
A simulated settings window titled Wi-Fi details with rows: Signal strength, Excellent (marker 1: how strong the radio link is); IPv4 Address, 192.168.1.20 (marker 2: your address, which should not start with 169.254); Hardware Address, a4:5e:60:12:34:56 (the MAC address); Default Route, 192.168.1.1 (marker 3: your gateway); DNS, 192.168.1.1 (marker 4: the name server). All values are made up.
Listing your addresses
Show addresses
ip addr lists every network interface and the addresses it holds. The interface called lo is the loopback: your computer talking to itself at 127.0.0.1. Your real connection has a name such as wlp2s0 (Wi-Fi) or enp3s0 (cable). Look for the line starting inet. The /24 after the address is the subnet mask in short form: it means 255.255.255.0.
ip addr- Marker 1: Command: list addresses
- Marker 2: Loopback: the computer talking to itself
- Marker 3: Your Wi-Fi interface, state UP
- Marker 4: Your address and mask (/24)
Read this figure as text
A simulated terminal showing ip addr output with the loopback and Wi-Fi interfaces.
A simulated terminal. Marker 1 is the command ip addr. The first entry, lo, is the loopback with the address 127.0.0.1/8 (marker 2: the computer talking to itself). The second entry, wlp2s0, is the Wi-Fi interface and its state is UP (marker 3). Its link/ether line gives the MAC address a4:5e:60:12:34:56. Its inet line gives 192.168.1.20/24, which is your private address with a mask of 255.255.255.0 (marker 4). The word dynamic shows that it came from DHCP. All values are made up.
ipconfig (met in the previous module) lists each adapter. Look for the one marked Wireless LAN adapter Wi-Fi or Ethernet adapter with an IPv4 Address and a Default Gateway. Adapters that say Media disconnected are not in use.
ipconfig- Marker 1: Command: list adapters
- Marker 2: Your private address
- Marker 3: Your gateway
- Marker 4: A cable adapter that is not in use
Read this figure as text
A simulated PowerShell window showing ipconfig output for a Wi-Fi adapter.
A simulated PowerShell window. Marker 1 is the command ipconfig. Under the heading Wireless LAN adapter Wi-Fi, the lines show IPv4 Address 192.168.1.20 (marker 2: your private address), Subnet Mask 255.255.255.0 and Default Gateway 192.168.1.1 (marker 3). A separate adapter, Ethernet adapter Ethernet, says Media disconnected (marker 4: no cable in use). All values are made up.
Looking up names
To check DNS directly, ask for a name's address. If the answer comes back, DNS works and the problem lies elsewhere. If it fails, you have found the fault.
Look up a name
The tool dig is popular but is not installed on Ubuntu by default, so we use the built-in alternative.
resolvectl query example.org asks the system's own resolver for the address of example.org and says which interface and which method answered. It is part of Ubuntu 24.04 and only reads information.
resolvectl query example.orgexample.org: 198.51.100.40 -- link: wlp2s0
-- Information acquired via protocol DNS in 21.4ms.nslookup example.org asks the DNS server your computer uses for the address. It first prints which server answered, then the name and the address.
nslookup example.orgServer: router.home
Address: 192.168.1.1
Non-authoritative answer:
Name: example.org
Address: 198.51.100.40Tracing and routing
Tracing shows the hops on the way to a destination, as you saw in the previous lesson. The routing table is your computer's own list of directions: which gateway handles which destinations. It nearly always has two kinds of lines: one for your own subnet (reach it directly) and one default line for everything else (send to the gateway).
Trace a route and read the routing table
tracepath example.org is included with Ubuntu and shows each hop with its delay. ip route prints the routing table.
tracepath example.org
ip routedefault via 192.168.1.1 dev wlp2s0 proto dhcp metric 600
192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.20The first line says: for everything not listed elsewhere, use the gateway 192.168.1.1. The second says: addresses from 192.168.1.0 to 192.168.1.255 are directly reachable on the Wi-Fi interface.
tracert example.org shows the hops. route print shows the routing table; in the IPv4 part, the line with network destination 0.0.0.0 is the default route.
tracert example.org
route printNetwork Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.20 45
192.168.1.0 255.255.255.0 On-link 192.168.1.20 301| Question | Ubuntu | Windows |
|---|---|---|
| What is my address? | ip addr | ipconfig |
| Can I reach my router? | ping -c 4 192.168.1.1 | ping 192.168.1.1 |
| Does DNS answer? | resolvectl query example.org | nslookup example.org |
| Where does the path stop? | tracepath example.org | tracert example.org |
| Where are my directions? | ip route | route print |
Common mistakes
✖ Instead of: Running commands from a website or chat that you do not understand.
✔ Do this: Run only commands you have read and understood. Prefer the read-only tools in this lesson.
✖ Instead of: Pasting full ipconfig or ip addr output into a public forum.
✔ Do this: It contains your MAC address and local addresses. Share only the lines needed, or replace the numbers.
✖ Instead of: Blaming DNS or the provider as soon as a page will not open.
✔ Do this: Work through the ladder: address, gateway, name lookup, then the website. The first failure shows the area.
If something goes wrong
pingortracepathsays 'command not found'.- Check the spelling and that you are in a Terminal, not a text editor. These tools come with Ubuntu 24.04 and Windows 11. If one is missing, do not install software from a random website; note the exact message and ask someone you trust.
- On Windows,
route printshows a very long list. - Look only at the IPv4 Route Table and the line starting 0.0.0.0. Ignore the IPv6 part for now.
nslookupprints 'Server: UnKnown' before the answer.- It only means your DNS server has no reverse name. The answer below is still valid.
Key terms
- Routing table
- A list inside a device that says which way to send data for each destination.
- Traceroute
- A tool that lists the routers a packet passes through on its way to a destination.
Practise it for real
Reading is not the same as being able to do it. Complete these on your own computer, then tick only what you have actually done. These ticks are your own honest record: nothing checks them for you.
Write your own network report
On your real computer, collect: your IPv4 address and mask, your default gateway, your DNS server, the result of pinging your gateway (loss and average time), and the result of looking up example.org. Write them in a short table on paper or in a document. Keep the report private.
Challenge: what do these results say?
A neighbour sends you three results. (a) Her address is 169.254.9.4. (b) Her address is 192.168.1.20 and a ping to her gateway gets 4 of 4 replies, but nslookup example.org says 'DNS request timed out'. (c) Her ping to the gateway gets 0 of 4 replies. For each, write the most likely area of the fault and the next check you would ask her to do.
Knowledge check
6 questions. You need 80% to pass. Mistakes here are part of learning, and you can retry as often as you like.
Summary
- Check close first and work outwards: settings, gateway ping, name lookup, website.
- ip addr and ipconfig show your address; ip route and route print show your directions.
- resolvectl query and nslookup test DNS; tracepath and tracert show where a path slows or stops.
- Use the tools to read, not to change, and share outputs carefully.
Checklist: can you do these?
Marking a lesson as read does not prove you can do it. Skills count as demonstrated when you pass the quiz (not yet) and complete the practical tasks (not yet).
Related lessons
References and further reading
Official sources for details that can change between versions.
- Networking, web, email and chat (Ubuntu Desktop Guide) (Ubuntu)
- nslookup command reference (Microsoft Learn)
- route command reference (Microsoft Learn)