can i make or how do i make a script flush all dhcp pools .
every once in a while some of our MT’s dont issue a particular mac a ip address . so if i flush clear all dhcp tables then they will be hand a address again.
any suggestions
randy
can i make or how do i make a script flush all dhcp pools .
every once in a while some of our MT’s dont issue a particular mac a ip address . so if i flush clear all dhcp tables then they will be hand a address again.
any suggestions
randy
Suggestion:
Protect your dhcp-server. There are people out there scanning continously for dhcp-servers and filling their pools. It’s been like this since around 1995. And it’s a common, simple way of DoS’ing hotspots.
Be careful of clearing your lease table as this will make the DHCP server give out the same IP to two (or more) clients, unless it’s random users (Hotspot).
I urge you to read up on more of the technical implications of running a dhcp server. Like most network things, it is easily broken when not done just right.
Other than that, how about writing a script like this:
/ system script add name=clear-lease source={
:if ( [ / ip dhcp-server lease find ] != “” ) do={ / ip dhcp-server lease remove [ / ip dhcp-server lease find ] }
}
/ system scheduler add name=clear-leases on-event=clear-lease interval=1d
Above script is only an example.