I have a typical router with multiple networks on
This leads to a dozen or so routes advertised by OSPF, and this makes a messy routing table when there are 5 or 6 of these routers connected together.
If I add a static route for the whole /24 to the loopback interface, using "ip route add dst-address=192.168.1.0/24 gateway=bridge-loopback", and use redistribute-static in OSPF to distribute, this allows me to filter at the OSPF/BGP boundry using routing filter to only distribute prefix length of /24 and nothing smaller.
However I would ideally like just the /24 to be advertised on OSPF too. In theory using an ospf-out routing filter would work, but doesn't seem to apply to directly connected networks, which I suspect is related to "and internal (intra-area) OSPF filtering is not supported yet" in the manual.
I can filter these out on the ospf-in, but is there another way to effectively apply ospf-out to the directly connected routes - or another way to do what I want (only advertise the /24 by OSPF)