Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp36902rdb; Fri, 5 Jan 2024 01:43:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEg2WAnpmPSS0FCVrPsGT9S9OPFohGuZdYpQpCo0VpfxyKN0IjRSozLJIG2d7y9a+jJxY7a X-Received: by 2002:a17:906:599d:b0:a28:d6f1:c24 with SMTP id m29-20020a170906599d00b00a28d6f10c24mr840780ejs.18.1704447803055; Fri, 05 Jan 2024 01:43:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704447803; cv=none; d=google.com; s=arc-20160816; b=KoM7oC7LcMMqPyCOGse7gG9VMJ2OmeyFGE8S7FXcwSW7kTYM+qJYTunB9rfwX44R+e 2htUZK/V4O7+SvviXF7o+QA8Hb8gqekk1QKdnPX7yyJN6eYMNfwrZz8iIDAnkX++lmsq z/r56U7u3S5+h5asflbCIbSC3/s9utC4qqzV1OK5vWGM1sDHaqYRckOikzJmHZh/GYTW TFSiSqX5CuQ1wV/dQTpwuKypo2aKzetAaPjHYa5Eow1CwPLEW3OyHQh7N4kwwRUfxney viT3owubN7TnNEAYVsbv+CjJw+cpT2zcW3SkCuaW5qnEeAZg7jdbtY7h2REt6BVuCbtK ZJMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=iGF93tGoE7ooZleGcogL9ryBVFrsC6e+b6lBoKdcSkM=; fh=Iqmw3sE/lOZEgkVQdJCh+eaEnp2GAvdsuEfI2DbLUOQ=; b=YLCVVk+OF5mZpxu0plQJmyctcTENblNrAAMAEQcjJx+wTHLoTT1CxkCsRussUXhqpT CUdYPBzlkp5eqKGLdQushT/XQPbDl5whJiGVHCQcjilUdnlFP4ESTual4uzIXzUh9/LA dh9tI7PMfzb18nfDAsiaG9ZHNkj8XfZIbzNYkvT0FG6PCvNN5iaqStq/llmgtT3GsB/s u6tHizaCvh9amjLjmCq2QkdWQvTkqrNpD67OW2NJY4Jte9ZKXZn3NspJg4zI3OXPyYo4 58HRz9+2quva9o7Iv2sAH7XfiUPoCfZCdyh1IWVRP0n8zmjyVIiPQlvYyySUO4eBeFgj agxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17673-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17673-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u11-20020a1709060b0b00b00a28b300852dsi431262ejg.928.2024.01.05.01.43.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 01:43:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17673-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-17673-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17673-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C57F21F237C2 for ; Fri, 5 Jan 2024 09:43:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D48AC24213; Fri, 5 Jan 2024 09:43:06 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEC2928E15; Fri, 5 Jan 2024 09:43:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4T5z4Y44frzvTnS; Fri, 5 Jan 2024 17:41:49 +0800 (CST) Received: from dggpemd500003.china.huawei.com (unknown [7.185.36.29]) by mail.maildlp.com (Postfix) with ESMTPS id 3F512140134; Fri, 5 Jan 2024 17:43:01 +0800 (CST) Received: from localhost.localdomain (10.175.101.6) by dggpemd500003.china.huawei.com (7.185.36.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1258.28; Fri, 5 Jan 2024 17:43:00 +0800 From: gaoxingwang To: , , , , , CC: , Subject: [Discuss]iproute2: ipv6 route add fail Date: Fri, 5 Jan 2024 17:42:55 +0800 Message-ID: <20240105094255.1498461-1-gaoxingwang1@huawei.com> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemd500003.china.huawei.com (7.185.36.29) Hello everyone, Here is a particular problem with routing. Sometimes users can run the ip -6 route command to add a route whose destination address is the same as the gateway address, and it can be successfully added. However, adding another route with the same gateway address will fail later. Example: # ip -6 route add 2409:8080:5a0a:60c7::7/128 via 2409:8080:5a0a:60c7::7 dev eth2 # ip -6 route add 2409:8080:5a0a:60c7::8/128 via 2409:8080:5a0a:60c7::7 dev eth2 RTNETLINK answers: No route to host Does the kernel not support this application scenario? Or should the kernel not allow routes with the same destination address as the gateway address to be added so that other more meaningful routes can be added successfully? This question puzzles me, thank you very much if your can reply. Best regards, Xingwang