From nobody Wed Jun 14 09:42:13 2023 X-Original-To: freebsd-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 4Qh0ns1tSLz4dGJv for ; Wed, 14 Jun 2023 09:42:25 +0000 (UTC) (envelope-from melifaro@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qh0ns1Kjyz3x9S; Wed, 14 Jun 2023 09:42:25 +0000 (UTC) (envelope-from melifaro@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686735745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=niK+Ya3lnmnpVBBUy3r0X6z2CXKl3wBpNzp4PEWzLaM=; b=QXMDeVI98aTYmO4MpKyJwObBNtPFhrLw8/G88nZMpKD+UdUXvpOvROHqhR+S8FEZatB9FX vXtRDtPNs23TtUBgWtZbO3h8pCcTMS5WQPnYy163hDqYBVpwtJquones3zTrnClsBVWBV8 k3UcBeraNDacpB3a30bzrbm5Idwj9U/6hBBg4uV4gGfB9KHixRyRqv720Qpwywk1vfGodi tH1kvNdpTvyYdHaPktj/aiL3IZWFfHG/xl1XyiTjm2a1VQJuJsLtfK15EtHPocIZx8gzYe tu3D+vK4yU1EXHZ21XmZTN0HdHruPxQfcThe1XBYxO/Rtly4/feoJVjhP4GZoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686735745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=niK+Ya3lnmnpVBBUy3r0X6z2CXKl3wBpNzp4PEWzLaM=; b=FJ3jEzJAQcYXt+nASF6+5+weqIbmdY1yba1Zk2w6KVeak2ayu59k9FYju7Z013S8kxxMnC 1Ae1nWRCKCHVClxDr4XiEhZaOyNlScU+CfYtA3sFS0SeGvG9gxQxAAyltZBAaHJiVQn43i p4YiSWepsNnWOPPCOyl7qe3xQ64tDseC0J70XjccXem7VszCZv7fV0xgx2BAPnhvYXhz1M UKHVmcml5f9MiKrnjfiV/JCYC0Y1r6vVhMIjv6OOgFPQ7KPE3Olo2JmLWaISJ39ghtIOQ4 gZMqn39LmykqlmKia1N6PFBmnqWVVY4jVDhab2Kc4KyKRmTj+Lfk6v0kTHz8Bw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686735745; a=rsa-sha256; cv=none; b=dhOXqJqbKSf4QgJF1q3hTHgfbiBl+fTfX/PpIviT09bt7jPLdzRN8j27drGWDDenQSyKa0 BK5vUtaOF6x+gxWJ8lUn+avzuJuu8j7dcbC7iBRB4ivAqV7PtDLBYo52xNn6sqnW96rSlf kUcUsAFTyN5Q1uAG8pVx73z4c4KcrQTr6IvDHI7woRTv40QtMJaRjUfItEc/osgdaRlo0Q GeszjqijQNCk0pcllOmm9WXG+1nRHHRwKBtm5dR/2DZkywZX9XHWb4mkFH6NBO35gj3oQB DeME9Q21ZKdBGdVcqWwUN7h9zDLGb7inlQ6spZpKehOtr+3WvD/X58LB+jepcw== Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com [66.111.4.228]) (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) (Authenticated sender: melifaro/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Qh0ns0K3DzHpq; Wed, 14 Jun 2023 09:42:25 +0000 (UTC) (envelope-from melifaro@freebsd.org) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id E61BC27C005A; Wed, 14 Jun 2023 05:42:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 14 Jun 2023 05:42:24 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedvtddgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpeetlhgv gigrnhguvghrucevhhgvrhhnihhkohhvuceomhgvlhhifhgrrhhosefhrhgvvgeuufffrd horhhgqeenucggtffrrghtthgvrhhnpeekgeevheejvedthefgfefhhefghedtveefveej teegffdtueetveekudfgieegffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehmvgdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidq udefvdelvdduvdefvddqvdelfeeiuddtgeekqdhmvghlihhfrghroheppehfrhgvvggssh gurdhorhhgsehmphhlshdrihgv X-ME-Proxy: Feedback-ID: i02494642:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Jun 2023 05:42:24 -0400 (EDT) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: can't add a /24 blackhole route with a /32 loopback From: Alexander Chernikov In-Reply-To: Date: Wed, 14 Jun 2023 10:42:13 +0100 Cc: "freebsd-net@FreeBSD.org" Content-Transfer-Encoding: quoted-printable Message-Id: <5747CC08-6903-4E2F-B0A5-D0CAB08F8165@FreeBSD.org> References: <9Jh8lSg93tjEc0-UEU3MQkGuQc7R9Aht0NBt4kEr6-wtgMdf673nws_jGaHelYwz0U78ik2BM4WLUca2JZAjrX-WSbP5QS4rsvoBHZo_JZo=@enki-multimedia.eu> <4DF565CC-D8AE-4F35-A7CF-7ED5AAD27B49@FreeBSD.org> To: Benoit Chesneau X-Mailer: Apple Mail (2.3731.600.7) X-ThisMailContainsUnwantedMimeParts: N > On 14 Jun 2023, at 10:06, Benoit Chesneau = wrote: >=20 > I forgot oto add the error message , sorry.=20 >=20 > When I try to set the theblackhole flag I get the following error: >=20 > ``` > route: writing to routing socket: Operation not supported > change net 1.1.1.0 fib 0: Operation not supported > ``` Interesting. Could you also share full ifconfig output or at least = ifconfig for each of the loopbacks? If the output contains something you=E2=80=99re not comfortable sharing = in the ML, you could consider sending it directly to my email. >=20 >=20 > ------- Original Message ------- > On Wednesday, June 14th, 2023 at 10:38, Benoit Chesneau = wrote: >=20 >=20 >> Hi, >>=20 >> Thanks for your answer. I'm using Freebsd 13.2 latest version: >>=20 >> $ uname -srm >> FreeBSD 13.2-RELEASE amd64 >>=20 >> I edited the filtred result of the table since it has a full view: >>=20 >> netstat -4rnW |grep -e "1.1.1" >> 1.1.1.0/24 127.0.0.1 USB 14 16384 lo0 >> 1.1.1.1 link#9 UHS 26 16384 lo1 >> 1.1.1.2 10.3.1.1 UGH1 15 9000 vlan2212 >> 1.1.1.2 10.3.1.1 UGHS 16 1500 vlan2212 >> 1.1.1.2 10.3.1.1 UGHS 25 9000 vlan2212 >>=20 >>=20 >> Also I forgot to mention that the ethernet driver is MLX4EN(4): >>=20 >> mlx4_core0@pci0:8:0:0: class=3D0x028000 rev=3D0x00 hdr=3D0x00 = vendor=3D0x15b3 device=3D0x1007 subvendor=3D0x103c subdevice=3D0x22f3 >> vendor =3D 'Mellanox Technologies' >> device =3D 'MT27520 Family [ConnectX-3 Pro]' >> class =3D network >> Corrected =3D Advisory Non-Fatal Error >>=20 >>=20 >>=20 >> Hope it helps, >>=20 >>=20 >> Beno=C3=AEt >> ------- Original Message ------- >> On Wednesday, June 14th, 2023 at 10:29, Alexander Chernikov = melifaro@FreeBSD.org wrote: >>=20 >>=20 >>=20 >>>> On 14 Jun 2023, at 07:05, Benoit Chesneau = benoitc@enki-multimedia.eu wrote: >>>>=20 >>>> Hi, >>>>=20 >>>> When I setup a loopback to a /32 , I can add a /24 as a blackhole = route anymore. I can only create a /24 attached to this looopback. Ie. >>>=20 >>> Could you add a bit more context? >>> What is the FreeBSD version (uname -srm)? >>> What does 'route add 1.1.1.0/24 -blackhole=E2=80=99 show? >>> Could you also share netstat -4rnW and ifconfig output (maybe = privately)? >>>=20 >>>> when `lo1` is set to `1.1.1.1/32` I cant create a blackhole route = to `1.1.1.0/24` using the command : `route add 1.1.1.0/24 -blackhole` . = Is there any reason for it? The idea is to be able to advertise the = prefix `1.1.1.0/24` via BGP (bird) and use 1.1.1.1/32` as a loopback = distributed to other nodes using OSPF. I can probably make the loopback = a /24 used by bird but what would be the other way to do it? >>>>=20 >>>> Beno=C3=AEt