Basically, you may not be able to force this.
The DHCP server is in control of handing out DHCP addresses. That server decides which IP you get; not something you do on your local computer.
Having said that, you may be able to game the DHCP server, knowing that most work as follows:
- They have a limited range of IPs to hand out. (e.g. 1.2.3.100 till 1.2.3.200).
- They remember which IP already has been given out and until which time that lease is valid.
- When handing out a new IP they often use a not-yet used IP, if available. If they run out they will NACK the DHCP request. If they run out of unused IPs but have older IP which are no longer handled out (leae expired) they will ahnd those out.
- Most of the time they will check which IP you had previously when they receive a DHCP req (either on their own or as part of the DHCP req package). They are allowed they give you the same IP.
The last is what is helping you (clippy style helping).
You get an IP (say 1.2.3.100, which is valid for X hours. (Say 24h).
After 12 hours you say "Hey, I want to release this IP"
This work.
You then ask for an IP again ("Hey, I am AA:BB:CC:DD:EE:FF which last had IP 1.2.3.100. Can I please have an IP again?"). This time you want another IP, but the DHCP server is helpfully giving you 1.2.3.100 again.
Two option are here:
- Do not clain the "I had last 1.2.3.100". Depends on your DHCP client (IIRC windows did not do that in the past, though it was allowed. Unix client correctly handled this part).
- Claim to be someone else. (e.g. change the MAC address).
The correct way however is to ask "Why do I want a different IP" and solve that. E.g. by talking with your network admin and getting a reserved IP, or setting a static IP (and you admin marking that IP as in used so she never gives that out again).