if networkID is not specified, get one network with free ips.