[CLI] Auto find subnet for ip creation