Ben_Stanton Posted September 12, 2011 Posted September 12, 2011 Hi guys, I have a server setup literally just for DHCP on a small scope (server 2003). I'd like to delete the users from the list every hour or so. What is the best method? I've looked a NETSH commands but can't see anything obvious. But I am stupid. Cheers in advance Ben
jamesreedersmith Posted September 12, 2011 Posted September 12, 2011 The first question is why but an easy way to only have address issued for 1 hour is to set the dhcp lease time to 1 hour
Ben_Stanton Posted September 12, 2011 Author Posted September 12, 2011 Long convoluted reason. But, there are 25 ip's available. These get filled up pretty quick as there are more than 25 users that might need to join. I have set the lease time to 1 hour, but that doesn't seem as effective as manually deleting them from the list.
jamesreedersmith Posted September 12, 2011 Posted September 12, 2011 Can you not create a bigger scope - change the range if needed?
jamesb Posted September 12, 2011 Posted September 12, 2011 Deleting them from the list manually could potentially give you a real headache when you get DHCP conflicts. You'll be better off relying on the lease or expanding the scope - of course with a lease of 1 hour, are none of these users going to need an IP address for longer than that?
SYNACK Posted September 12, 2011 Posted September 12, 2011 Doing this is going to make that segment a nightmare, you'll end up with the same IPs on differnt machines and weird traffic issues. You really need to fix this properly if you want less hassels not more.
andydis Posted September 12, 2011 Posted September 12, 2011 i agree with synack, however if you really really wanted to you would use grab a copy of the dhcp MDB file "clean" ( with no users on it) and then the batch file would simply stop the service and copy/ overwrite to mdb and start the service . You can use the task scheduler to automate
Ben_Stanton Posted September 12, 2011 Author Posted September 12, 2011 OK great, thanks guys. I'm aware of all the issues, believe me. You know how it is when you inherit somebody else's mess... and then are too scared to touch it in fear of it going bang big time! Ta Ben
sted Posted September 13, 2011 Posted September 13, 2011 isnt there a +/- x mins on dhcp so setting to 1 hour might mean 90 mins what about setting lease times to say 10 mins?
jamesfed Posted September 13, 2011 Posted September 13, 2011 OK great, thanks guys. I'm aware of all the issues, believe me. You know how it is when you inherit somebody else's mess... and then are too scared to touch it in fear of it going bang big time! Ta Ben By the sounds of it if you don't fix this problem there is the potential for something to go bang anyway. Obviously we aren’t in your shoes and don't know the true nature of what is going on but I would seriously take the advice of increasing the range and making this problem go away without having to muck around with short releases.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now