The general form of the part of the dhcp.conf file I think you want to look at is:
Code:
host atlantis {
hardware ethernet 00:11:22:33:44:55;
fixed-address 10.1.1.2;
}
So if you had a file of the form:
Code:
atlantis,00:11:22:33:44:55,10.1.1.2
A simple perl script would be like this, off the top of my head:
Code:
#/usr/bin/perl -n
chomp;
@items = split /,/;
print "host $items[0] {
hardware ethernet $items[1];
fixed-address $items[2];
}";
Understand that you would still have to set up things like logging, subnets, and ddns updates.
Hope this helps.
Bookmarks