Flush DHCP leases


#1

Hello,
what is the correct way to flush DHCP leases (even if not expired)?

Thank you
Adriano


#2

clear dhcp
Possible completions:
lease Clear the DHCP lease for a specific IP address
leases Clear all DHCP leases


#3

In what mode (operator, config, or root) are you supposed to run this command? I have ran ‘clear dhcp lease ip xxx.xxx.xxx.xxx’ in every mode, but all I see is my screen clear out, as if I was simply doing ‘sudo clear’. (Oh, and when I do it only in operator mode, it just returns an invalid command on clear.)


#4

Was that an older vyatta command? I see the following on current Vyos:

reset dhcp server 
Possible completions:
  lease         Reset the DHCP lease for a specific IP address
  leases        Reset all DHCP leases