dhcp - remove duplicated function for multiple subnets on ipv4