IP, routing and IPv6
Renew the DHCP lease on a Mac
A DHCP lease gives the Mac its IP address, router and DNS servers. A renewal asks the DHCP server for them again.
Symptoms
- The Mac has a self-assigned or wrong IP address.
- The router changed, but the Mac keeps old DNS servers.
- The connection stopped after the router restarted.
Likely causes
- An old lease. The Mac keeps its lease until it ends. A change on the router does not always reach the Mac at once.
- A short lease time on a busy network. Apple says that you can need to renew often when many computers use one DHCP server.
- A DHCP request that failed. The request did not get an answer, for example after sleep or a cable change.
How to check
Find the device name of each network port, for example
en0for Wi-Fi.networksetup -listallhardwareportsShow the current address.
ipconfig getifaddr en0Show the lease from the DHCP server, with the router, DNS servers and lease time.
ipconfig getpacket en0
How to fix it
Choose Apple menu > System Settings > Network.
Click the network service, then click Details.
Click TCP/IP, then click Renew DHCP Lease. Click OK.
Run
ipconfig getpacket en0again and compare the values.If nothing changes, turn Wi-Fi off and on again.
networksetup -setairportpower en0 offNeeds an administrator password.
Turn Wi-Fi on again.
networksetup -setairportpower en0 onNeeds an administrator password.
With Kilobat
The CLI turns Wi-Fi off and on in one step.
kilobat wifi restart
Questions
Do I always get a new IP address?
No. Many DHCP servers give the same address back to the same device.
What does scutil --renew do?
The scutil man page says that it starts a new check of the network configuration on the interface.
Sources
- Apple Support: Renew your IP address from the DHCP server on Mac
- ipconfig(8), man page installed with macOS 27.2
- networksetup(8), man page installed with macOS 27.2
- scutil(8), man page installed with macOS 27.2
Sources checked on 29 October 2026. Man pages are the ones installed with macOS; open one with man <name> in Terminal.