import OSPF external routes

Roman Romanyak roman.romanyak at gmail.com
Tue Jun 14 03:18:53 CEST 2016


Thanks Ondrej, that's exactly what I was looking for!

Best,
Roman.

On Mon, Jun 13, 2016 at 4:22 PM, Ondrej Filip <feela at network.cz> wrote:

> On 13.6.2016 22:05, Roman Romanyak wrote:
> > Hello bird users,
>
> Hi Roman,
> please not, that the router you are referring to is type
> RTS_OSPF_EXT1. So, your input filter should look:
>
> filter OSPF_IN {
>         if source = RTS_OSPF_EXT1 then accept;
>         reject;
> }
>
>         Ondrej
>
>
> >
> > I ran into the issue with importing OSPF external route. Maybe someone
> > can point me in the right direction.
> >
> > This is the OSPF filter:
> > filter OSPF_IN {
> >         if source = RTS_OSPF then accept;
> > #        reject;
> >         accept;
> > }
> >
> >
> > And this is a route in question - a loopback interface of another
> >  router/OSPF neighbor:
> > bird> show route for 10.120.0.55 all
> > 10.120.0.55/32 <http://10.120.0.55/32>     via x.x.x.x on bond1
> > [EDGE_OSPF 19:49:20] * E1 (150/10) [10.2.55.2]
> > Type: OSPF-E1 unicast univ
> > OSPF.metric1: 10
> > OSPF.metric2: 16777215
> > OSPF.tag: 0x00000000
> > OSPF.router_id: 10.2.55.2
> > bird>
> >
> > bird> show ospf state
> > router 10.2.55.1
> > distance 10
> > ...[some output is omitted ]
> > external 10.120.0.55/32 <http://10.120.0.55/32> metric 0
> >
> >
> > When I replace 'accept' with 'reject' in the filter, I'm not able to
> > see 10.120.0.55/32 <http://10.120.0.55/32> route in the FIB.
> >
> >
> > Thanks,
> > Roman.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20160613/87a055bf/attachment.html>


More information about the Bird-users mailing list