Posts Tagged ‘perl’

migrating from Microsoft DHCP to ISC

Thursday, February 23rd, 2012

I’ve just finished a quick and dirty perl script to help me in moving my DHCP server from a Micro$oft 2003 Server to Linux.

This script reads the dump file created by netsh and writes a dhcpd.conf file.
First step, on the Microsoft DHCP host, dump the configuration:

C:\temp>netsh dhcp server \\servername dump > dhcp.dump

Second step, use the perl script:

perl ./w2ldhcpcfg.txt -i dhcp.dump -o dhcpd.conf

On the net, there is a rexx script too. It can be found here.