OpenWrt Forum Archive

Topic: bird4, ospf uci simple config example?

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I'm trying to use bird4 to get OSPF routing on Chaos Calmer.

I can see there are some guidelines on /etc/bird4.conf, but since there is UCI support for bird I think it would be better to go with it. However, I'm getting a hard time trying to get any bird4 OSPF UCI conf example to use as start point.

Or should I get bird4-uci out of that?

Could somebody give any pointer?

Thanks

Thank you for your answer.

It does seem that bird4-uci does support BGP, but doesn't support OSPF, since I have found this thread dated from November 2014 (sorry but the system does not allow me make links)

[OpenWrt-Users] luci-app-bird4 fails since bird4 UCI doesn't support "ospf" config directives

Where it is said that OSPF lines where added to /etc/config/bird4 before they were supported. There is a commit on github.com/openwrt-routing/packages/commit/40405d022b029186fb862a09789a6c0cf2f224a3 where OSPF lines are simply removed from /etc/config/bird4.

There is another thread, where developer of bird4-uci says he's putting his efforts on BGP routing, nothing about OSPF, search for "Bring UCI and LUCI configuration for Bird4/6 to improve integration with OpenWRT"

So, short answer seems to be "get bird4-uci out if you want to do OSPF with bird in OpenWRT"

Could somebody confirm that?

You may want to give quagga a look for OSPF support.

http://www.nongnu.org/quagga/

It didn't work for me, but then I was trying to run RIPng (for IPv6). Hopefully the OSPF support is better.

Yes, even if I am still trying to get bird4-ospf working, next choice would be quagga.

Well, it seems it is doing something now. Still nothing useful, I think I need to play much more with config, but at least now it has neighbors... so I think it's worth to say it here, because I see there is were little info about that, at least that I would be able to reach.

Those neighbors are Mikrotik routers with RouterOS 6.40, they are the dr and the bdr. Somewhere I have read that there are problems with mikrotik routers since each one (mikrotik and openwrt) thinks the other one is the dr, and that type should be changed from broadcast to ptp for they to work together.  I did not that, but seems it is working because dr and bdr have been already elected before starting bird4 in openwrt.

Got bird4-uci out, then rebuild, then changed /etc/bird4.conf to

protocol ospf {
        import all;
        export all;
        export where source = RTS_STATIC;

        area 0 {
                interface "eth1" {
                        cost 10;
                        hello 10;
                        retransmit 5;
                        wait 40;
                        dead 40;
                        type broadcast;
#                       authentication simple;
#                       password "pass";
                };
        };
}

The important thing seems to be changing hello time. Only backbone area. I'll continue to play with it... But if somebody has some hint about how to make they exchange routes, I would take it.

Cheers

The discussion might have continued from here.