D
D
Dima Petrov2019-04-11 18:53:09
linux
Dima Petrov, 2019-04-11 18:53:09

How to configure the ospf export filter in bird?

Config example

router id 255.255.255.255;

log syslog all;

protocol device {
        scan time 10;
}

filter im {
    if net ~ [ 10.0.0.0/8+ ] then reject;
    else accept;
}

protocol kernel {
        export all;
        scan time 15;
}

protocol ospf my {
        import filter im; 
        export all;
  area 0 {
    interface "br1", "tap*" {
      priority 255;
      type nonbroadcast;
      strict nonbroadcast no;
     	hello 20; retransmit 20; wait 50; dead 50;
                        authentication none;
      neighbors {
       172.17.11.1 eligible;
       172.17.11.4 eligible;
                        };
                };
        };
}

the filter on import works, but if you write it on export it doesn't help.
even if to register export none, routes all the same leave.
It is required that it sends only its own network and does not send networks received from neighbors.
I really need help.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2019-04-11
@notwrite

OSPF MAY NOT send networks received from neighbors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question