import OSPF external routes

Ondrej Filip feela at network.cz
Mon Jun 13 22:22:31 CEST 2016


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.



More information about the Bird-users mailing list