LAB: IPCONFIG Command
Learning Objectives
By the end of this lab, students will be able to:
-
Explain the purpose of the IPCONFIG command.
-
Display and interpret TCP/IP configuration settings.
-
Identify IPv4 and IPv6 addresses.
-
Locate the default gateway, subnet mask, and DNS servers.
-
Release and renew an IP address.
-
Flush and register the DNS cache.
-
Troubleshoot common network configuration problems.
Background
The IPCONFIG (Internet Protocol Configuration) command is a built-in Windows command-line utility used to display and manage a computer’s TCP/IP network configuration.
IT professionals use IPCONFIG to:
-
View IP addressing information
-
Verify network adapter configuration
-
Troubleshoot Internet connectivity
-
Renew DHCP-assigned IP addresses
-
Clear DNS cache
-
Diagnose network communication problems
Understanding the information displayed by IPCONFIG is an essential skill for IT support specialists, help desk technicians, and network administrators.
Prerequisites
-
Windows 10 or Windows 11
-
Internet connection
-
Command Prompt
-
Administrative privileges (recommended)
Lab Scenario
You are an entry-level IT support technician. A user reports they cannot connect to the Internet after moving to a different office. Your task is to verify the computer’s network configuration and use IPCONFIG to troubleshoot the issue.
Part 1 – Open Command Prompt
-
Press Windows + R
-
Type:
cmd
-
Press Enter
Part 2 – Display Basic Network Configuration
Run:
ipconfig
Example Output
Windows IP Configuration
Ethernet adapter Ethernet:
IPv4 Address . . . . . : 192.168.1.125
Subnet Mask . . . . . : 255.255.255.0
Default Gateway . . . : 192.168.1.1
Activity
Complete the table below.
| Item | Your Value |
|---|---|
| IPv4 Address | |
| Subnet Mask | |
| Default Gateway |
Questions
-
What is your IPv4 address?
-
What is the purpose of the subnet mask?
-
What is the default gateway used for?
Part 3 – Display Detailed Configuration
Run:
ipconfig /all
Example Output
Host Name . . . . . . . . : Student-PC
DHCP Enabled . . . . . . : Yes
Physical Address . . . . : 00-15-5D-44-33-22
DNS Servers . . . . . . : 8.8.8.8
Lease Obtained . . . . . : Tuesday
Lease Expires . . . . . : Wednesday
Record the following information.
| Item | Your Value |
|---|---|
| Computer Name | |
| MAC Address | |
| DHCP Enabled | |
| DNS Server | |
| DHCP Server |
Questions
-
What is the MAC address?
-
Is DHCP enabled?
-
Which DNS server is configured?
-
What is the DHCP server?
Part 4 – Release an IP Address
Run:
ipconfig /release
Observe what happens.
Questions
-
What happened to the IP address?
-
Why would a technician release an IP address?
Note: This command disconnects the computer from the network until a new address is obtained.
Part 5 – Renew an IP Address
Run:
ipconfig /renew
Questions
-
Was a new IP address assigned?
-
Did the address change?
-
Why is renewing an IP address useful?
Part 6 – Display the DNS Resolver Cache
Run:
ipconfig /displaydns
Example Output
Record Name . . . : google.com
Record Type . . . : A
Time To Live . . : 300
Questions
-
How many DNS records are displayed?
-
What information is stored in the DNS cache?
-
Why does Windows cache DNS records?
Part 7 – Flush the DNS Cache
Run:
ipconfig /flushdns
Example Output
Successfully flushed the DNS Resolver Cache.
Questions
-
Why would an administrator flush the DNS cache?
-
When might this solve a problem?
Part 8 – Register DNS Records
Run:
ipconfig /registerdns
Questions
-
What does this command do?
-
In what type of environment is this command commonly used?
Part 9 – Troubleshooting Scenario
A user reports they cannot browse websites.
Run the following commands:
ipconfig
ping 127.0.0.1
ping <default_gateway>
ping 8.8.8.8
ping google.com
Complete the checklist.
| Test | Pass | Fail |
|---|---|---|
| IP Address Assigned | ☐ | ☐ |
| Gateway Reachable | ☐ | ☐ |
| Internet Reachable | ☐ | ☐ |
| DNS Working | ☐ | ☐ |
Part 10 – Compare IPv4 and IPv6
Run:
ipconfig /all
Locate both:
-
IPv4 Address
-
IPv6 Address
Complete the table.
| Address Type | Value |
|---|---|
| IPv4 | |
| IPv6 |
Questions
-
Which address is longer?
-
Why was IPv6 developed?
-
Can a computer have both IPv4 and IPv6 simultaneously?
Common IPCONFIG Commands
| Command | Description |
|---|---|
ipconfig |
Display basic IP configuration |
ipconfig /all |
Display detailed configuration |
ipconfig /release |
Release DHCP IP address |
ipconfig /renew |
Request a new DHCP IP address |
ipconfig /flushdns |
Clear the DNS cache |
ipconfig /displaydns |
Display cached DNS records |
ipconfig /registerdns |
Register DNS records |
ipconfig /? |
Display help information |
Lab Questions
-
What is the purpose of the IPCONFIG command?
-
What is the difference between
ipconfigandipconfig /all? -
What is DHCP?
-
Why is a subnet mask required?
-
What is the purpose of the default gateway?
-
What does
/releasedo? -
What does
/renewdo? -
Why would you flush the DNS cache?
-
What information does
/displaydnsshow? -
Why is
/registerdnsuseful in business networks?
Challenge Activity
Use IPCONFIG to gather information about your computer and answer the following.
| Question | Answer |
|---|---|
| Computer Name | |
| IPv4 Address | |
| IPv6 Address | |
| MAC Address | |
| Default Gateway | |
| DHCP Server | |
| DNS Server | |
| DHCP Enabled | Yes / No |
| Lease Obtained | |
| Lease Expires |
Then answer:
-
Is your IP address private or public?
-
Which class of private IPv4 address are you using (Class A, B, or C)?
-
Is your computer receiving its address from DHCP or using a static configuration?
Deliverables
Students must submit:
-
Screenshots of each IPCONFIG command executed.
-
Completed tables and troubleshooting checklist.
-
Answers to all lab questions.
-
A one-page summary explaining how IPCONFIG is used to diagnose network configuration problems.
-
A reflection describing how DHCP, DNS, and IP addressing work together to provide network connectivity.
Learning Outcomes
Upon successful completion of this lab, students will be able to:
-
Explain the purpose of the IPCONFIG command.
-
Display and interpret IP configuration information.
-
Identify key TCP/IP settings such as IP address, subnet mask, default gateway, DNS server, and MAC address.
-
Release and renew DHCP leases.
-
Display, flush, and register DNS information.
-
Troubleshoot common network connectivity and configuration issues.
-
Apply IPCONFIG as a foundational tool for diagnosing Windows networking problems.
Bonus Activity (Advanced)
Create a network inventory for your computer using the IPCONFIG /ALL command.
| Network Information | Value |
|---|---|
| Computer Name | |
| Network Adapter | |
| MAC Address | |
| IPv4 Address | |
| IPv6 Address | |
| Subnet Mask | |
| Default Gateway | |
| Preferred DNS Server | |
| Alternate DNS Server | |
| DHCP Enabled | |
| DHCP Server | |
| Lease Obtained | |
| Lease Expires |
Reflection
Write a one-page report explaining how a computer obtains an IP address from a DHCP server, how DNS translates domain names into IP addresses, and how the default gateway enables communication with devices outside the local network. Include examples from your IPCONFIG output to support your explanation.