cpyder
June 23rd, 2008, 05:22 AM
Hi,
I have setup a network at my workplace. We have around 10 PCs in the network, the dhcp server is running on Ubuntu 8.04 - server edition.
I want to reserve the ip addresses based on the MAC addresses of clients. I have a list of hostnames and thier MAC addresses ready. We are expecting a few more machines in some time.
I dont want to spend entire day, writing the same configuration lines over and over again. (not to mention time needed for debugging to correct for a small typo :-( )
So, can someone help me out in writing a perl/shell script which can read these details from a text/csv file and modify the dhcpd.conf file, in a properly formatted fashion?
Can someone help me?
Thanks for your time..
I have setup a network at my workplace. We have around 10 PCs in the network, the dhcp server is running on Ubuntu 8.04 - server edition.
I want to reserve the ip addresses based on the MAC addresses of clients. I have a list of hostnames and thier MAC addresses ready. We are expecting a few more machines in some time.
I dont want to spend entire day, writing the same configuration lines over and over again. (not to mention time needed for debugging to correct for a small typo :-( )
So, can someone help me out in writing a perl/shell script which can read these details from a text/csv file and modify the dhcpd.conf file, in a properly formatted fashion?
Can someone help me?
Thanks for your time..