Skip to content

IPCop DHCP Fixed/Static Lease Script

About a year ago I found the need to create a lot of fixed leases for use with IPCop. I sat down and using some loop and awk magic I was able to develop a fairly decent script to get the job done. I will post the file with a day or two but here are the details…

To execute:

sh ./leasecreate.txt CVSInputfilename

CVS File Format

IP,MAC Address,Computer Name,Location,User,Hostname,Default Router

This will create two files, dhcpd.conf and fixleases. These files then need to be copied to /var/ipcop/dhcp/ and the DHCP server should be restarted.

To Download: