can't add a /24 blackhole route with a /32 loopback
Date: Wed, 14 Jun 2023 06:05:48 UTC
Hi, 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. 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? Benoît