dhcp - remove duplicate function for multiple subnets on ipv4