implement automatic assignment of IPs