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?
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?