Date: Wed, 14 Jun 2023 09:46:53 +0000 From: Benoit Chesneau <benoitc@enki-multimedia.eu> To: Alexander Chernikov <melifaro@FreeBSD.org> Cc: "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org> Subject: Re: can't add a /24 blackhole route with a /32 loopback Message-ID: <qTTV8qTnckgyeGGlupNeCCApDFwagaQEa7rzhJwX0VW2BLYzOFFpqUtI100expqlkA6E4gzK7_obYgLcLrfMLom80h61k-mlRvGnWRrHoKQ=@enki-multimedia.eu> In-Reply-To: <5747CC08-6903-4E2F-B0A5-D0CAB08F8165@FreeBSD.org> References: <9Jh8lSg93tjEc0-UEU3MQkGuQc7R9Aht0NBt4kEr6-wtgMdf673nws_jGaHelYwz0U78ik2BM4WLUca2JZAjrX-WSbP5QS4rsvoBHZo_JZo=@enki-multimedia.eu> <4DF565CC-D8AE-4F35-A7CF-7ED5AAD27B49@FreeBSD.org> <t_gT66nRcCT4fte7HbEMcM6J2spH-rEGFNYtZqX0GsUlxW4R5_pEVx3ZqtAwphKT4UBZsGZKX9gxeym1SKdc5GmceXGy1rRYEnSU1X6-_8c=@enki-multimedia.eu> <sgx1BljfJfV-Bn0PlfJ0va7yWHE9QraHpTjPBB6jlJWq4aehFwihem8C8f3ikkjvdEGIYY15S3ppTkQpWDfR3LDi_IKewBg7XQ1v9_u3SC4=@enki-multimedia.eu> <5747CC08-6903-4E2F-B0A5-D0CAB08F8165@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Here is the ifconfig for loopbacks: ``` ifconfig lo1 lo1: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 =09options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> =09inet6 fe80::1%lo1 prefixlen 64 scopeid 0x9 =09inet6 XXXX:XXXX:1:1::1 prefixlen 128 =09inet 1.1.1.1 netmask 0xffffffff =09groups: lo =09nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL> root@core0:~ # ifconfig lo0 lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 =09options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> =09inet6 ::1 prefixlen 128 =09inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 =09groups: lo =09nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL> ``` Hope this helps, Beno=C3=AEt ------- Original Message ------- On Wednesday, June 14th, 2023 at 11:42, Alexander Chernikov <melifaro@FreeB= SD.org> wrote: > > On 14 Jun 2023, at 10:06, Benoit Chesneau benoitc@enki-multimedia.eu wr= ote: > >=20 > > I forgot oto add the error message , sorry. > >=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` >=20 > Interesting. Could you also share full ifconfig output or at least ifconf= ig for each of the loopbacks? > If the output contains something you=E2=80=99re not comfortable sharing i= n the ML, you could consider sending it directly to my email. >=20 > > ------- Original Message ------- > > On Wednesday, June 14th, 2023 at 10:38, Benoit Chesneau benoitc@enki-mu= ltimedia.eu wrote: > >=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 > > > 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 > > > Hope it helps, > > >=20 > > > Beno=C3=AEt > > > ------- Original Message ------- > > > On Wednesday, June 14th, 2023 at 10:29, Alexander Chernikov melifaro@= FreeBSD.org wrote: > > >=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 priva= tely)? > > > >=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?qTTV8qTnckgyeGGlupNeCCApDFwagaQEa7rzhJwX0VW2BLYzOFFpqUtI100expqlkA6E4gzK7_obYgLcLrfMLom80h61k-mlRvGnWRrHoKQ=>