Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


August 13, 2001

How do I enable DHCP server logging?

RSS
Subscribe to Windows IT Pro | See More Dynamic Host Configuration Protocol (DHCP) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. To enable enhanced DHCP logging, perform the following steps:

  1. Start the DHCP administration tool (go to Start, Programs, Administrative Tools, and click DHCP).
  2. Right-click the DHCP server, and select Properties from the context menu.
  3. Select the General tab.
  4. Select the "Enable DHCP audit logging" check box.


  5. Click here to view image

  6. Click OK.
Windows 2000 will now create a DHCP log file in the %systemroot%\system32\dhcp directory for each day using a DhcpSrvLog.XXX file format.

Common audit codes that might appear in the log include

  • 00—The log was started.
  • 01—The log was stopped.
  • 02—The log was temporarily paused due to low disk space.
  • 10—A new IP address was leased to a client.
  • 11—A lease was renewed by a client.
  • 12—A lease was released by a client.
  • 13—An IP address was found to be in use on the network.
  • 14—A lease request could not be satisfied because the scope's address pool was exhausted.
  • 15—A lease was denied.
  • 16—A lease was deleted.
  • 17—A lease was expired.
  • 20—A BOOTP address was leased to a client.
  • 21—A dynamic BOOTP address was leased to a client.
  • 22—A BOOTP request could not be satisfied because the scope's address pool for BOOTP was exhausted.
  • 23—A BOOTP IP address was deleted after verifying that it wasn't in use.
The DHCP Server uses codes above 50 for Rogue Server Detection information.

End of Article



Reader Comments
Is it possible to make Windows keep a dhcp log of not just a week but a continuously updated list of all dhcp activity?
Ta!

Anonymous User June 06, 2005 (Article Rating: )


Hi,

I have windows 2000 pro and recently reverted back to dialup (temporarily). I'm interested in DHCP but don't see the DHCP in administrative tools. I do see it listed under "services" and it says "started".

How can I enable it?

Thanks.

Anonymous User August 05, 2005 (Article Rating: )


Hi,

I have windows 2000 pro and recently reverted back to dialup (temporarily). I'm interested in DHCP but don't see the DHCP in administrative tools. I do see it listed under "services" and it says "started".

How can I enable it?

Thanks.

jowell_09 December 14, 2005 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...

How can I stop and start services from the command line?

...


Related Events Delivering Reliable and Effective Web-Based Applications

Making Web Application Perform Better: What to Watch, How to Watch It, and How to Fix It

Check out our list of Free Email Newsletters!

IIS and Web Administration eBooks Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Related IIS and Web Administration Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing