Wednesday 28 August 2013

How to change Lease time in tftpd32 DHCP server!

The tftpd32  is one easy to use open source DHCP server. It can be used for testing many functionalities of DHCP client.
 
The parameter i was looking for, was, Lease time, through GUI we do not have option to change it. 
 
Using tftpd32.ini file we can change this paramter.
 
Steps to download and change the lease time on Windows XP platform as Host machine.
 
1) Download Tftpd32-4.00-setup.exe from http://tftpd32.jounin.net/tftpd32_download.html
 
2) Install the file on Windows XP.
 
3) Go to "C:\Program Files\Tftpd32" and start tftpd32.exe
 
4) Configure DHCP related parameter by going to its setting Like ( ip ppol, size of pool, default router and mask) , remove persistant leases ( uncheck)
 
5) Click Ok and close it
 
6) Open tftpd32.ini file in "C:\Program Files\Tftpd32" , the file will be like given below
 
 
 
[DHCP]
Lease_NumLeases=0
IP_Pool=17344704
PoolSize=0
BootFile=
DNS=17344704
Mask=16580607
Gateway=34121920
DomainName=
Lease (minutes)=2880
AddOptionNumber1=0
AddOptionValue1=
AddOptionNumber2=0
AddOptionValue2=
AddOptionNumber3=0
AddOptionValue3=
AddOptionNumber4=0
AddOptionValue4=
AddOptionNumber5=0
AddOptionValue5=
AddOptionNumber6=0
AddOptionValue6=
AddOptionNumber7=0
AddOptionValue7=
AddOptionNumber8=0
AddOptionValue8=
AddOptionNumber9=0
AddOptionValue9=
AddOptionNumber10=0
AddOptionValue10=
[TFTPD32]
BaseDirectory=.
TftpPort=69
Hide=0
WinSize=0
Negociate=1
PXECompatibility=0
DirText=0
ShowProgressBar=1
Timeout=3
MaxRetransmit=6
SecurityLevel=1
UnixStrings=1
Beep=0
VirtualRoot=0
MD5=0
LocalIP=
Services=15
TftpLogFile=
SaveSyslogFile=
PipeSyslogMsg=0
LowestUDPPort=0
HighestUDPPort=0
MulticastPort=0
MulticastAddress=
PersistantLeases=0
DHCP Ping=1
DHCP LocalIP=
Max Simultaneous Transfers=100
UseEventLog=0
Console Password=tftpd32
Support for port Option=0
Keep transfer Gui=5
Ignore ack for last TFTP packet=0
Enable IPv6=0
 
7) Change "Lease (minutes)=2880" paramter to suit your requirements.
 
 
Keep Learning , Keep sharing !