I cannot get my OSPF routes to show up in my Linux Routing table. I have tried multiple configurations, but the routes never populate into Linux. They are present in the Bird Interface, but not outside of Bird. I'm sorry for asking a super easy question here, but I cannot find any good basic information on OSPF configurations online. Here is my BIRDC output: bird> show route 0.0.0.0/0 via 192.168.100.3 on eth0 [ospf1 16:05:29] ! E2 (150/1/1) [1] [192.168.100.3] 192.168.100.0/29 dev eth0 [direct1 16:04:07] * (240) dev eth0 [ospf1 16:04:08] I (150/1) [1.2.3.4] 192.168.200.0/29 dev eth1 [direct1 16:04:07] * (240) dev eth1 [ospf1 16:04:08] I (150/1) [1.2.3.4] And my Linux Output: ubuntu@ubuntu:~$ ip route default via 192.168.200.2 dev eth1 proto static default via 192.168.100.1 dev eth0 proto static 192.168.100.0/29 dev eth0 proto kernel scope link src 192.168.100.2 192.168.200.0/29 dev eth1 proto kernel scope link src 192.168.200.1 And my BIRD Configuration File: ubuntu@ubuntu:~$ sudo cat /etc/bird/bird.conf log syslog all; router id 1.2.3.4; protocol device { scan time 10; } protocol kernel { export all; scan time 15; } protocol direct { interface "*"; import all; } protocol ospf { tick 2; rfc1583compat yes; import all; merge external; area 0 { interface "eth*" { cost 1; type broadcast; hello 10; retransmit 5; wait 40; dead 40; }; }; } I really appreciate any help that anyone has to offer. I'm sure it's something basic and simple, but I do not know enough yet to figure it out on my own. Thanks!
On Mon, Nov 11, 2019 at 05:12:28PM +0100, Chris Althage wrote:
I cannot get my OSPF routes to show up in my Linux Routing table. I have tried multiple configurations, but the routes never populate into Linux. They are present in the Bird Interface, but not outside of Bird. I'm sorry for asking a super easy question here, but I cannot find any good basic information on OSPF configurations online.
Default route failed to export, because there is already static default route in kernel. BIRD does not overwrite existing routes in kernel. You should use 'metric 32' kernel protocol option to avoid collisions (or use BIRD 2.0, where this is default). That allows routes to be exported to kernel without error, but the existing routes would still have higher priority.
Here is my BIRDC output:
bird> show route 0.0.0.0/0 via 192.168.100.3 on eth0 [ospf1 16:05:29] ! E2 (150/1/1) [1] [192.168.100.3] 192.168.100.0/29 dev eth0 [direct1 16:04:07] * (240) dev eth0 [ospf1 16:04:08] I (150/1) [1.2.3.4] 192.168.200.0/29 dev eth1 [direct1 16:04:07] * (240) dev eth1 [ospf1 16:04:08] I (150/1) [1.2.3.4]
And my Linux Output:
ubuntu@ubuntu:~$ ip route default via 192.168.200.2 dev eth1 proto static default via 192.168.100.1 dev eth0 proto static 192.168.100.0/29 dev eth0 proto kernel scope link src 192.168.100.2 192.168.200.0/29 dev eth1 proto kernel scope link src 192.168.200.1
-- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Chris Althage -
Ondrej Zajicek