Objective
Find out how networking is set up on your own PC: the adapter and its driver, the addresses, the DNS cache, the routes, the connections, the services and the network profile. You only look. Nothing in this lab changes a setting (one optional step empties the DNS cache, which is harmless).
Time: 25–30 minutes
You need: A Windows PC that is connected to a network. No extra software.
What to Open
| Tool | How to open it |
|---|---|
| PowerShell | Press Win, type PowerShell, press Enter (normal, not admin) |
| Command Prompt | Press Win, type cmd, press Enter |
| Device Manager | Press Win + X, choose Device Manager |
| Task Manager | Press Ctrl + Shift + Esc |
| Resource Monitor | Press Win + R, type resmon, press Enter |
Part 1: My Adapter and Its Driver
In PowerShell:
Get-NetAdapter- Name of my active adapter (Status = Up): ________________
- InterfaceDescription (model): ________________
- LinkSpeed: ________________
- MacAddress: ________________
Now the driver details:
Get-NetAdapter | Format-List Name, InterfaceDescription, DriverVersion, DriverDate, DriverFileName, NdisVersion- DriverVersion and DriverDate: ________________
- DriverFileName (the miniport file): ________________
In Device Manager, open Network adapters, double-click your adapter, and open the Driver tab. The version and date should match.
- How many adapters are listed under Network adapters? How many look virtual (Hyper-V, VPN, "WAN Miniport", loopback)? ________________
Part 2: My Addresses (ipconfig /all)
In Command Prompt:
ipconfig /all
Find your active adapter and fill in:
- IPv4 Address: ________________
- Subnet Mask: ________________
- Default Gateway: ________________
- DHCP Enabled / DHCP Server: ________________
- Lease Obtained and Lease Expires: ________________
- DNS Servers: ________________
If your IPv4 address starts with 169.254, DHCP did not answer (Section 6.2).
PowerShell gives the same facts in short form:
Get-NetIPConfiguration
Get-NetIPAddressDo not run ipconfig /release or /renew in this lab: they disconnect you briefly.
Part 3: DNS (nslookup and the Cache)
nslookup example.com
- Server (which DNS server answered): ________________
- Address(es) returned: ________________
Now the Windows cache:
Get-DnsClientCache | Select-Object -First 10- Name one entry and its TTL (time left): ________________
Optional: ipconfig /flushdns (or Clear-DnsClientCache) empties the cache. It is safe: the next page you open just does a fresh lookup. Run Get-DnsClientCache again and see how short the list is.
Resolve-DnsName example.com- Does the address match what
nslookupshowed? ________________
Part 4: Routes and Neighbors
route print
- Find the row with Network Destination 0.0.0.0 and Netmask 0.0.0.0. Its Gateway is: ________________ (it should match your default gateway from Part 2).
- What is its Metric? ________________
Get-NetNeighbor -AddressFamily IPv4 | Select-Object -First 10
arp -a- Is your gateway's IP in the list? What MAC is shown? ________________
Part 5: Connections (netstat -ano)
netstat -ano
- Find one line with LISTENING. What port is it and what is its PID? ________________
- Find one ESTABLISHED line. What is the remote address and port (443 means HTTPS)? ________________
- Open Task Manager → Details, add the PID column (right-click header, Select columns), and find the program owning the PID from line 22: ________________
Then open Resource Monitor → Network tab and expand TCP Connections. Match a row with what you saw.
netstat -s
- Find the TCP section. How many Segments Retransmitted? ________________
Part 6: Services and Firewall
Get-Service Dnscache,Dhcp,BFE,mpssvc,NlaSvc
Get-NetFirewallProfile | Select-Object Name, Enabled, DefaultInboundAction, DefaultOutboundAction
netsh advfirewall show allprofiles
netsh interface tcp show global- Are all five services Running? ________________
- Which firewall profiles are Enabled? ________________
- What is the default inbound action? ________________
- What is the Receive Window Auto-Tuning Level? ________________
In Task Manager → Services, find the same services and compare their status.
Part 7: My Network Profile
Get-NetConnectionProfile- NetworkCategory (Public, Private, DomainAuthenticated): ________________
In Windows 11, open Settings → Network & internet → Wi-Fi (or Ethernet) → your network and look at the Network profile type. (In Windows 10, it is under Settings → Network & Internet → Properties.) Look only. Do not change it unless you really know the network.
Part 8 (Optional): Event Viewer
Open Event Viewer (Win + R, eventvwr.msc). Go to Applications and Services Logs → Microsoft → Windows → NetworkProfile → Operational. If entries exist, notice that Windows logs when it connects to a network. (The log may be empty or missing on some PCs.)
What Should Happen
- Part 1 shows a miniport driver, a version, a date and a link speed.
- Part 2 shows an IP address, gateway and DNS from DHCP, with a lease start and end.
- Part 3 shows the name turning into an address, and the cache holding recent names.
- Part 4 shows the default route pointing at your gateway, and the gateway's MAC in the neighbor list.
- Part 5 shows listening ports and established connections that match real programs.
- Part 6 and 7 show the services running and a profile that matches your network.
Interpretation Guide
| What you see | What it means |
|---|---|
| LinkSpeed 1 Gbps / 866.7 Mbps | The speed your adapter agreed on with the router or access point |
| IPv4 address 169.254.x.x | DHCP failed; APIPA fallback (Section 6.2) |
| Default gateway = the 0.0.0.0 route's gateway | The routing table matches your settings |
nslookup works but a site fails in the browser | Check the hosts file, the DNS cache, or the firewall |
Get-DnsClientCache is nearly empty after a flush | Normal. It refills as you browse |
| LISTENING on port 135, 445 | Normal Windows services (RPC, file sharing). Firewall rules decide who may reach them |
| Many connections to remote port 443 | Normal; browsers and apps using HTTPS |
BFE or mpssvc Stopped | Firewall is not working; investigate |
| NetworkCategory Public | The safe default for networks you do not control |
Follow-Up Questions
- In Part 2, which service gave you the IP address and DNS servers? In Part 6, did you see that service running?
- Why can
nslookupand the browser sometimes disagree? - In Part 4, why is the MAC in the neighbor list the gateway's MAC and not the website's?
- In Part 5, why does the same PID appear on many connections?
- Name three facts from this lab that you could not have learned from looking at the outside of the PC.