Clearing DHCP leases can help resolve duplicate IP address warnings, devices that cannot connect to a network, or a router that appears to have run out of available addresses. The right method depends on where the lease is stored: on an individual computer, on a home router, or on a DHCP server. In many cases, you do not need to delete a lease manually. Releasing and renewing the device’s IP address is enough.
This guide explains how DHCP leases work and how to clear or renew them on Windows, macOS, Linux, home routers, and Windows DHCP servers. It also covers common mistakes, such as confusing a DHCP lease with a DNS cache, and explains what to check if clearing a lease does not fix the connection.
What Is a DHCP Lease?
DHCP, or Dynamic Host Configuration Protocol, automatically assigns devices the network settings they need to communicate. These settings usually include an IP address, subnet mask, default gateway, and DNS server addresses. The DHCP server—often your router—assigns an address to a device for a set period called the lease duration.
A lease is temporary, but it does not usually disappear as soon as a device disconnects. The server keeps track of the assignment so it can offer the same IP address to the device again. When the lease is near expiration, the device typically tries to renew it automatically. This reduces interruptions and prevents the server from assigning the same address to two active devices.
People use “clear DHCP leases” to mean a few different things. You might want to make a computer request a new address, remove an old device’s reservation from a router, or delete a lease from a business DHCP server. These actions are different, so start by identifying which device is acting as the DHCP server.
Before You Clear a DHCP Lease
Clearing or changing a lease can briefly disconnect the affected device. If you are working remotely, managing a business network, or changing a server’s lease list, make sure you have another way to access the network before proceeding. You may also need administrator privileges.
First, check whether the problem is actually related to DHCP. If one device has no internet access but other devices work, renewing its lease is a reasonable first step. If every device is offline, restarting or checking the router, modem, access point, or DHCP server may be more useful. Also, note that clearing the DNS cache does not clear a DHCP lease; DNS and DHCP handle different network tasks.
How to Clear a DHCP Lease in Windows
On Windows, you can release the current IPv4 address and ask the DHCP server for a new one using Command Prompt. This is useful when a computer has an incorrect address, has moved to another network, or is experiencing a basic connectivity problem.
- Open the Start menu and search for Command Prompt.
- Select Run as administrator.
- To see the current network configuration, enter
ipconfig /all. - To release DHCP-assigned IPv4 addresses, enter
ipconfig /release. - To request new addresses, enter
ipconfig /renew.
The release command may temporarily disconnect the computer, so run the renewal command afterward. If you have several network adapters, Windows may attempt to release or renew addresses for more than one adapter. You can also specify an adapter name, such as ipconfig /release "Wi-Fi", if the name shown on your system is Wi-Fi.
If the renewal fails, check that the adapter is enabled and connected to the correct network. A message that the DHCP server cannot be reached may point to a router, cable, wireless connection, VLAN, or DHCP server issue rather than a lease that needs to be deleted. To confirm the computer received a valid address, run ipconfig again after renewing.
An address beginning with 169.254 is a self-assigned link-local address. It often means Windows could not contact a DHCP server. Releasing and renewing may help if the issue was temporary, but if the address returns, investigate the network connection and DHCP server.
How to Renew a DHCP Lease on macOS
On a Mac, you can ask the network to provide a fresh DHCP configuration through System Settings. The wording can vary slightly depending on your macOS version and whether you are using Wi-Fi or Ethernet.
- Open System Settings.
- Select Network.
- Choose the active connection, such as Wi-Fi or Ethernet.
- Open Details, then select TCP/IP.
- Choose Renew DHCP Lease, then select OK or Apply.
The Mac will request updated network settings from the DHCP server. If the button is unavailable or the address does not change, that does not necessarily mean the renewal failed. The DHCP server may renew the same address, especially if it is still valid and available for that device.
How to Renew a DHCP Lease on Linux
Linux DHCP management depends on the distribution and network service in use. On desktop systems using NetworkManager, disconnecting and reconnecting to the network is often the easiest way to request a lease. You can also use the graphical network menu to turn the connection off and back on.
On systems that use NetworkManager’s command-line tool, list the connections with nmcli connection show. Then reconnect the relevant connection, replacing CONNECTION_NAME with its actual name:
nmcli connection down "CONNECTION_NAME"nmcli connection up "CONNECTION_NAME"
Some Linux systems use the dhclient utility. If it is installed and manages the interface, an administrator can release and request an address with commands such as sudo dhclient -r INTERFACE followed by sudo dhclient INTERFACE. Replace INTERFACE with the correct network interface name, which you can find with tools such as ip link. The exact commands depend on how the system is configured; do not run multiple DHCP managers on the same interface.
For a server or a remote Linux computer, take care before releasing its address. If the connection does not return, you could lose remote access. Check the distribution’s network configuration and, when possible, arrange console or out-of-band access first.
How to Clear DHCP Leases on a Router
For a home network, the router is usually the DHCP server. Most router interfaces do not have a single button labeled “clear all DHCP leases.” Instead, they may let you remove an individual client, delete a reservation, restart the DHCP service, or reboot the router. Menu names vary by manufacturer and firmware.
- Sign in to the router’s administration page or app.
- Look for sections named DHCP, LAN, Connected Devices, Clients, or Address Reservation.
- Find the device by its name, current IP address, or MAC address.
- If available, remove the stale lease or reservation, then reconnect the device or renew its address.
A DHCP lease and a DHCP reservation are not the same. A lease is a temporary assignment made by the server. A reservation is a rule that tells the server to give a particular device the same address in the future, usually based on its MAC address. Removing a reservation may cause that device to receive a different address the next time it requests one.
If the router provides no lease-removal option, reconnecting the device or restarting the router may refresh its DHCP state. A router reboot can interrupt internet access for everyone on the network, so do it only when convenient. Avoid using a factory reset as a routine way to clear leases; it can erase Wi-Fi names, passwords, port forwarding rules, and other settings.
How to Remove a DHCP Lease on a Windows Server
In a managed network, an administrator may need to remove a specific lease from a Windows DHCP server. Use care: deleting a lease while the client is still active can lead to unexpected behavior or an address conflict if the address is reassigned. Confirm the client and scope before making changes, and follow your organization’s change procedures.
In the DHCP management console, expand the server and the appropriate IPv4 scope, then open Address Leases. Locate the client and verify its IP address and client identifier before deleting the lease. The available actions and labels can vary between Windows Server versions.
PowerShell is another option when the DHCP Server tools are installed and you have the necessary permissions. For example, the following command removes a lease for a particular address from a specified scope:
Remove-DhcpServerv4Lease -ComputerName "DHCP01" -ScopeId 192.168.1.0 -IPAddress 192.168.1.25
Replace the server name, scope ID, and IP address with values from your environment. Verify the lease details before running a removal command. If you only need to make a client request a fresh address, renewing the client is often safer than deleting the server-side lease.
Does Clearing a DHCP Lease Change the IP Address?
Not always. After a release, renewal, or lease deletion, the DHCP server chooses an address according to its configuration and current availability. It may assign the same address again because that address is still available and associated with the device. A successful renewal means the device obtained network settings; it does not guarantee a different IP address.
If you need a device to keep a specific address, configure a DHCP reservation on the router or DHCP server, or set a static address according to your network’s rules. Do not choose a static address that falls inside the DHCP pool unless the server is configured to exclude or reserve it. Otherwise, another device may receive the same address and cause an IP conflict.
Common DHCP Lease Problems and Fixes
- The device reconnects with the same address: This is normal if the server reuses the existing address. A new IP address is not required for a successful lease renewal.
- The device receives a 169.254 address: Check Wi-Fi signal, Ethernet cables, VLAN settings, and whether the DHCP server is running and reachable.
- Only one device has trouble: Renew that device’s lease, restart its network adapter, and check for a manual IP configuration or an outdated reservation.
- Several devices have trouble: Check the DHCP server, address pool capacity, router status, and network configuration. A full address pool can prevent new clients from receiving leases.
- An IP conflict appears: Check for duplicate static addresses, overlapping DHCP pools, or a reservation that conflicts with another device’s configuration.
- Internet access still fails after renewal: Confirm the default gateway and DNS settings, then test whether the device can reach the router. The problem may be DNS, the internet connection, or firewall rules rather than DHCP.
Frequently Asked Questions About Clearing DHCP Leases
Will clearing a DHCP lease delete files or settings? No. Releasing or renewing a lease changes network configuration, not files on the device. However, removing a router reservation or changing a server configuration can affect how devices connect.
How long does it take for a DHCP lease to expire? Lease duration is set by the DHCP server and varies by network. A device may renew before the lease expires, so you generally do not need to wait for expiration to troubleshoot a connection.
Should I clear all leases at once? Usually not. Removing every lease can disrupt multiple devices and make them request addresses again. Clear or renew only the affected client unless you are an administrator performing a planned network change.
Does restarting a device clear its DHCP lease? Restarting often causes the device to reconnect and renew its network configuration, but it may receive the same address. To force a request more directly, use the operating system’s DHCP renewal option.
Conclusion
To clear a DHCP lease, first decide whether you need to renew the address on one device or remove an assignment from the DHCP server. Windows users can run ipconfig /release and ipconfig /renew; Mac users can select Renew DHCP Lease in network settings; and Linux users can reconnect through their network manager or use the DHCP tool configured for their system. On a router or Windows DHCP server, remove a lease only after confirming the device and address.
In most cases, renewing the lease is the safest first step, and the device may keep the same IP address afterward. If the problem persists, check the DHCP server, address pool, reservations, network connection, and IP configuration rather than repeatedly deleting leases.
Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.