generate network address from cidr