TopicIT Networking →
⌚ About 2 min read
Force Windows to abandon and then re-demand an IP address to a DHCP server.
Avant de commencer : adaptez toujours les commandes et manipulations à votre environnement. Sur un système de production, prévoyez une backup ou un retour arrière lorsque l’action peut modifier la configuration.
Étapes à suivre
-
1
Open a terminal.
Launch the command prompt or Windows Terminal.
-
2
Release the current address
Run ipconfig / lip.
-
3
Request a new address
Then run ipconfig /renew.
-
4
Control the new configuration.
Use ipconfig /all.
Commands utiles
ipconfig / ipconfig / ipconfig / ipconfig / ipconfig / ipconfig / ipconfig / ipconfig / ipconfig / ipconfig / ipconfig / ipconfig / ipconfig / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconfconffi / ipconfconffi / ipconffi / ipconfconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconffi / ipconf_________________________________________________________________________________________________________________________________________________________________________________________________________________________________
ipconfig /renew.
ipconfig /all.
À retenir
- The network connection is interrupted between release and the network.
- If you get an address 169.254.x.x, check the DHCP server and network connectivity.
Windows addressing: useful reference points
Technical checkpoints
Example check
Compare the active adapter, DHCP origin, gateway and DNS before renewing the lease.
Get-NetIPConfiguration
ipconfig /allTopic-specific pitfalls
- Renewing DHCP does not fix a wrong VLAN, an unauthorized switch port or a missing DHCP server.
- A virtual or VPN adapter can appear before the interface actually in use: check InterfaceAlias and the default route.
How to validate
- The address belongs to the expected subnet and no APIPA is present on the interface in use.
- Gateway, DNS and DHCP lease match the expected network; the test is repeated after any change.