ospf between bird (accel pppoe server) and mikrotik
Ondrej Zajicek
santiago at crfreenet.org
Fri Aug 17 13:04:47 CEST 2018
On Thu, Aug 16, 2018 at 01:37:05PM -0300, Alexandrino Neto wrote:
> Hi guys, I'm using bird on a pppoe server (accel) connected directly to a
> mikrotik and I need ospf between them to advertise the prefixes of the
> pppoe clients. The accel server is already receiving the mikrotik routes
> through ospf but can not send the route with the clients prefix to
> mikrotik, I thought of creating a blackhole route and advertise using
> "redistribute connected" but it did not work, just putting the exit filter
> with "redistribute connected" but also did not work. Could someone help me
> get my server to send the routes to mikrotik by ospf?
>
> Best Regards.
>
> eth0 is connected to mikrotik and eth1 for clients
>
> My conf file:
>
> filter ospf_export {
> if ( source = RTS_DEVICE ) then {
> print "net accepted:", net;
> ospf_metric2 = 20;
> accept;
> }
> if ( source = RTS_STATIC_DEVICE ) then {
> print "net accepted:", net;
> ospf_metric2 = 20;
> accept;
> }
> }
Hi
You accept only RTS_DEVICE routes (from direct protocol) and RTS_STATIC_DEVICE
routes (direct/device routes fromstatic protocol), you do not have default
accept/reject action in the filter, so other routes are rejected. You need
to accept RTS_STATIC routes for the blackhole route.
--
Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
More information about the Bird-users
mailing list