jhthorsen / net-isc-dhcpd

Perl module that interacts with ISC DHCPd
http://search.cpan.org/perldoc?Net::ISC::DHCPd
11 stars 6 forks source link

Best way to add/remove hosts inside a subnet #40

Open cscrum opened 11 months ago

cscrum commented 11 months ago

I'm trying to make static ip assignments, but have subnets set up. What I want to happen is to submit a name, ip, and mac to my perl script to add (or remove) this host to the appropriate subnet. Is there a way to find the appropriate subnet or will I need to find them by getting the subnet range and then using NetAddr::Ip to see if the address I want to add is inside the subnet and then add them?