<div>Hello there,</div>
<div> </div>
<div>Need your help in configuring BIRD for ospf.</div>
<div> </div>
<div>I have 2 nodes running open wrt linux and bird version 1.1.1. The bird binary has been cross-compiled for the ARM platform. OSPF is configured in bird.conf for each node.<br>Node 1 has 3 network interfaces and Node 2 has 4 network interfaces. Below is how Node 1 and 2 topologies are organized<br>
Node 1(192.168.3.20) <-------> Node2(192.168.3.10)<br> (192.168.1.1) (192.168.4.10)<br> (192.168.4.20) (192.168.5.10)<br> <br>Please note that Nodes 1 and 2 communicate only via 192.168.3.* network and the other interfaces on each node are independent.<br>
<br>Now the issue here is that the routing tables between the 2 nodes aren't synchronized. Node 1 can ping the 192.168.3.10 and 192.168.5.10 IP addresses on Node 2. However there is no route to 192.168.1.* on Node 2.<br>
<br>Any help would be highly appreciated.<br> <br>Below is what the bird configuration looks like on each individual node:<br> <br>Node 1 - ifconfig<br>-----------------<br><a href="mailto:root@OpenWrt">root@OpenWrt</a>:~# ifconfig<br>
eth0 Link encap:Ethernet HWaddr 00:03:47:DF:33:A0 <br> inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:6515 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:2076 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:100 <br> RX bytes:357685 (349.3 KiB) TX bytes:223675 (218.4 KiB)</div>
<div>lo Link encap:Local Loopback <br> inet addr:127.0.0.1 Mask:255.0.0.0<br> UP LOOPBACK RUNNING MTU:16436 Metric:1<br> RX packets:6 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:6 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:0 <br> RX bytes:510 (510.0 B) TX bytes:510 (510.0 B)</div>
<div>ra_ap0 Link encap:Ethernet HWaddr 00:0E:8E:20:2B:16 <br> inet addr:192.168.4.20 Bcast:192.168.4.255 Mask:255.255.255.0<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:5122 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000 <br> RX bytes:498002 (486.3 KiB) TX bytes:45008 (43.9 KiB)<br> Interrupt:26 </div>
<div>ra_sta0 Link encap:Ethernet HWaddr 00:0E:8E:1A:AD:76 <br> inet addr:192.168.3.20 Bcast:192.168.3.255 Mask:255.255.255.0<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:1321714 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000 <br> RX bytes:157112541 (149.8 MiB) TX bytes:176882570 (168.6 MiB)<br> Interrupt:28 </div>
<div><br>Node 1 - bird.conf<br>------------------<br>log "/lib/bird.log" { error };<br>protocol kernel {<br> persist;<br> scan time 20;<br> export all;<br>}</div>
<div>protocol device {<br> scan time 10;<br>}</div>
<div>protocol ospf {<br> export all;<br> import all;<br> area 0.0.0.0 {<br> interface "eth0";<br> interface "ra_ap0";<br> interface "ra_sta0";<br>
};<br>}</div>
<div>Node 1 - birdc output<br>---------------------<br>BIRD 1.1.1 ready.<br>bird> show ospf neighbor<br>ospf1:<br>Router ID Pri State DTime Router IP Interface <br>192.168.3.10 1 full/dr 00:38 192.168.3.10 ra_sta0 <br>
bird> show route<br><a href="http://192.168.1.0/24">192.168.1.0/24</a> dev eth0 [ospf1 01:25] I (150/10)<br><a href="http://192.168.3.0/24">192.168.3.0/24</a> dev ra_sta0 [ospf1 01:26] I (150/10)<br><a href="http://192.168.4.0/24">192.168.4.0/24</a> dev ra_ap0 [ospf1 01:25] I (150/10)<br>
<a href="http://192.168.5.0/24">192.168.5.0/24</a> via 192.168.3.10 on ra_sta0 [ospf1 01:26] I (150/20)<br>bird> show ospf topology<br> <br>area 0.0.0.0</div>
<div>router 192.168.1.1<br>network <a href="http://192.168.3.0/24">192.168.3.0/24</a> metric 10 <br>stubnet <a href="http://192.168.1.0/24">192.168.1.0/24</a> metric 10 <br>stubnet <a href="http://192.168.4.0/24">192.168.4.0/24</a> metric 10 </div>
<div>router 192.168.3.10<br>network <a href="http://192.168.3.0/24">192.168.3.0/24</a> metric 10 <br>stubnet <a href="http://192.168.4.0/24">192.168.4.0/24</a> metric 10 <br>stubnet <a href="http://192.168.5.0/24">192.168.5.0/24</a> metric 10 </div>
<div>network <a href="http://192.168.3.0/24">192.168.3.0/24</a><br>dr 192.168.3.10<br>router 192.168.3.10<br>router 192.168.1.1<br>bird> </div>
<div> </div>
<div>Node 2 - ifconfig<br>------------------<br><a href="mailto:root@OpenWrt">root@OpenWrt</a>:~# ifconfig<br>eth0 Link encap:Ethernet HWaddr 00:03:47:DF:33:A8 <br> UP BROADCAST MULTICAST MTU:1500 Metric:1<br>
RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:100 <br> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)</div>
<div>lo Link encap:Local Loopback <br> inet addr:127.0.0.1 Mask:255.0.0.0<br> UP LOOPBACK RUNNING MTU:16436 Metric:1<br> RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:0 <br> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)</div>
<div>ra_ap0 Link encap:Ethernet HWaddr 00:0E:8E:20:2B:18 <br> inet addr:192.168.3.10 Bcast:192.168.3.255 Mask:255.255.255.0<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:1280530 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000 <br> RX bytes:153965150 (146.8 MiB) TX bytes:170985030 (163.0 MiB)<br> Interrupt:28 </div>
<div>ra_ap1 Link encap:Ethernet HWaddr 00:0E:8E:1A:AD:96 <br> inet addr:192.168.4.10 Bcast:192.168.4.255 Mask:255.255.255.0<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:4 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000 <br> RX bytes:249 (249.0 B) TX bytes:46040 (44.9 KiB)<br> Interrupt:27 </div>
<div>ra_ap2 Link encap:Ethernet HWaddr 00:0E:8E:1A:AF:00 <br> inet addr:192.168.5.10 Bcast:192.168.5.255 Mask:255.255.255.0<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:39 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000 <br> RX bytes:4021 (3.9 KiB) TX bytes:46128 (45.0 KiB)<br> Interrupt:26 </div>
<div>Node 2 - bird.conf<br>------------------<br>log "/lib/bird.log" { error };<br>protocol kernel {<br> persist;<br> scan time 20;<br> export all;<br>}</div>
<div>protocol device {<br> scan time 10;<br>}</div>
<div>protocol ospf {<br> export all;<br> import all;<br> area 0.0.0.0 {<br> interface "eth0";<br> interface "ra_ap0";<br> interface "ra_ap1";<br>
interface "ra_ap2";<br> };<br>}</div>
<div>Node 2 - birdc output<br>---------------------<br>BIRD 1.1.1 ready.<br>bird> show ospf neighbor<br>ospf1:<br>Router ID Pri State DTime Router IP Interface <br>192.168.1.1 1 full/bdr 00:38 192.168.3.20 ra_ap0 <br>
bird> show route<br><a href="http://192.168.3.0/24">192.168.3.0/24</a> dev ra_ap0 [ospf1 11:11] I (150/10)<br><a href="http://192.168.4.0/24">192.168.4.0/24</a> dev ra_ap1 [ospf1 11:10] I (150/10)<br><a href="http://192.168.5.0/24">192.168.5.0/24</a> dev ra_ap2 [ospf1 11:10] I (150/10)<br>
bird> show ospf topology<br> <br>area 0.0.0.0</div>
<div>router 192.168.1.1<br>stubnet <a href="http://192.168.1.0/24">192.168.1.0/24</a> metric 10 <br>stubnet <a href="http://192.168.4.0/24">192.168.4.0/24</a> metric 10 <br>stubnet <a href="http://192.168.3.0/24">192.168.3.0/24</a> metric 10 </div>
<div>router 192.168.3.10<br>network <a href="http://192.168.3.0/24">192.168.3.0/24</a> metric 10 <br>stubnet <a href="http://192.168.4.0/24">192.168.4.0/24</a> metric 10 <br>stubnet <a href="http://192.168.5.0/24">192.168.5.0/24</a> metric 10 </div>
<div>network <a href="http://192.168.3.0/24">192.168.3.0/24</a><br>dr 192.168.3.10<br>router 192.168.3.10<br>router 192.168.1.1<br>bird> </div>