inidhcp - Works with DHCP information stored in INI files.
inidhcp -c <config> -a rm -s <scope>
inidhcp -c <config> -a gen [-V <vars section>]
inidhcp -c <config> -a add -s <scope> -m <mask> [-g <gateways>] [-t <TFTP server>] [-n <NTP servers>] [-B <broadcast>] [-M <MTU>] [-d <DNS servers>] [-w <URL>] [-l <time>] [-b <bootfile>] [-R <IP IP>]
The action to perform.
The config file to use.
Comma seperated list of gateways.
The base IP of the subnet.
Subnet mask
TFTP server
Comma seperated list of NTP servers.
The name of the boot file.
Broadcast address.
The range to use.
Comma seperated list of DNS servers.
The MTU for the subnet.
The web proxy for the subnet.
The lease time.
Root path for netboot via NFS.
The variable section to pass to generator for use in the templates.
Below is a example config in which inidhcp is ran out of the current directory.
dir=./ [generator] header=header footer=footer output=output
This is the directory that has the ini.dhcp files in it.
This is the header template to use. Template is used for templating.
This is the footer template to use. Template is used for templating.
This is the file to output to.
Header...
default-lease-time 600; max-lease-time 7200; ddns-update-style none; authoritative; option web-proxy code 252 = text; log-facility local7;
Footer...
To install Net::DHCP::Config::Utilities, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DHCP::Config::Utilities
CPAN shell
perl -MCPAN -e shell install Net::DHCP::Config::Utilities
For more information on module installation, please visit the detailed CPAN module installation guide.