Filter being ignored.

John Jensen jensenja at gmail.com
Fri Feb 28 06:32:23 CET 2014


I think you want to use ~ instead of =:

protocol ospf {

        import all;

        export filter {

                ospf_metric1 = 1000;

                if ( net ~ [ 192.168.0.0/16+ ] ) then reject;

                if ( source = RTS_STATIC ) then accept; else reject;

        };


On Fri, Feb 28, 2014 at 12:21 AM, Steve (Telsat Broadband) <
steve at telsatbb.vu> wrote:

> Hi All,
>
>
>
> I've configured the following 'export' filter in my OSPF protocol:
>
>
>
>
>
> protocol ospf {
>
>         import all;
>
>         export filter {
>
>                 ospf_metric1 = 1000;
>
>                 if ( net = [ 192.168.0.0/16+ ] ) then reject;
>
>                 if ( source = RTS_STATIC ) then accept; else reject;
>
>         };
>
>
>
> Yet on my router, I'm still seeing the route coming in via OSPF:
>
>
>
> O     192.168.38.0/24
>
>            [110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1
>
> O     192.168.39.0/24
>
>            [110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1
>
>
>
> Is there something I'm missing?  How can I get these network's excluded?
>
>
>
> Cheers.
>
> Steve.
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20140228/6a09509e/attachment-0001.html>


More information about the Bird-users mailing list