Clear DHCP leases - MX84

jvelasco
Here to help

Clear DHCP leases - MX84

Hi, 

May I know if there is a way to clear out the DHCP Leases in a certain VLAN?

I configured static IP addresses but their previous addresses are still there in the dashboard. 


Thanks!

25 REPLIES 25
PhilipDAth
Kind of a big deal

Re: Clear DHCP leases - MX84

I don't know the answer.  You could try turning DHCP off and then back on again.  

 

BrechtSchamp
Kind of a big deal

Re: Clear DHCP leases - MX84

I believe as soon as the client disconnects and reconnects to the network it will go through the DHCP process again. At that point they will receive the newly assigned static address. If they try to renew the lease I think the DHCP server will refuse and assign them the static IP address too.

jvelasco
Here to help

Re: Clear DHCP leases - MX84

Thanks for the tip 🙂 I will try it now.

jvelasco
Here to help

Re: Clear DHCP leases - MX84

Hi Brecht,

I have tried it but it seems it does not work 😞
rbnielsen
Head in the Cloud

Re: Clear DHCP leases - MX84

Every time I'm in a situation where I need to clear a DHCP lease on Meraki, I hit this button so hard...

meraki-maw.PNG

There is no way (that I know of) to clear a DHCP lease manually in Meraki. Best is to lower lease time, in the DHCP server, and wait for the leases to renew, to the shorter lease time. 

jvelasco
Here to help

Re: Clear DHCP leases - MX84

Hi,

I think that is the "wish button"?

Well, I will check your suggestion. Hopefully later on the update, they will have that feature.
BrechtSchamp
Kind of a big deal

Re: Clear DHCP leases - MX84


@jvelasco wrote:
Hi Brecht,

I have tried it but it seems it does not work 😞

Hmm well that's annoying. Good to know.

Ben
A model citizen

Re: Clear DHCP leases - MX84

Set the DHCP lease Time to 30 minutes in the evening when everyone leaves and wait.. That's how I handle this. 

 

Cheers 

Ben

jvelasco
Here to help

Re: Clear DHCP leases - MX84

Hi,

I've done two options, setting it at 30 minutes and then reboot.  At last, it renews all leases. 

But I think the Cisco Meraki must do something about this because it is really important. 


Thanks.

KMNEP
Getting noticed

Re: Clear DHCP leases - MX84

is there any development going on for this issue? Manually changing dhcp leases to 30 min at the eod is not the ultimate solution. I hope there would be a select and delete option somewhere for removing dhcp leases.

CastyMcBoozer
New here

Re: Clear DHCP leases - MX84

It seems like every time I look up how to do something in Meraki, the answer is you can't.  Why do people sell this junk?

AlexC
Meraki Employee

Re: Clear DHCP leases - MX84


@jvelasco wrote:

Hi, 

May I know if there is a way to clear out the DHCP Leases in a certain VLAN?

I configured static IP addresses but their previous addresses are still there in the dashboard. 


Thanks!


Hi @jvelasco,

 

A 'button' to clear DHCP Leases from dashboard is certainly a feature request at this time point in time as others have commented.

 

However, there is a way to clear the DHCP Leases on a VLAN without having to reboot the appliance by following these steps:

- Create a DHCP Reservation on the VLAN that blocks out the entire DHCP range

- Save the configuration and let MX downloads it (might take a minute or two)

- Clear the DHCP Reservation and save the configuration again

 

Hope this helps, if you are still having trouble, I would recommend reach out to support (that's whom I got this info from). You can find support information from dashboard under Help > Get Help.

 

Cheers,

 

-Alex

If this was helpful, click the Kudos button below.
Please mark it as a solution if solved your issue so others can benefit from it 🙂
Tung_Nguyen
Here to help

Re: Clear DHCP leases - MX84

Meraki Dashboard used to have that option under Monitor -> Appliance Status -> Tools, but somehow they took that away.   I've put in feature request for many times, but I still do not see that option.  I've done set lease time, created and removed dhcp reservation scope, but it did not work like the way I want.  This's very annoyed.   

writ_er_relo
Here to help

Re: Clear DHCP leases - MX84

@AlexC 

 

This seems like a work-around at best. I hope this "feature" makes it to Meraki. 

 

I try to talk up Meraki when I can, but things like this makes it really difficult.

writ_er_relo
Here to help

Re: Clear DHCP leases - MX84

zcsdfsfsdf


@AlexC wrote:

@jvelasco wrote:

Hi, 

May I know if there is a way to clear out the DHCP Leases in a certain VLAN?

I configured static IP addresses but their previous addresses are still there in the dashboard. 


Thanks!


Hi @jvelasco,

 

A 'button' to clear DHCP Leases from dashboard is certainly a feature request at this time point in time as others have commented.

 

However, there is a way to clear the DHCP Leases on a VLAN without having to reboot the appliance by following these steps:

- Create a DHCP Reservation on the VLAN that blocks out the entire DHCP range

- Save the configuration and let MX downloads it (might take a minute or two)

- Clear the DHCP Reservation and save the configuration again

 

Hope this helps, if you are still having trouble, I would recommend reach out to support (that's whom I got this info from). You can find support information from dashboard under Help > Get Help.

 

Cheers,

 

-Alex


UPDATE FOR ANYONE THAT MIGHT RUN INTO THIS

 

I found this thread because I had to do this for a VOIP rollout.

 

I repeated these steps - 

  1. Decreased the DHCP Lease Time to 30 minutes 
  2. Create a DHCP Reservation on the VLAN that blocks out the entire DHCP range
  3. Save the configuration and let MX downloads it (might take a minute or two)
  4. Clear the DHCP Reservation that blocks out the entire DHCP range
  5. Save the configuration again

It seemed to work at first. All client DHCP leases were removed from the dash... except they some came back with the original entries. All of the phones are still advertising that their lease time will expire in 20+ hours. Effectively maintaining the lease time they originally had. 

 

Not sure if this is because they're VOIP endpoints, but it only half worked.

 

The machines on the same VLAN cleared out their DHCP leases and were on the new 30 minute lease time, the phones were not. 

CML_Todd
Getting noticed

Re: Clear DHCP leases - MX84


@PhilipDAth wrote:

I don't know the answer.  You could try turning DHCP off and then back on again.  

 



This has worked for me in the past.  After you turn off DHCP for that subnet, wait about 5 minutes, then turn it back on.  When you turn it back on, all your previous settings are still there so it's not as painful as it seems.  

 

Not optimal, but it works.  

CML_Todd
Getting noticed

Re: Clear DHCP leases - MX84

This has worked for me in the past. After you turn off DHCP for that subnet, wait about 5 minutes, then turn it back on. When you turn it back on, all your previous settings are still there so it's not as painful as it seems.



Not optimal, but it works.
Meraki_Scott
Here to help

Re: Clear DHCP leases - MX84

This worked like a charm, the support tech wasn't aware of this technique!  Thanks Meraki Community!

T-800
Here to help

Re: Clear DHCP leases - MX84

Batch Imaging and deploying 75 computers caused pool to fill up. Count me as one more vote for a method to manually clear inactive DHCP leases. 

 

T-800

CptnCrnch
Kind of a big deal

Re: Clear DHCP leases - MX84

Just "Make a wish" on the DHCP configuration page

JaiminPatel
Here to help

Re: Clear DHCP leases - MX84

You can perform the reset on MX to clear the DHCP lease. I just did it on my Z3 and it worked.

Please take a note that there will be a down time if you reset the MX.

CharlesIsWorkin
Building a reputation

Re: Clear DHCP leases - MX84

@rbnielsen 

I just made a wish too. 🙂

wh00ps13
Conversationalist

Re: Clear DHCP leases - MX84

Looks like they patched that out? 

We read your comment and decided to try it. We were joking that only the new leases would get the shortened lease time. We thought that was a hysterical idea. Then it turns out that's what happened. A lot less funny than we thought...

KoMyo
Just browsing

Re: Clear DHCP leases - MX84

Hi Todd

How do I turn off Dhcp for the subnet?

 

Thank you

rbnielsen
Head in the Cloud

Re: Clear DHCP leases - MX84

Security & SD-WAN -> DHCP

 

rbnielsen_0-1622535052783.png

 

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.