From nobody Mon Jun 21 08:36:50 2021 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5979911D7A25 for ; Mon, 21 Jun 2021 08:36:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G7jYt1xwHz4fGr for ; Mon, 21 Jun 2021 08:36:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2B3891A199 for ; Mon, 21 Jun 2021 08:36:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 15L8aoNc080824 for ; Mon, 21 Jun 2021 08:36:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 15L8aotH080823 for net@FreeBSD.org; Mon, 21 Jun 2021 08:36:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 256681] [route] Incorrect loopback route for aliases IP addresses Date: Mon, 21 Jun 2021 08:36:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zlei.huang@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: melifaro@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256681 --- Comment #5 from Zhenlei Huang --- > So in some cases, if the loopback route is disabled and the hardware/logi= cal interface can not forward those packets destined for local, 'No route t= o host' should be generated. Since release/8.1, a new feature 'IFCAP_LINKSTATE' was introduced, see [5] = and [6]. If an interface have 'IFCAP_LINKSTATE' capability, then the "link" sta= te should be checked before passing those packets to it. I verified this feature on stable/12 and stable/13. The steps: 1. ifconfig vxlan0 create vxlanid 100 vxlanlocal 10.x.x.x vxlanremote 10.y.= y.y 2. ifconfig vxlan0 inet 192.0.2.1/24 3. ifconfig vxlan0 inet 192.0.2.2/32 alias 4. netstat -rnWf inet | grep 192.0.2 5. ping -c4 192.0.2.1 6. ping -c4 192.0.2.2 7. route delete 192.0.2.1 8. route delete 192.0.2.2 9. repeat step 4 10. ifconfig vxlan0 down &&=20 If create vxlan0 without vxlanid vxlanlocal and vxlanremote, then the link state is not ready. If we delete the loopback route to 192.0.2.1 and 192.0.= 2.2, ping will response with 'No route to host'. [5]: https://cgit.freebsd.org/src/commit/sys/netinet/ip_output.c?h=3Dstable/8&id= =3Dc951da56b4f19a637c7fdf734fc500560a9555de [6]: https://cgit.freebsd.org/src/commit/sys?h=3Dstable/8&id=3D94190b3925795b145= fbd1fbc39df0841ef52f5d5 --=20 You are receiving this mail because: You are on the CC list for the bug.=