Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2023 06:05:48 +0000
From:      Benoit Chesneau <benoitc@enki-multimedia.eu>
To:        "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Subject:   can't add a /24 blackhole route with a /32 loopback
Message-ID:  <9Jh8lSg93tjEc0-UEU3MQkGuQc7R9Aht0NBt4kEr6-wtgMdf673nws_jGaHelYwz0U78ik2BM4WLUca2JZAjrX-WSbP5QS4rsvoBHZo_JZo=@enki-multimedia.eu>

next in thread | raw e-mail | index | archive | help
Hi,

When I setup a loopback to a /32 , I can add a /24 as a blackhole route any=
more. I can only create a /24 attached to this looopback. Ie.

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=C2=A01.1.1.0/24 -blackhole` . Is the=
re any reason for it? The idea is to be able to advertise the prefix `1.1.1=
.0/24`=C2=A0via BGP (bird) and use=C2=A01.1.1.1/32`=C2=A0 as a loopback dis=
tributed to other nodes using OSPF. I can probably make the loopback a /24 =
=C2=A0used by bird but what would be the other way to do it?

Beno=C3=AEt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9Jh8lSg93tjEc0-UEU3MQkGuQc7R9Aht0NBt4kEr6-wtgMdf673nws_jGaHelYwz0U78ik2BM4WLUca2JZAjrX-WSbP5QS4rsvoBHZo_JZo=>