Windows CMD: Release and Renew a DHCP Lease
A laptop kept an address from the old office network. Inspect its lease, release it, renew it, and verify the new configuration. Work through it yourself in the live host terminal below.
Symptom
A laptop kept an address from the old office network. Inspect its lease, release it, renew it, and verify the new configuration.
Your mission
Inspect, recover, then verify
Format
Windows Command Prompt
Investigate before you configure.
Use the CLI evidence to isolate the fault, make the smallest safe correction, then verify the network state changed.
Observe the symptom and link state.
Diagnose by comparing the protocol evidence.
Verify the expected device state and confirm the original symptom is resolved.
Console access: Command Prompt
This workspace stacks for portrait phones. Rotate to landscape for the full split-screen console.
Need a hint?
Reveal the root cause when you're ready.
Try the investigation first, then use this as your escape hatch, not a dead end.
Lab debrief
Turn the session into a repeatable troubleshooting pattern.
Use this reference after your attempt: first explain the symptom, then verify the evidence, then confirm the repair.
The problem
The Ethernet adapter still has 192.168.40.87 and gateway 192.168.40.1 after the laptop moved to a network that uses 10.20.30.0/24.
What you'll practice
- Read adapter, DHCP, gateway, and DNS details with ipconfig /all
- Release only the named DHCP adapter
- Renew a DHCP lease
- Recognize that release and renew apply to dynamically configured adapters
The topology
One Windows 11 laptop connects by Ethernet to a DHCP-enabled office LAN. The simulator keeps Wi-Fi disconnected so the adapter-specific command syntax is clear.
Commands to run yourself
The real diagnostic commands for this lab, copy-paste ready. Run these in the same order to reproduce the investigation on your own session.
ipconfig /allTopology diagram
Fact-checked references
The commands and behaviour in this lab were checked against these primary references.
Frequently asked
Should I always release before renewing?
No. A plain renew is often enough. Release deliberately discards the current dynamic configuration and interrupts connectivity, so use it when the troubleshooting goal calls for a clean lease request.
Why name the adapter?
Without an adapter name, release and renew target every eligible adapter. Scoping the command avoids disrupting working interfaces.
Ready to run this lab yourself?
No setup, no image sourcing. Book a session or ask for a live demo.