Redistribution from BGP protocol to OSPF is not working

keyvan ghadimi kghadimi at gmail.com
Mon Nov 1 09:12:38 CET 2021


Hi,

I have Three routers in my network like the below diagram.
RTR01 has a BGP to RTR02 and RTR02 has an OSPF to RTR03.  I wrote a filter
to redistribute origin routes from BGP protocol to OSPF in RTR02 but it's
not working.
     ┌───────┐      ┌───────┐           ┌─────┐
     │ RTR01.     ├──┤ RTR02      ├── ──┤ RTR03 │
     └───────┘      └───────┘           └─────┘
             10.2.2.3 -BGP- 10.2.2.2
                                    10.100.100.2 -OSPF- 10.100.100.3


RTR02 Bird config:

protocol bgp bgp_to_rtr01{
  local as 64513;
  neighbor 10.2.2.3 as 64512;
  source address 10.2.2.2;
  allow local as 64513;
    multihop;
  ipv4 {
        import all;
        export all;
        };
}

protocol ospf my_ospf {
    rfc1583compat yes;
    tick 2;
    ecmp no;
    ipv4 {
 import where proto = "bgp_to_rtr01";
 };
    area 0.0.0.0 {
        stub no;
        interface "dummy0" {
          type ptp;
              };
        interface "enp0s9" {
          type broadcast;
              };
      };
  }


I did the same redistribution to OSPF to announce the default route via
OSPF and it is working, but the same filter for redistribution BGP to OSPF
is not.

Best Regards,
Keyvan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20211101/7a4a4549/attachment.htm>


More information about the Bird-users mailing list